Gammon Forum
Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to "verify" your details, 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.
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,042 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.
10,434 views.
It is now over 60 days since the last post. This thread is closed.
  Refresh page
top
Quick links:
MUSHclient.
MUSHclient help.
Forum shortcuts.
Posting templates.
Lua modules.
Lua documentation.
Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.