Skip to main content

When a monster dies

Monsters · Damage to a monster · Bestiary

In brief​

A monster dies when damage leaves it without hit points; a monster that dies on any hit explodes first. Its items fall into its block, the party receives its experience, and the monster is moved to block [00:00], which sends monster events to both blocks. A peaceful victim wakes every peaceful monster. On level 16, the death of the final opponent turns it into its second form, and the death of that form ends the game.

What happens when a monster dies, in order. A type that dies on any hit explodes first, harming the party with 6d6 per character, halved by a saving throw, when the party is in its block or a neighbouring one. Then its hit points become -1; its fixed item falls, and its random item one time in ten; the party receives its experience when the attack awards it; it is placed on block [00:00], which sends exit and enter events; and if it was peaceful, every peaceful monster pursues the party. On level 16, sublevel 1, the final opponent skips the last two steps.
Explosion, items, experience, removal, then the waking of peaceful monsters.

Positions are written [XX:YY], column then row, both counted from 00; the block index is YY × 32 + XX.

In what order​

A monster dies when damage leaves it with no hit points. A type with MONSTER_CAP_DIES_ON_HIT in its capabilities dies from any damage, and explodes first: when the party stands in its block or a neighbouring one, diagonals included, the explosion appears on the party's block and each character takes 6d6 points of damage, halved by a saving throw of category 1; otherwise the explosion appears on the monster's block and harms no one. Death proceeds in this order:1

  1. Its hit points become −1.
  2. Its items fall into its block at its position — a random position from 0 to 3 when that position is 4: a copy of its fixed item always, and a copy of its random item with a one-in-ten chance.
  3. When the attack awards experience, the party receives the type's experience value from the INF monster type.
  4. It is placed on block [00:00]: its old block loses one occupant and receives BLOCK_EVENT_MONSTER_EXIT, then [00:00] gains one and receives BLOCK_EVENT_MONSTER_ENTER.
  5. If it was MONSTER_MODE_PEACEFUL, every peaceful monster wakes up and pursues the party, as when one is provoked.

The slot keeps −1 hit points and block [00:00], so the monster update skips it until a new monster reuses it.

On level 16, sublevel 1, the death of a monster whose type has MONSTER_CAP_WALL_SPECIAL_TYPE_1 skips steps 4 and 5. A type-0 monster turns into the next type with 150 hit points, takes the slot's second graphics (its graphics_index goes up by one), starts its ranged weapons again from the first with no limit on their number, then a sequence shows the DRANX pictures; any other type ends the game: the game writes FINAL.SAV, plays the ending and returns to DOS. The game does not check which sublevel the monster was placed in. Reading this branch as the final opponent's transformation and the end of the game is inferred.1

Step 4 adds one to [00:00]'s whole state word for every death. The occupancy count has only three bits, so from the eighth death the carry reaches the event-enabling bits of [00:00]. In the reference levels, [00:00] has no binding that enables monster events, so no script runs on that entry.1

Sources​

Locations refer to the game executable reference; comparative sources are listed in the technical references.

Footnotes​

  1. Damage a monster, the monster explosion, kill a monster and place a monster on a block, with the DRANX sequence; the drops use duplicate an item and the item-chain insertion, experience the award routine. Comparative source: REF-SCUMM-014, inflictMonsterDamage, killMonster and DarkMoonEngine::killMonsterExtra. The [00:00] statistics come from the cell bindings of the 16 reference INF files. ↩ ↩2 ↩3