Skip to main content

Item data

Data · Routines · Address index

Item and item-type records, the item held with the mouse, the inventory layout, and the tables of potions, wands, horns and launchers. The data page explains how the entries are written.

DS:0x2362 — Inventory-slot masks​

DS:0x2590 — Item shape by icon​

DS:0x2601, DS:0x06c3, DS:0xe404 — Flying-object shapes​

  • Layout: 0x2601: one signed byte per item shape, 41 entries; 0x6c3: 4 × 4 bytes; 0xe404: 13 far pointers
  • Role: For a flying item, the first of the two thrown shapes of its item shape (0x2601; −1 for none, set only for item shapes 15, 18 and 20, to 2, 4 and 6); whether a flying object is mirrored, by direction of flight × 4 + position in its block (0x6c3: 0, 1, 0, 1, 0, 0, 1, 1, 1, 0, 1, 0, 1, 1, 0, 0); and the thrown shapes (0xe404), cut from THROWN.CPS by the item and thrown shape loader: shapes 0–8 at column 4 × (k / 8), row 24 × (k mod 8), 4 columns by 24 rows; shapes 9–12 at column 8, row 32 × (k − 9), 6 columns by 32 rows.
  • Comparative source: REF-SCUMM-016, drawFlyingObjects (_flightObjShpMap, _flightObjFlipIndex, _thrownItemShapes).
  • Used by: Spots and wall decorations › Where objects are drawn

DS:0x2558 — Magic flight properties​

DS:0x6dd6 — Item held with the mouse​

DS:0x71ca — Item records​

DS:0x946e — Item-type records​

DS:0xcc32 — Item in use​

DS:0xd1c8, DS:0xe5a0 — ITEM.DAT counts​

DS:0x5540 — Defense slot list​

DS:0x2127, DS:0x215d, DS:0x3702 — Inventory page layout​

  • Layout: 27 words (x), 27 bytes (y) and 27 bytes (drawing kind: 0 normal, 1 quiver with a count, 2 small ring slot); sizes at DS:0x371d
  • Role: Where each inventory slot is drawn on the inventory page.
  • Used by: The inventory › Inventory slots

DS:0x3806, DS:0x3829, DS:0x3857 — Inventory messages​

DS:0x3634, DS:0x3661, DS:0x36b6, DS:0x37bb–DS:0x37fd — Item name parts​

  • Layout: lists of zero-terminated strings stored one after the other, with no stored length (the ring list at file offset 0x31994)
  • Role: Ring names (Adornment, Wizardry, Sustenance, Feather Fall and two empty strings), potion names (Giant Strength, Healing, Extra Healing, Poison, Vitality, Speed, Invisibility, Cure Poison, empty) and wand names (Stick, Lightning, Frost, Curing, Fireball, Starfire, Magic Missile, Dispel Magic), then the formats "%d Cursed %s", "+%d %s", the labels "Mage Scroll", "Cleric Scroll", "Ring", "Potion", "Wand" and "%s of %s", used by the item name routine. A ring value above 5 reads the potion list: the location of the ring-name bug.
  • Used by: Items › Item names, Items, The item types, Texts, Anomalies and bugs

DS:0x3720 — Potion messages​

DS:0x377e — Wand spell table​

  • Layout: 8 signed bytes
  • Role: Spell definition cast by a wand of each value: 0, 17, 23, 49, 13, −1, 4, 12; value 0 is refused and value 5 is replaced by definition 64 before the table is read (use a wand). A value of 8 or more reads past the table.
  • Used by: Potions, scrolls and wands, The item types

DS:0x3786 — Horn messages​

DS:0x5531 — Launcher ammunition​

DS:0x2342 — Launch and drop positions​

DS:0x3598, DS:0x35a0, DS:0x35a6 — Keyboard item positions​

  • Layout: 4 × 2 bytes; 6 bytes; 4 words
  • Role: 0x3598 gives, per direction, the front-left and front-right positions of the party's block (0 1, 1 3, 3 2, 2 0); 0x35a0 the side of each character slot (0 1 0 1 0 1). The keyboard drop and throw use them. 0x35a6 (0, 0, 1, 1) tells the keyboard take which zones are in the block ahead.
  • Used by: