|
Illogic Beginner
Joined: 11 Nov 2006 Posts: 13
|
Posted: Sat Dec 02, 2006 6:36 am
question about alias |
is there a way to set an alias to send two sets of commands ?
in one set id like 4 or 5 commands to be sent to the mud with the #wait command
the other set doesnt need a wait command
can one alias do this or do i have to use more than one ? |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Sun Dec 03, 2006 5:19 am |
One can do it. Just need to use a conditional block of some sort. #IF and #CASE are basically your choices.
|
|
_________________ EDIT: I didn't like my old signature |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Sun Dec 03, 2006 11:05 am |
You can do that easily with something like
#alias blah {command1;#alarm +NumOfSeconds {command2;#alarm +NumOfSeconds {command3}}}
or
#alias blah {command1;#alarm +NumOfSeconds1 {command2};#alarm +NumOfSeconds1PlusNumOfSeconds2 {command3}}
or
#alias blah {command1;#wait #=NumOfSecondsX1000;command2;#wait NumOfSecondsx1000;command3}
I really DO NOT recommend using the last one. #wait is horrid :(
If you want to send multiple commands all at once, just put semicolons after them.
#alias blah {command1;command2;command3;command4}
or, if you're using the settings editor, put them on separate lines.
If you'd rather create an alias that waits until it recieves certain text from the MUD before it activates the next command, then that's possible too but a little more complicated. |
|
|
|
|
|