Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ Tips and tricks
➜ okay so i have an alias
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Poisonrain
(2 posts) Bio
|
Date
| Sat 14 Jan 2006 11:48 PM (UTC) |
Message
| I've set a mush variable in an alias with a send to variable command. But how do i recall that variable to use in another alias?
I've tried:
send "kill %<target>"
and
send "kill "+%<target>
and any other variations I can think of but can't seem to
get it to read the <target> variable and use this. Please help driving me batty!
PR | Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #1 on Sun 15 Jan 2006 01:53 AM (UTC) |
Message
| If you press F1 whilst editing the alias you will get this help screen:
http://www.gammon.com.au/scripts/doc.php?dialog=IDD_EDIT_ALIAS
Inside that it mentions this:
Expand Variables
If checked, variables in the alias "send" text are expanded. A variable starts with "@" and is followed by the variable name. To put "@" in the alias response, use "@@".
For example, if the variable "target" contained "kobold", then sending "punch @target" would send "punch kobold". |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Poisonrain
(2 posts) Bio
|
Date
| Reply #2 on Sun 15 Jan 2006 10:28 AM (UTC) |
Message
| Great - perfect - thanks!
PR | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
11,776 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top