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, 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.
 Entire forum ➜ MUSHclient ➜ General ➜ Aliases & Triggers

Aliases & Triggers

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


Posted by LupusFatalis   (154 posts)  Bio
Date Wed 06 May 2009 04:43 PM (UTC)
Message
So I have a pretty basic question that I can't figure out... How can I get a trigger to use an alias?

i.e. I recently made a repetition alias... I'd like to be able to trigger...
#3 <something>

to execute the alias which would send to the mud

<something>
<something>
<something>

Similarly I would like to take an alias I already have and use it within that alias... I realize I might have to edit my script in some cases, but I can't get the alias to even go to the other alias...

i.e. "#3 ftw <something>" should call my "ftw <something>" alias... which is get (floor) <something>;put <something> in wagon... so ideal execution would send to the mud...

get (floor) <something>
put <something> in wagon
get (floor) <something>
put <something> in wagon
get (floor) <something>
put <something> in wagon

Anyone know if this can be done, and how?
Top

Posted by Nick Gammon   Australia  (23,121 posts)  Bio   Forum Administrator
Date Reply #1 on Wed 06 May 2009 08:30 PM (UTC)
Message
You mean, you want an alias to call another alias.

In the "send to" field, change from send to world to send to "execute". That sends whatever the alias is doing back to the command processor, where any aliases in it will be matched.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by LupusFatalis   (154 posts)  Bio
Date Reply #2 on Wed 06 May 2009 11:30 PM (UTC)
Message
Ah perfect, thanks Nick... Also just modified my command repeater script to execute instead of send. Its a beautiful thing.
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,322 views.

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

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.