Skip to main content

Dialogue and sequence data

Data · Routines · Address index

The geometry of dialogue pictures, answer and button positions, and portal images. The data page explains how the entries are written.

DS:0x14b7–DS:0x14c3 — Dialogue bitmap geometry​

  • Layout: four tables of two words: width 0x14b7 {20, 40} (8-pixel columns), height 0x14bb {96, 121}, x 0x14bf {1, 0} (8-pixel columns) and y 0x14c3 {8, 0}
  • Status: no writer found.
  • Role: Width, height, x and y of a dialogue bitmap, indexed by the signed frame without a bound check: frame f reads the words at 0x14b7, 0x14bb, 0x14bf and 0x14c3 plus 2 f. The neighbors are far pointers to strings, before (0x14a7–0x14b5: talk, leave, release him, leave, the answer labels of two non-player character dialogues, 0x4afb8 and 0x4b046) and after (0x14c7–0x14d1: 0x164d, 0x1651, 0x1655, the MAP names of the parchments); their segment words (0x14a9, 0x14ad, 0x14b1, 0x14b5, 0x14c9, 0x14cd, 0x14d1) are adjusted by the DOS loader (entries of the MZ relocation table), so their run-time value depends on the load address.
  • Used by: Dialogue picture frames, Dialogue screen › Drawing a picture, Dialogue screen

DS:0x147c, DS:0x1480, DS:0xdf4e — Wait-button position​

  • Layout: 0x147c, 0x1480: two words each; 0xdf4e: word
  • Role: x (0x147c: 221, 76) and y (0x1480: 189, 162) of the wait prompt's button, indexed by 0xdf4e, which the dialogue initialization and the non-player character sequence set to 0 (0x4b2da, 0x4b1ad) and the parchment reader to 1 (0x4b570).
  • Used by: Dialogue screen › Waiting for the player

DS:0x1484, DS:0x1492 — Answer positions​

  • Layout: 14 unsigned bytes (0x1484), 14 signed bytes (0x1492)
  • Role: x and vertical offset of each position of the choice menu: positions 0–1 (x 59, 166) serve two-answer questions, 2–4 (x 4, 112, 220) three answers; positions 5–13 repeat 4, 112, 220 at offsets 12, 24 and 36.
  • Used by: Dialogue screen › Answer buttons

DS:0xee38 — Dialogue screen active​

DS:0x1505 — Portal image pairs​

  • Layout: signed bytes, ended by a negative value
  • Role: Image pairs of the portal animation.
  • Used by: —

DS:0x6d60 — Dialogue prompt label​

DS:0x6d74 — Last dialogue picture​