Skip to main content

Conditions

The party · Formation · CharacterStatusFlags · CharacterEligibilityMask

In brief​

A character's condition comes from its hit points and three status flags. At 0 hit points it falls unconscious, at −10 it dies; poison, paralysis and petrification come on top. Each action asks for its own set of tests: an unconscious character can still be swapped, a paralyzed one can still eat. When no character can use the items in its hands any more, the game starts its defeat sequence.

A character's condition by hit points: above 0 it is conscious; from 0 to −9 it is unconscious and can no longer use its hands or eat; at −10 or less it is dead. Three status conditions come on top: poisoned, which still allows everything; paralyzed, which stops the use of hand items; turned to stone, which stops everything, and which monsters skip when they choose whom to attack.
Hit points set the state; poison, paralysis and petrification come on top.

Conditions​

A character's condition comes from its hit_points and the CharacterStatusFlags; each action asks the eligibility routine for its own set of tests:1

ConditionUse a hand item: attack, cast…EatChange placeAttacked by monsters in meleeHit by a single-target projectile
Poisonedyesyesyesyesyes
Paralyzednoyesyesyesyes
Unconscious (0 to −9 hp)nonoyesyesyes
Turned to stonenonoyesno, the next slot is triedstops it, no damage
Dead (−10 hp or less)nonoyesno, the next slot is triedstops it, no damage

"Use a hand item" covers what a character does with the items in its hands: melee and missile attacks, and casting from a spell book or holy symbol. A character who cannot eat gets "name isn't capable of eating food!". Attacking with a hand item ends the attacker's Invisibility, but not Improved Invisibility; an invisible character escapes most melee attacks, as described above, but not projectiles.

The same test as for using a hand item decides whether the party can still act: when no character passes it — every one is absent, unconscious, paralyzed, petrified or dead — the game starts its defeat sequence; see one pass of the game loop. What each condition allows during a rest is summed up under conditions while resting.

Sources​

Locations refer to the game executable reference; comparative sources are listed in the technical references. The figures are drawn by make_party_figures.py.

Footnotes​

  1. Use the item of a slot, eat the item in hand, swap two characters, target choice, magic object hit and the party status check. Comparative source: REF-SCUMM-018, gui_processWeaponSlotClickRight and eatItemInHand. ↩