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.
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
| Condition | Use a hand item: attack, cast… | Eat | Change place | Attacked by monsters in melee | Hit by a single-target projectile |
|---|---|---|---|---|---|
| Poisoned | yes | yes | yes | yes | yes |
| Paralyzed | no | yes | yes | yes | yes |
| Unconscious (0 to −9 hp) | no | no | yes | yes | yes |
| Turned to stone | no | no | yes | no, the next slot is tried | stops it, no damage |
| Dead (−10 hp or less) | no | no | yes | no, the next slot is tried | stops 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.