Skip to main content

Glossary

Home · The engine in ten minutes · Reading guide

In brief​

The terms this site uses everywhere, each with a short definition and the page that explains it. Names of structures, values and routines are descriptive names chosen by this project; the original names are not known. See the reading guide.

Positions are written [XX:YY], column then row, both counted from 00; the block index is YY × 32 + XX.

Terms​

Anomaly. A behavior of the executable that contradicts the game's own data or its code elsewhere, reads or writes outside the structure it addresses, or departs from the rules the same code applies in similar cases. A bug is an anomaly where the code contradicts itself. See the anomaly catalogue.

Block. One cell of a level's grid of 32 × 32. A block has four faces, one per direction, each holding a wall reference, and keeps a monster count and the items lying in it. See LevelBlockRuntime.

Block event. A signal the game sends to a block when something happens there: the party enters or leaves, an item is dropped, a timer expires, a spell is cast. If the block has a script and accepts the event, the script runs. See how the systems connect and BlockEventMask.

Block index. The number of a block in its level, from 0 to 1,023: YY × 32 + XX for the block at [XX:YY].

Cell binding. An entry of a level's INF file that attaches event flags and a script entry point to a block. See scripts.

Character timer. One of the ten deadlines of a character, each with an event code: a hand becomes usable again, an effect ends, poison strikes again. See character timers.

Destination block. The block a monster walks toward; the party's block once the monster has noticed it. See monsters.

Direction. 0 north, 1 east, 2 south, 3 west; the party's facing is a direction. See Direction.

Flying object. A thrown item, a missile or a spell object moving from block to block until it hits something or falls. See flying weapons and throwing and launching items.

Item, item type. An item is one entry of the item table that the game keeps for every level at once; an item type holds the properties shared by all items of that type. See ItemRuntime, ItemTypeRuntime and items.

Level record. What a level keeps when the party leaves it: its walls, its 30 monsters and its temporary walls, stored in LEVELS.TMP and in saved games. See level records.

Monster slot. One of the 30 monsters of the current level, with its position, hit points and state. See MonsterRuntime.

Monster type. The values shared by all the monsters of one number on a level: armour class, hit dice, attacks, flags, experience. Each level defines its own types in its INF file. See bestiary.

Monster update group. One of four groups whose timed update makes their monsters act; even and odd slots of a unit take turns. See monster update cadence.

Overlay. A part of START.EXE loaded into memory only when needed, such as party creation or the introduction. See overlays.

Party slot. One of the six places of the party; slots 0 and 1 form the front rank, the only one that can strike in melee. See formation.

Pass. One run of the game loop: party check, input, timed updates, redraw, sound. See the game loop.

Saving throw. A roll of a twenty-sided die that must reach a threshold to resist an effect. See saving throws.

Script. The code of a level, stored in its INF file and run by the script virtual machine when a block receives an event it accepts. See scripts and the script virtual machine.

Shared counter, tick. The count of ticks, about 18.2 per second, that every deadline of the game refers to; it stops during pauses. See the game clock.

Step-triggered script. The script of block [00:00], run once the party has walked a number of steps set by the level. See timed scripts.

Sublevel record. One of the one or two records of a level's INF file. It names the map, the graphics and the sounds, and lists the level's doors, monster types, wall mappings and timed scripts. See sublevels.

Temporary wall. A wall made by the Wall of Force spell on the block ahead of the party, which disappears after a time or when the party walks into it. See temporary walls.

Timed block script. A timer event sent to a block at a regular interval, set up from the level's INF file. See timed scripts.

Timed update. One of the sixteen periodic updates of the engine, such as flying objects, monster groups, doors or food. See timed updates.

Wall reference, wall mapping. The number held by each face of a block. A level's wall mappings give each reference its graphics, its decoration and its properties, such as whether the party may pass. See walls and doors and WallRuntimeFlags.

Sources​

Each definition summarizes the page it links to, where the statement has its sources.