Help

EVENT-TASKS

For immortals

An event can ask for a hook to run later. Tasks are kept with the event, so they survive a reboot; they count the event's own turns (7.5 seconds each), so while it is paused they wait.

CallRuns the hook
after( turns, 'hook' )once, that many turns from now
every( turns, 'hook' [, first] )every that many turns (the first time after first turns)
at( hour, 'hook' )once each game day, at that game hour (0 to 23)
cancel( ['hook'] )drops that hook's tasks (all of them with no name); gives how many

A hook is the name of a function of the event's room, not a function itself. At most 16 tasks per event and 8 run in one turn; the rest wait for the next. Example: Scenario.current.every( 480, 'raidWave' ) runs raidWave() every hour.