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
Morten
Apprentice


Joined: 17 Feb 2001
Posts: 119
Location: Denmark

PostPosted: Thu Nov 29, 2001 4:42 pm   

timers
 
ok this is what i want:
a timer/alarm that starts on a trigger.
this alarm should set a varible every second for 30 min.(like when alarm is 1 sec then the var. is = 1 and so on). after 30 min. it should stop.

Yugo

p.s. i'm using the timer so i cant use that.


Yugo Sangori
Reply with quote
Darker
GURU


Joined: 24 Sep 2000
Posts: 1237
Location: USA

PostPosted: Thu Nov 29, 2001 7:09 pm   
 
In the span of 10 seconds, I thought of 3 different ways to do this. Each has it's own benefits and costs. Could you explain the purpose of this system more? How is the variable being used? Why 30 minutes? etc. This'll help identify the best solution.



zMUD 6 Online Help: All the power you'll ever need.
Reply with quote
Morten
Apprentice


Joined: 17 Feb 2001
Posts: 119
Location: Denmark

PostPosted: Thu Nov 29, 2001 7:49 pm   
 
i'm using the CPPI plugin (great piece of work btw) and wana make a gauge it in that slowly desent to 0. the reason for 30 min is simply that i wana recast some spells after 30 min. but i dont want this do automatick this is reson i want it to stop and not just cast the spells and reset.

Yugo Sangori
Reply with quote
Emit
Magician


Joined: 24 Feb 2001
Posts: 342
Location: USA

PostPosted: Fri Nov 30, 2001 10:56 pm   
 
try this


#tr {*the pattern you want*} {
count = 0
#while (@count < 1800) {
waittime = [@count*1000]
#wait @waittime
#add count 1
}
}

i think it should work fine, provided that the case of @count = 0 doesnt cause zmud to wait for the next buffer.
Emit
edited @ 4:52pm cus i'm an idiot
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