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


Joined: 04 May 2005
Posts: 4

PostPosted: Fri May 06, 2005 2:13 am   

Help with trigger
 
Well...
I Have a trigger that calls a #wait function of 2400 and some commands after it...
And then another trigger that i wanted it to stop the #wait function before it reachs the commands... so the commands won't execute is it possible?
If it is, how? =]
Thx anyway :)
Reply with quote
Aarlot
Adept


Joined: 30 Dec 2003
Posts: 226

PostPosted: Fri May 06, 2005 3:03 am   
 
First off, as has been emphasized many times in this forum, it's not a very good idea to put #WAIT in a trigger. Use #ALARM.

For what you're doing, I would put this:

#ALARM tempalarm {+24} {commands go here}

in the value part of the first trigger. Then, make the second trigger's value:

#UNTRIG tempalarm


This will delete the temporary alarm that would have gone off in 24 seconds, thereby stopping the commands from executing :) Otherwise, the alarm will go off once and be gone.
_________________
Everyone is entitled to their beliefs - until they die. Then only the truth matters.
Reply with quote
Savior
Newbie


Joined: 04 May 2005
Posts: 4

PostPosted: Fri May 06, 2005 4:09 am   
 
Thhx... BUt i need it in 2,4 seconds...
is it possible?
i tried instead of +24 puttin +2,4 but it bugged :/
i got like

Alarms:
+ +2,4 -> test [in -970468097 secs]

;/
Reply with quote
Aarlot
Adept


Joined: 30 Dec 2003
Posts: 226

PostPosted: Fri May 06, 2005 5:30 am   
 
doh, misread the time. Change that to "+2.4", that should work
_________________
Everyone is entitled to their beliefs - until they die. Then only the truth matters.
Reply with quote
...{chris}...
Novice


Joined: 11 Apr 2005
Posts: 31
Location: Yucaipa, Ca

PostPosted: Fri May 06, 2005 9:18 pm   
 
Quote:

Savior
Pathetic Newbie


Joined: 04 May 2005
Posts: 2


Aarlot... He left this question 2 days after he joined, dont expect everyone to go rushing to the boards and researching all they possibly can before saying crap like
Quote:

First off, as has been emphasized many times in this forum, it's not a very good idea to put #WAIT in a trigger. Use #ALARM.

Thanks
_________________
My signature is better than yours.
Reply with quote
Aarlot
Adept


Joined: 30 Dec 2003
Posts: 226

PostPosted: Fri May 06, 2005 9:26 pm   
 
I wasn't trying to be critical, and I'm sorry if that's how it sounded. I was just pointing out that that #WAIT is a problem a lot of people run into, and the general solution is to use #ALARM, as the zmud help files suggest, as well as these forums.

I apologize to Savior if that's how he took it as well.
_________________
Everyone is entitled to their beliefs - until they die. Then only the truth matters.
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