quote:
Originally posted by CookieRevised
quote:
Originally posted by markee
quote:
Originally posted by CookieRevised
my recent wish (totally not possible atm): enumerate timers...
at the moment there is no way to retrieve/ check what times are running. If there was a way to determine this, developpers can more easly (and more elagant) check for important things like timers which are still running when another user signs in (common mistake to make in scripts which use timers).
example of workaround (which I actually turned into a 'feature', see disclaimer) and more notes about this in my script nudge flood protection.
EDIT: and while at it, a function to see how many time (in ms) there is left for a specific timer.

If you want to be creative using global variables you can check the first one about if a timer is currently in use (though there will be a very small amount of time either side where it will still say that it is being used), though it would be good for us to be able to check rather than have to rely on extra variables. Though the second one would become very useful i think.
can you explain what you're on about here as I don't understand it..... What I suggested is a function to enumerate timers, dunno what this has todo with "being creative with global variables"...
I was talking about setting a global variable just before you start a timer and then change it back to the original value once the timer has been fired. This way you can check on your timers. Sorry, I should have explained it better before. I know this isn't exactly the cleanest and nicest way of going about it but it is a work around that you can do while you wait for this implitation (though I'm sure you could have worked it out yourself before-hand). If you would like me to give you n example just PM me rather than going too far offtopic in this thread.