how do i make a trigger have a delay so i see "A few golden coins tumble from the corpse" and i want the trigger "tg" to go off after 5 seconds. how do i do it?
trigger delay
Posted by Adam Petersen on Tue 03 Dec 2002 12:30 AM — 2 posts, 14,556 views.
Triggers go off immediately, which is their nature. However the trigger can call a script that makes a timer.
eg.
Put this in your script file:
Then edit your trigger and add "OnCoins" as the name of the script to call. This will then call that routine, which will do "get coins" (or whatever you want) after 5 seconds.
eg.
Put this in your script file:
sub OnCoins (tname, line, wildcards)
world.DoAfter 5, "get coins"
end sub
Then edit your trigger and add "OnCoins" as the name of the script to call. This will then call that routine, which will do "get coins" (or whatever you want) after 5 seconds.