[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

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.
[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Tips and tricks
. . -> [Subject]  okay so i have an alias

okay so i have an alias

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by Poisonrain   (2 posts)  [Biography] 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
[Go to top] top

Posted by Nick Gammon   Australia  (23,042 posts)  [Biography] 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
[Go to top] top

Posted by Poisonrain   (2 posts)  [Biography] bio
Date Reply #2 on Sun 15 Jan 2006 10:28 AM (UTC)
Message
Great - perfect - thanks!
PR
[Go to top] 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] Refresh page

Go to topic:           Search the forum


[Go to top] 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.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]