|
ToyMage Apprentice
Joined: 01 Sep 2005 Posts: 120
|
Posted: 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. |
|
|
|
layman8 Beginner
Joined: 30 Nov 2005 Posts: 12 Location: fwefas
|
Posted: 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 |
|
|
|
Kiasyn Apprentice
Joined: 05 Dec 2004 Posts: 196 Location: New Zealand
|
Posted: Mon Jan 16, 2006 1:15 pm |
I would use #ALARMs
|
|
|
|
|
|