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


Joined: 28 Jul 2003
Posts: 6
Location: USA

PostPosted: Mon Jul 28, 2003 9:15 pm   

DR Roundtime help
 
Im looking for a way to handle RTs in DR? anyone know how been trying all kinds of stuff

I have a RT variable that is set by the Q q tags....

DO SOMETHING
#WHILE(@roundtime>0) {#WA 1000}
DO SOMETHING

DO SOMETHING
#MATH RTTicks @roundtime*1000
#WAIT @RTTicks
DO SOMETHING

tried mostly stuff like that cant get anything to work
would also be nice if there was a function to STOP ALL TRIGGERS until the roundtime variable hit 0 and then start everything back up where it left off.....if thats at all possible
Reply with quote
Anabasis
Wanderer


Joined: 26 Jan 2001
Posts: 74

PostPosted: Tue Jul 29, 2003 3:05 pm   
 
quote:
Im looking for a way to handle RTs in DR?


#TRIGGER {q} {round1 = %gsl( Q);round2 = %gsl( q);#if (@round1=@roundcheck) {#abort 1};#if (@round1>@round2) {roundcheck=@round1;#ADD round1 (-@round2)} {round1=0};roundtime = @round1} "" {gsl}

#TRIGGER (@roundtime>0) {} "" {notrig}
#COND {} {#ADD roundtime -1} {wait|param=1000}

Those two triggers will reliably capture and track roundtime. You just need to display the @roundtime variable in whatever way you prefer. I personally use the status line, but whatever works for you.

quote:
would also be nice if there was a function to STOP ALL TRIGGERS until the roundtime variable hit 0 and then start everything back up where it left off.....if thats at all possible


Yeah, you can do that. Dump all your triggers into a class, then turn off the class while the @roundtime is greater than zero.

Alternately, you can also set up a command buffer to store up the commands that your triggers generate while in RT, and have it send them to the game with a slight delay between them once the RT is over.

Ana
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