TRIGGER_DEATH
Keywords:
TRIGGER_DEATH
Syntax: DEATH <percent>
The argument is a number between 0 and 100. When the mobile dies, if
the percentage roll is greater than the argument the mobile performs the MOBprogram commands (MPCOMMANDS) rather than the usual death cry sequence. This is done before the corpse is made, so the command can be considered the mobile last gasp. The position of the mobile is set to STAND, and so it can do all the normal commands, without worrying about being DEAD. However even if the mobile restores itself to full hit points, it will still die.
Examples:
DEATH 20
This trigger will be activated if the mobile dies and if the the percentage roll is lower than 20.
DEATH 100
This trigger will be activated when the mobile dies.