values from timers to variables

Posted by Silencher on Sat 12 Apr 2014 11:15 PM — 2 posts, 13,144 views.

#0
I have a trigger set to try to monitor my cooldowns, it works fine and lets me know as soon as an ability is ready to use, but for the really long cooldown abilities, like 2-3 hours, it would be nice to know how much longer it is until the ability is ready.

Is there a way to pull the 'current' time of a timer and apply parts of it to a variable?

Say I have timer: "my_timer" and it's set to 1 hour, 30 minutes, 0 seconds. when it starts.

15 minutes and 23 seconds have passed.

Is there a way to pull that the time remaining on that trigger is 1 hour, 14 minutes and 37 seconds?
Australia Forum Administrator #1
Template:function=GetTimerInfo
GetTimerInfo

The documentation for the GetTimerInfo script function is available online. It is also in the MUSHclient help file.



Selector 12 tells you when the timer will fire. Thus you can work out from that (compared to the current time) how far in the future that is.

Or Selector 13: Number of seconds until timer will fire next ...