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.
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
- Its hit points become −1.
- 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.
- When the attack awards experience, the party receives the type's
experiencevalue from the INF monster type. - It is placed on block
[00:00]: its old block loses one occupant and receivesBLOCK_EVENT_MONSTER_EXIT, then[00:00]gains one and receivesBLOCK_EVENT_MONSTER_ENTER. - 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.