Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Illogic
Beginner


Joined: 11 Nov 2006
Posts: 13

PostPosted: 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 ?
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: 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
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: 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.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net