Skip to main content

Recruiting and dismissing characters

The party · Characters of the game · Camp menu

In brief​

Six prepared characters can join the party during play: three through their dialogues, one through a special event and any of them from a set of bones at a resurrection altar. When the party already holds six characters, the player chooses one to dismiss: its items fall to the floor and its slot is taken by the newcomer. The camp menu can also drop a character when at least five are present; a back character then fills the gap.

How a prepared character joins the party. When six characters are present, the player chooses one to dismiss, or CANCEL, which changes nothing. The bones of the newcomer are deleted and the chosen character, if any, is dismissed; the preset is copied into the first free slot; its defense is computed again, its items are copied and its portrait is drawn.
A full party must give up a character before a newcomer joins.

Recruiting and dismissing characters​

Six prepared characters can join the party. Each is a full character record stored in the executable, copied into the party when the character joins; the page characters of the game lists them with their values and where each one joins.1

Preset n has portrait − n − 1, image n of OUTPORTS.CPS. Joining computes the stored defense again. No preset has a spell slot, a timer or a lasting effect.

Three paths recruit a preset:

the resurrection of a set of bones, an item of type 33: bones of value v bring back preset v − 1. The sets of bones of the game are listed with the characters.

Each path ends in the same steps:

recruit(preset):
if all six slots hold a character marked CHARACTER_STATUS_PRESENT:
"You may only have six characters in your party.
Select the one you wish to drop."
choose one of the six, or CANCEL: nothing changes, stop
delete every set of bones of value preset + 1
dismiss the chosen character
else:
delete every set of bones of value preset + 1
slot = the first slot without CHARACTER_STATUS_PRESENT
copy the preset into it, keeping the slot's portrait buffer
compute its defense again
replace each item of inventory slots 0-24 by a new copy of it
draw portrait `preset` of OUTPORTS.CPS

The bones are deleted from the inventories of every character marked present, dead or not, and from the hand in mouse control. A dialogue shows its own text before these steps, so its acceptance text appears even when the player then cancels.

Dismissing a character sets its status_flags to 0 and drops its items in the party's block: every inventory slot except the quiver, then the quiver's items one by one, each on one of the two floor quarters at the front of the block, chosen at random. The selected character becomes the first one if it was the dismissed one, and the character timers are scheduled again. Nothing else in the record changes: the name, attributes, spells, lasting effects and timers stay in the slot until another character is copied into it, but the game treats the slot as empty.2

Dropping a character is the Drop Character button of the camp menu. It needs at least five characters present; otherwise the game shows "You cannot have less than four characters.". It asks for the character to drop, among all those present, removes it as above and redraws the play screen. When the character was in one of the slots 0 to 3, the character of slot 5, or of slot 4 when slot 5 is empty, takes its place. The first character becomes the selected one.3

Slot order. Dismissing does not move the other characters. A preset recruited into a full party takes the dismissed character's slot; otherwise it takes the first empty slot, which may be in the front rank if a front character was dismissed earlier. Only dropping a character and Insal's departure move a character to fill the gap.

Dead, unconscious and petrified characters count as party members: they can be the one dismissed, and their items fall like the others'. The ring slots, 25 and 26, of a preset are not copied item by item; no preset has a ring.

Anomaly

ANOMALY-77 — Bones without a preset. The resurrection menu lists every set of bones without checking its value, and recruiting copies preset v − 1 from a table of six. The initial ITEM.DAT holds a set of bones of value 99 on level 1, at [23:11] (block index = YY × 32 + XX). Brought to a resurrection altar, it is listed with an empty name, as the bytes read for "preset 98" start with a zero there. Choosing it deletes it and adds a character made of 345 bytes of unrelated data of the executable, file names of pictures: a present character with no name, 83 hit points out of 18,507, a class and levels outside the tables. Its first 25 inventory words are taken as item numbers, each replaced by a copy of whatever that number designates (unknown content). The level scripts keep this from happening: the bones crumble to dust as soon as they are picked up (level 1). A faithful reimplementation applies no range check; one that adds one changes the behavior for that item.2

Value 0 is not bounded either, and takes another path. The offset of the name wraps around, so the name comes from the game's variables (unknown content). The menu codes a set of bones as its negated value and a dead member as its slot, so value 0 reads as slot 0: choosing it deletes nothing, recruits nobody and sets the hit points of slot 0 to 1, whatever its state. The case is latent: the only set of bones of value 0 in the initial ITEM.DAT is template 19, which lies on no level, and the script that copies it sets its value to 3 (level 2).2

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. Make room in the party, preset initialization and the shared join, with the recruitment texts, the presets, the item deletion by type and value and the resurrection menu. Comparative source: REF-SCUMM-009, npcJoinDialogue, prepareForNewPartyMember and initNpc. ↩

  2. Remove a character, with the item positions, the selected character and the re-armed character timers; for the anomaly, the resurrection menu, preset initialization and the presets. Comparative source: REF-SCUMM-009, removeCharacterFromParty. ↩ ↩2 ↩3

  3. Remove a character and fill its slot, remove a character, choose a spellcaster, which asks for the character, and redraw the play screen, called by the camp menu. ↩