Aliases & Triggers

Posted by LupusFatalis on Wed 06 May 2009 04:43 PM — 3 posts, 15,014 views.

#0
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?
Australia Forum Administrator #1
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.
#2
Ah perfect, thanks Nick... Also just modified my command repeater script to execute instead of send. Its a beautiful thing.