TRIGGER_DELAY
Keywords:
TRIGGER_DELAY
Syntax: DELAY <percent>
The argument is a number between 0 and 100, this trigger is activated
when the delay of a mobile (set with the MOB DELAY command) expires. For example, the mob is processing a program and in its code has the
command:
MOB DELAY 20
When this timer 20*PULSE_MOBILE expires the program will check
the delay trigger:
MOBPrograms for [ 3006]:
Number Vnum Trigger Phrase
------ ---- ------- ------
[ 0] 3009 DELAY 20
If the percentage roll is lower than 20, the program 3009 will be executed.
A mobile can have several delay triggers, but every time the delay
timer expires, all the triggers are checked and the first sucessful one is executed.
Examples:
DELAY 50
This trigger will be activated if the mobile is processing a program which has the command MOB DELAY and its timer has expired (timer*PULSE_MOBILE) and if the percentage roll is lower than 50.
DELAY 100
This trigger will be activated if the mobile is processing a program which has the command MOB DELAY and its timer has expired (timer*PULSE_MOBILE).