Skip to main content

ON_DEATH

ON_DEATH

This Event is triggered when a monster (originally positioned in the specified cell) dies. If multiple cells are indicated, it is triggered only when all those monsters are dead.

  • Parameters: (cell_coordinate_1, cell_coordinate_2, ...)

  • Example: {[[(Q), ON_DEATH(J12, J15)]] You've killed your targets, now you can escape the stairs!}

In this example, the ON_DEATH event is associated with the killing of the two monsters starting in positions J12 and J15 (the two mummies in the example below). When both mummies are defeated, the message "You've killed your targets, now you can escape the stairs!" will appear on the screen.

NOTE: This Event only works with monsters. If you want an Event to trigger upon the death of a single hero, use ON_SINGLE_HERO_DEATH, or if you want it to trigger upon the death of all heroes, use ON_ALL_HERO_DEATH.