okay so i have an alias

Posted by Poisonrain on Sat 14 Jan 2006 11:48 PM — 3 posts, 14,996 views.

#0
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
Australia Forum Administrator #1
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".
#2
Great - perfect - thanks!
PR