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: Thu May 15, 2003 8:27 pm   

Using Gauges
 
I have the gauges button set up correctly as far as I can tell. And the variables are all set. As are my triggers. Here is my example.

search
You search around, blah blah.
Roundtime 10 sec.

I have the following triggers.

#TRIGGER {^roundtime (%n)} {#if (@rtmax>0) {
#var rtmax @rtcurrent
#add rtmax %1
#add rtcurrent %1
} {
#var rtmax %1
#var rtcurrent %1
}}

#TRIGGER ((@rtcurrent>0)) {
#wait 1000
#add rtcurrent -1
#GAUGE RT "" @rtcurrent @rtmax
}

#BUTTON 1 {} {} {} {} {@rtcurrent} {} {} {} {} {} {} {} {} {32842} {} {Gauge||12|@rtmax||0} {} "" {Explore|Inset} {} {RT}



Now then, with all that said. I can do a #show @rtcurrent and see the value counting down. If I right click on the gauge and hit refresh on the settings screen, and then click back on the main window with the guage, it updates, but I cannot get it to update on it's own. Any ideas on what I can check out?
Reply with quote
psyborg
Beginner


Joined: 12 May 2003
Posts: 24

PostPosted: Thu May 15, 2003 8:39 pm   
 
Oh, and on a side note, it seems the triggers I use to send other "patterns" to other windows don't function during this time either. Maybe something is stopping the triggers from working correctly?
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Thu May 15, 2003 9:03 pm   
 
It's the #WAIT command. You should avoid using this command and replacing it instead with #ALARM's. Here are two examples:
#TRIGGER {some pattern} {#WAIT 1000;other commands}

transforms to:
#TRIGGER {some pattern} {#ALARM {+1} {other commands}}

#TRIGGER {some pattern} {#WAIT 2000;some commands;#WAIT 1000;other commands}

transforms to:
#TRIGGER {some pattern} {#ALARM {+2} {some commands;#ALARM {+1} {other commands}}}

Kjata
Reply with quote
psyborg
Beginner


Joined: 12 May 2003
Posts: 24

PostPosted: Sun May 18, 2003 1:55 pm   
 
When I use #alarm, it counts down very strangely. Almost like 2 "seconds" off the counter every second.


#TRIGGER ((@rtcurrent>0)) {#alarm {+1} {#add rtcurrent -1}}
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