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
psyborg
Beginner


Joined: 12 May 2003
Posts: 24

PostPosted: Mon May 19, 2003 2:10 pm   

#alarm
 
Ok, I am using the following trigger...

#TRIGGER ((@rtcurrent>0)) {#alarm {+1} {#add rtcurrent -1}}

Now, it does work, and it counts down, but it seems to be counting down twice in a second, instead of 1 per second. I tried using the #WAIT command, but that stops processing of all triggers till that wait is over. Any idea how else I could do this?
Reply with quote
Anabasis
Wanderer


Joined: 26 Jan 2001
Posts: 74

PostPosted: Mon May 19, 2003 3:13 pm   
 
#TRIGGER (@rtcurrent>0) {} "" {notrig}
#COND {} {#ADD roundtime -1} {wait|param=1000}

Ana
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Mon May 19, 2003 5:20 pm   
 
If it seems to be counting down twice as often as you want, the obvious solution is to double the alarm time.

A better solution would be to use a repeating alarm instead of a temporary one.

#ALA *1 {#IF (@rtcurrent > 0) {#ADD rtcurrent -1}}

LightBulb
Advanced Member
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