|
psyborg Beginner
Joined: 12 May 2003 Posts: 24
|
Posted: 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? |
|
|
|
Anabasis Wanderer
Joined: 26 Jan 2001 Posts: 74
|
Posted: Mon May 19, 2003 3:13 pm |
#TRIGGER (@rtcurrent>0) {} "" {notrig}
#COND {} {#ADD roundtime -1} {wait|param=1000}
Ana |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: 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 |
|
|
|
|
|