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
DeReP
Adept


Joined: 14 Jun 2003
Posts: 222
Location: Chile

PostPosted: Fri Jul 11, 2003 4:28 am   

Slowwalking Wait
 
Hi, I need some help from anyone
I'm writing some triggers using pahts and I need to know if there's any way to make the script wait for the path to be completely walked and then execute next command
Eg:

#slow 3n2en2s
Some random command here
#slow 2sw3sn

If the trigger script is just as it is up there it will execute the first slow walking followed by the next random command and then the second slowwalking all at once, is there any way to make it wait for the first slow walk to be finished then continue parsing commands?
Reply with quote
galldron
Novice


Joined: 08 Nov 2002
Posts: 34
Location: Elanthia

PostPosted: Fri Jul 11, 2003 5:51 am   
 
You could try using an Alarm command

#slow 3n2en2s
#alarm +15 {Random comands}
#alarm +16 {#slow 2sw3sn}

Where 15 is the amount of time needed to walk and 16 is the amount of time needed to complete the random commands
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Fri Jul 11, 2003 11:43 am   
 
You can use the special alias name of onwalkend to execute further scripts. This can be done most easily by use of a variable containing the name of the next alias to run and the #EXEC command.
Reply with quote
DeReP
Adept


Joined: 14 Jun 2003
Posts: 222
Location: Chile

PostPosted: Fri Jul 11, 2003 9:56 pm   
 
What version of zmud includes that alias?
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Fri Jul 11, 2003 10:16 pm   
 
6.53+

By the way, the alias is not included. You just need to write an alias that has that particular name and zMUD will call it when it ends a speedwalk.
Reply with quote
DeReP
Adept


Joined: 14 Jun 2003
Posts: 222
Location: Chile

PostPosted: Fri Jul 11, 2003 10:21 pm   
 
Oh ok, thanx a lot for the help
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