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


Joined: 01 Sep 2005
Posts: 120

PostPosted: Mon Jan 16, 2006 7:46 am   

Many Tickers / Timewatch?
 
Hey I need to monitor several variables periodically.

Can I make zmud check my &hit every 5 seconds? and &move every 10 seconds? and mana &30 seconds?

So far i'm using the ticker function but I can't set two timing for both.

Thank you.
Reply with quote
layman8
Beginner


Joined: 30 Nov 2005
Posts: 12
Location: fwefas

PostPosted: Mon Jan 16, 2006 8:03 am   
 
A general way would like this:

Set your tick to 1 second and tick content to:

#add tn1 -1;#if (@tn1<1) {tn1=@ts1;tk1};
#add tn2 -1;#if (@tn2<1) {tn2=@ts2;tk2};
#add tn3 -1;#if (@tn3<1) {tn3=@ts3;tk3}
...
Assign tick content of virtual tick timer 1,2,3 to tk1, tk2, tk3...
I guess you can figure out how to deal with tn1, ts1, etc.
_________________
Hi, this is layman
Reply with quote
Kiasyn
Apprentice


Joined: 05 Dec 2004
Posts: 196
Location: New Zealand

PostPosted: Mon Jan 16, 2006 1:15 pm   
 
I would use #ALARMs
_________________
Kiasyn
Owner of Legends of Drazon
Coder on Dark Legacy
Check out Talon, an easy IMC connection.
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