Triggers, Timers, and Output

Posted by Webkid on Sat 05 Jul 2003 09:13 PM — 2 posts, 13,406 views.

USA #0
I'm am in need of some help.
I'm trying to get a trigger set up so when it matches it activates a timmer and when the timer is up it sends text to output.
Example:
Match on: Player preforms surgery on Player.
Start Timer: 10 mins.
End Timer: (Output)You can now preform surgery.
and then disable the timer so it doesnt start till the trigger is matched again.

Thanks,

WK
Australia Forum Administrator #1
See this:

http://www.gammon.com.au/scripts/doc.php?function=DoAfterNote

You just need to make a trigger that matches on whatever it is, and then in the "send" text put this:

DoAfterNote 600, "You can now perform surgery"

Make the trigger "send to script" and make sure scripting is enabled under the scripting configuration tab.

What this does will set up a temporary one-shot timer that will fire in 600 seconds (10 minutes) and make that note at that time. Being one-shot it will only do it once.