Skip to main content

Party and character data

Data · Routines · Address index

The characters and the party's position; the tables of classes, hit points, experience and saving throws; party creation. The data page explains how the entries are written.

DS:0x0c05, DS:0x0c8d, DS:0x0ccd, DS:0x0d55 — Spell slot tables​

  • Layout: rows of eight bytes, one per spell level: cleric (0x0c05, 17 rows by level), wisdom bonus (0x0c8d, 8 rows for wisdom 12 to 19), paladin (0x0ccd, 17 rows), mage (0x0d55, 17 rows).
  • Role: Slots per spell level read by the memorize and pray menus. The wisdom table is directly followed by the paladin table, which a wisdom above 19 reads.
  • Used by: Spell slots › Spell slots per level, Spell slots

DS:0x1ec8 — Number of class levels​

DS:0x1ed7 — Saving-throw and hit-roll group of each class​

DS:0x1f9a — Class mask table​

DS:0x1fa9 — Alignment names​

DS:0x1fcd, DS:0x2871 — Ordinal words​

  • Layout: five far pointers at DS:0x1fcd, then five zero-terminated strings, First, Second, Third, Fourth and Fifth, at DS:0x2871, 0x2877, 0x287e, 0x2884 and 0x288b
  • Status: the code that reads the pointers has not been traced; the use of the words is unknown.
  • Role: The ordinal words of the game's text, reached through a table of far pointers.
  • Used by: Texts

DS:0x346a — Turn-undead thresholds​

  • Layout: rows of 14 signed bytes, by turn resistance; rows 0 to 9 hold thresholds (−1 destroy, 99 never), the bytes from row 10 on belong to other data
  • Role: Read by the turn-undead threshold at index 14 × resistance + min(level, 14). Column 0 is never read, and index 14 is the first byte of the next row (ANOMALY-131).
  • Used by: Attack spells

DS:0x5559, DS:0x3462–DS:0x3469, DS:0x328f–DS:0x32e7 — Combat tables​

  • Layout: words and signed bytes; see the role
  • Role:
    • 0x5559: six word pairs (damage flag, immunity) of the monster damage calculation: (0x01, 0x10), (0x02, 0x20), (0x80, 0x400), (0x20, 0x800), (0x40, 0x80), (0x400, 0x40).
    • 0x3462 and 0x3466: the to-hit step (1, 1, 2, 1) and level divisor (1, 3, 3, 2) of the four class groups of 0x1baa9, the group being DS:0x1ed7[class].
    • 0x3299 (base 0x3298), 0x32bc (base 0x32bb), 0x32d5 (base 0x32d4): strength hit (scores 1–25), strength damage (1–25) and dexterity hit (1–19) modifiers; the score-1 values are −5, −4 and −6. The dexterity table's bytes for scores 20–22 overlap the following data.
    • 0x328f/0x3294 and 0x32b2/0x32b7: exceptional-strength limits 1, 51, 76, 91, 100 with hit modifiers 1, 2, 2, 2, 3 and damage modifiers 3, 3, 4, 5, 6.
    • Monsters save with the warriors' threshold table at 0x31ed.
  • Used by: Hit rolls › A character's hit roll, Damage to a monster › How the damage is reduced, Kinds of damage dealt to a monster, Level data (INF), Tools, Anomalies and bugs

DS:0x31ac–DS:0x3237 — Saving-throw thresholds​

DS:0x3238–DS:0x3261 — Saving-throw group parameters​

DS:0x319a, DS:0x31a0, DS:0x31a6 — Hit-point tables​

  • Layout: six signed bytes each, one per base class (fighter, mage, cleric, thief, paladin, ranger)
  • Role: Hit die (10, 4, 8, 6, 10, 10), last level rolled (9, 10, 9, 10, 9, 9) and fixed gain above it (3, 1, 2, 2, 3, 3), read by hit points for a level.
  • Used by: Attributes and classes › Classes

DS:0x3262 — Class components​

DS:0x3319 — Constitution hit-point modifiers​

  • Layout: signed bytes indexed by constitution
  • Status: the byte at score 0 (−1) has no established owner; score 25 reads the first byte (0) of the mage experience table. Only a character transferred from Eye of the Beholder I can have such a score.
  • Role: −3, −2, −2, −1, −1, −1, then 0 from 7 to 14, then +1 to +5 for 15 to 19, +6 for 20 to 22 and +7 for 23 and 24; read by the constitution modifier.
  • Used by: Experience and levels › Gaining a level

DS:0x3332–DS:0x3461 — Experience tables​

DS:0x5545–DS:0x5558 — Saving-throw constitution adjustment​

DS:0x6dd2 — Party block​

DS:0x6dd4 — Party direction​

DS:0xe608 — Characters​

DS:0xef2e — Copy of the party block​

  • Layout: word
  • Role: Set to the party block before the game loop (0x1ca17) and at the start of every pass (0x1ca23). No instruction of the resident image or the overlays reads it.
  • Used by: —

DS:0x2724, DS:0x1f46 — Class names​

DS:0x27d0 — Base-class names​

DS:0x268c, DS:0x1f16 — Race and sex names​

  • Layout: 12 strings; 12 far pointers to them at DS:0x1f16
  • Role: HUMAN MALE, HUMAN FEMALE, ELF MALE, ELF FEMALE, HALF-ELF MALE, HALF-ELF FEMALE, DWARF MALE, DWARF FEMALE, GNOME MALE, GNOME FEMALE, HALFLING MALE, HALFLING FEMALE: the items of the race menu, whose choice is stored in race_and_sex. The race is that value divided by 2.
  • Used by: Creating a party › Creating the party, Races, Characters of the game, Texts

DS:0x079f–DS:0x0966 — Creation tables​

  • Layout: DS:0x079f race modifiers, 6 races × 6 signed words; DS:0x07e7 starting levels, 15 classes × 4 bytes (three levels, then the number of classes); DS:0x0823 race minimums and DS:0x086b race maximums, 6 × 6 words; DS:0x08b3 class minimums, 15 × 6 words. Attributes are in the order strength, intelligence, wisdom, dexterity, constitution, charisma; races in the order of the race names. A strength maximum of 0x6412 is 18 with a percentage of 100.
  • Role: Read by generate a character and the creation limits. The values are listed on the party page.
  • Comparative source: REF-SCUMM-017, _raceModifiers and generateStats.
  • Used by: Creating a party › Rolling the attributes

DS:0x096f, DS:0x0987 — Creation menu masks​

  • Layout: DS:0x096f 6 dwords, one per race; DS:0x0987 15 dwords, one per class
  • Role: Bit n of a race's mask allows class n in the class menu: 0x003f, 0x07bb, 0x77fb, 0x00f1, 0x08f1, 0x00b1. Bit n of a class's mask allows alignment n in the alignment menu: 0x1ff for FIGHTER, MAGE, CLERIC, FIGHTER/CLERIC, FIGHTER/MAGE, FIGHTER/CLERIC/MAGE and CLERIC/MAGE; 0x7 for RANGER and RANGER/CLERIC; 0x1 for PALADIN; 0x1fe for the others.
  • Comparative source: REF-SCUMM-017, _classMenuMasks and _alignmentMenuMasks.
  • Used by: Creating a party › Race, class and alignment

DS:0x0af2, DS:0x0b02 — Starting armour lists​

DS:0x0b20–DS:0x0b57 — Prepared-party tables​

  • Layout: DS:0x0b20 4 far pointers to the names ALLABAR, WILLIAM, CIRCE and APHRODITE (DS:0x0b78…); then 4 words each of portrait (DS:0x0b30: 23, 7, 31, 29), class_index (DS:0x0b38: 2, 5, 3, 4), race_and_sex (DS:0x0b40: 0, 0, 3, 1), alignment (DS:0x0b48: 0, 1, 1, 1) and level (DS:0x0b50: 6, 7, 7, 7). DS:0x0b58 starts the text "Entering game. Please wait."
  • Role: Read by the prepared party, which reads six entries of each, two past the end of every table.
  • Used by: Entering the game › A prepared party, Characters of the game, Texts

DS:0xcb78 — Current creation box​

  • Layout: word, 0–3
  • Role: The box, and so the character record, that the creation routines work on.
  • Used by:

DS:0xe4d2 — Resting flag​

DS:0xee20 — Character being swapped​

DS:0xcc18, DS:0xcb64 — Creation limits​

DS:0xd0b2, DS:0xd17a — Creation shapes​

  • Layout: 67 far pointers, DS:0xd0b2–0xd1bd
  • Role: Filled by load the creation images: entries 0–43 the portraits, entries 50–59 (DS:0xd17a) the box-animation frames. The other 13 stay null. All 67 are released, and not cleared, by release the creation images.
  • Used by:

DS:0x0eee, DS:0x0f19, DS:0x0f28, DS:0x0f3a, DS:0x0f53, DS:0x0f6b — Rest texts​

  • Layout: zero-terminated strings
  • Role: Printed by the rest and its helpers: the refusal while the rest refusal flag is set (0x0eee, at 0x45107); the recovered cleric and mage spell (0x0f19, 0x45341; 0x0f28, 0x45407); a healer's cure (0x0f3a, 0x455c9); the hours counter (0x0f53, 0x45b4a); the refusal when monsters are near (0x0f6b, 0x45d0d). These are file offsets of overlay code.
  • Used by: Resting › Resting, Texts, Resting: special cases

DS:0x14a0, DS:0x1598, DS:0x15f6 — Recruitment texts​

DS:0x163b, DS:0x1661, DS:0x167d — Menu labels and the dream picture​

DS:0x16ce — Item types kept by a party transfer​

  • Layout: one byte per item type, indexed by the type of an Eye of the Beholder I item read as a signed byte, with no bound check (overlay code at file offset 0x4c507); bytes for types 0–59 lie before other data at DS:0x170a, the chooser's label positions
  • Status: where the table ends is inferred: the last nonzero byte is type 50 and the bytes for types 51–59 are zero.
  • Role: Read by convert an item: 0 drops the item. The types with a nonzero byte are 0, 1, 2, 4, 5, 7, 9–16, 18–22, 24, 25, 27–32, 34, 35, 39, 41–44, 47, 48 and 50. The byte of type 4 (DS:0x16d2) is 1, although the item table holds no item of type 4 to take its name from, so such an item is always deleted with the conversion-failure message.
  • Comparative source: REF-SCUMM-017, TransferPartyWiz::convertItem (_itemTable).
  • Used by: Transfer: spells and items › Anomalies of the transfer, Run a sequence › Without a level change, Anomalies and bugs

DS:0x1779 — Item conversion failure​

  • Layout: zero-terminated format string
  • Role: The message of convert an item when no item of the table gives a name, formatted with the Eye of the Beholder I item's type, icon, value and flags (overlay code at file offsets 0x4c77a–0x4c7ed).
  • Used by: Transfer: spells and items › Items

DS:0x17e1, DS:0x1816, DS:0x184b, DS:0x1852 — Party transfer screen texts​

DS:0x5590 — Level gain text​