Triggers+Timers

Posted by Zeno on Thu 23 Jan 2003 11:51 PM — 6 posts, 17,635 views.

USA #0
Is there anyway when certain text is matched it starts a timer? Or vise versa? Like when "You have been killed" it starts a timer for 30min then when that 30min is up, it displays a comment?
Australia Forum Administrator #1
Have the trigger that matches the text "You have been killed" call a small script subroutine, like this:

sub OnKilled (name, output, wildcards)

world.DoAfter 30 * 60, "say blah blah"

end sub


The call "world.DoAfter" sends some text after x seconds, so saying 30 * 60 would be after 30 minutes (or you could just replace that with 1800 seconds).
USA #2
Instead of sending to world, how would I make it sends to output?
Amended on Sat 25 Jan 2003 12:07 AM by Zeno
Australia Forum Administrator #3
See DoAfterNote
USA #4
ok, thanks. Errr, how would I see how much time is left in a timer?
Australia Forum Administrator #5
See GetTimerInfo, selector 13.