please teach me to create & synchoronize tick timers?

Posted by Crafty Wafty on Sat 05 Jan 2002 09:31 PM — 2 posts, 12,944 views.

#0
im new to mushclient, so far i didnt found out how to put on tick timers. is it possible in mushclient?

Australia Forum Administrator #1
You can make a timer easily enough from the timers configuration screen. Then to synchronise it you could make a trigger that matches on whatever you get when the tick elapses, and "reset" that timer at that moment (ie, force it back to zero). The trigger would call a small script like this:


sub OnTickMessage (strTriggerName, strTriggerLine, aryWildcards)
world.ResetTimer "mytimer"
end sub


For this to work you timer would need to have a "label" (name) of "mytimer".