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
SmilingReaper
Newbie


Joined: 10 Jan 2002
Posts: 8

PostPosted: Thu Jun 27, 2002 7:47 pm   

Breaking waits
 
Is there a way to break midway through a wait without executing the command after the wait? For example, if I have a wait trigger set for five minutes but I decide I don't want the command to execute, how can I break it? Using #break ends the wait but causes the command to execute.
Reply with quote
Darker
GURU


Joined: 24 Sep 2000
Posts: 1237
Location: USA

PostPosted: Thu Jun 27, 2002 9:18 pm   
 
Well, #wait sucks, don't use it.

But if you're set on using it, you can make the command after the wait depend on an #if check to a status variable you can set just before issuing the #break.



zMUD 6 Online Help: All the power you'll ever need.
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Thu Jun 27, 2002 9:52 pm   
 
You could create an #ALARM trigger with an identifier which calls an alias.

If you want to break the wait, you would untrigger that #ALARM identifier
and directly call the same alias.

Ton Diening
Providing untested answers that tend to be
more complicated than others.
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