Skip to main content

Level 1: reference tables

Level 1 · The levels · Level data (INF)

In brief​

The details of level 1: the data of the level, how to read the script details, every scripted place and encounter as the scripts run it, the cell bindings, the level flags and the monster types, with its sublevel records when it has two. Its story page tells the same places and encounters in a few sentences each.

Level data​

The level has two sublevel records, both using the maze LEVEL1.MAZ, the dung graphics and the CATACOMB sounds; they are compared below. Nineteen guards are present at the start.1

This page covers every reachable script of the reference file: 64 cell bindings, 65 script entry points including one shared subroutine, and 653 instructions. The decoding finds no unknown operand layout; 25 bytes in nine places follow a level load and are never executed. Message colors are palette colors (Print a message).2

Reading this page​

  • Coordinates. A position [XX:YY] gives the column XX and the row YY, counting from 00; the block index used by the files and the instructions is YY × 32 + XX.
  • Directions and sides. Directions are 0 = north (decreasing row), 1 = east, 2 = south and 3 = west, and side s of a block is its face turned towards direction s (Direction). A wall is activated from the neighbouring block that its face looks into: the lever on side 2 of [04:04], for example, is used from [04:05], south of it.
  • Script offsets count from the start of the INF script_data field (decoded payload offset 1465 in the reference file). Message numbers index the level's 33 strings and text numbers TEXT.DAT; both are summarized, not quoted.
  • Speakers are chosen as on the level 4 page.
  • Level flags are bits of this level's flag word (SCRIPT_FLAG_TARGET_LEVEL); their names below are descriptive.
  • Item names are those of the reference ITEM.DAT; a template is an entry that scripts and monsters copy.

Monsters​

Guards​

The first record's eight monster types are guards of the temple. They share these properties:3

Property (INF field)Value
MonsterCapabilityFlagsMONSTER_CAP_OPENS_DOORS
MonsterImmunityFlagsnone
Type flags (type_flags)Hold Person can affect it
Occupancy class (occupancy_class)0
Attack and step sounds (sound_1, sound_2)37, 36
Turn resistance, evasion (turn_resistance, damage_modifier)−1, 0

They differ in these fields:

TypeImageArmour classHit chanceLevelHit pointsMelee attacksExperienceDecoration groups
0guard161477d10 + 71d86501 and 2
1guard161199d10 + 91d8 + 4, then 0d01 4001 and 3
2guard161199d10 + 181d8 + 4, then 0d01 4001 and 2
3guard161199d10 + 91d8 + 4, then 0d05 0002
4guard161199d10 + 181d8 + 4, then 0d01 4003
5guard2101299d10 + 91d8 + 21 4001
6guard2101199d10 + 181d8 + 41 4002
7guard2101299d10 + 91d8 + 21 400none

The image is the one that every guard of that type uses, at the start and when placed by a script. Types 1 to 4 have two melee attacks, the second with no dice, so it adds no damage. Type 3 has the statistics of type 1 and gives 5 000 experience instead of 1 400. Type 0 has one ranged attack: it throws a copy of template 4, a Dagger, once.

All 19 guards present at the start wait (MONSTER_MODE_WAIT of MonsterMode). Some leave items when they die: a copy of a Long Sword (template 34) or of Scale Mail (template 56) one time in ten, and four of them always a Grey Key (template 17):4

BlockTypes (position in the block)Items left
[04:07]0 (0), 0 (2)Long Sword and Grey Key; Scale Mail
[04:02]3 (centre)Long Sword
[18:17]3 (0), 3 (1), 1 (2), 2 (3)Long Sword; Long Sword; Scale Mail and Grey Key; Scale Mail and Grey Key
[06:19]4 (0), 5 (1), 6 (2), 7 (3)Scale Mail; none; none; none
[10:20]7 (0), 7 (1), 3 (2), 3 (3)none; none; Long Sword; Long Sword
[13:13]3 (0), 4 (2)Long Sword; Scale Mail
[06:15]6 (0), 5 (3)Grey Key; Long Sword

Every 101st move. While the first record is current, the step-triggered script at [00:00] (offset 28) runs when the party's move counter exceeds 100. It places a guard of type 3 at the centre of [08:07] and one of type 1 at the centre of [06:22], both facing 2 and in MONSTER_MODE_PURSUE, with SCRIPT_SPAWN_MONSTER. A placement at the centre succeeds only on a block that holds no monster and is not the party's block, so each event adds at most one guard to each block. The second record's threshold is 0, so the script never runs while it is current.2

Spiders​

The second record's only type, type 0, is drawn with the spider image. No spider is present at the start; the scripts of the spider quarter place five.3

Property (INF field)Value
Armour class, hit chance, level4, 17, 5
Hit points4d8 + 4
Melee attacksone, 1d8
MonsterCapabilityFlagsMONSTER_CAP_LARGE, MONSTER_CAP_ALT_FRAME_TABLE, MONSTER_CAP_POISONS
MonsterImmunityFlagsnone
Type flags (type_flags)Hold Monster can affect it
Experience650
Occupancy class (occupancy_class)2
Attack and step sounds39, 38
Ranged attacksnone
Turn resistance, evasion−1, 0

Stairs and ladders​

Eleven bindings move the party between levels, between the two records or within the level; they share the pattern of the level 5 stairs. Entering in the required direction prints message 30 (going up) or 32 (going down), plays sound 79 and changes level or moves the party. Entering in any other direction prints message 31 (the party cannot go that way), plays sound 29 and moves the party back one block, through four conditional moves of which only the one matching the stair's direction can run. Items placed in a stair block or thrown into it go to the destination block.2

StairsRequired directionMessageDestinationPushed back to
[10:11]030Level 5, sublevel 0, [10:10], facing 0[10:12]
[30:15]130Level 4, sublevel 0, [17:15], facing 0[29:15]
[10:27]232Level 2, sublevel 0, [10:12], facing 2[10:26]
[17:15]232Level 2, sublevel 0, [17:16], facing 2[17:14]
[27:01]132Level 2, sublevel 0, [28:01], facing 1[26:01]
[17:05]132Level 1, sublevel 1, [20:05], facing 1[16:05]
[19:05]330Level 1, sublevel 0, [16:05], facing 3[20:05]
[23:01]330Level 1, sublevel 1, [20:01], facing 3[24:01]
[21:01]132Moved to [24:01], facing 1; no level change[20:01]
[03:13]032Moved to [03:28], facing 0; no level change[03:14]
[03:29]230Moved to [03:14], facing 2; no level change[03:28]

The level changes use SCRIPT_LOAD_LEVEL_OR_MONSTERS; the three moves within the level use SCRIPT_MOVE_PARTY_OR_OBJECT and set the facing with SCRIPT_SET. [21:01] and [23:01] form one staircase whose two ends both lie in the second record's quarter: going one way moves the party, going the other loads the second record again.

The two stairs down at [10:27] and [17:15] also run the game's password check (SCRIPT_SEQUENCE_PASSWORD_CHECK) the first time the party takes either of them; level flag 31 is set once the check returns.

Entering [10:12], the arrival block of the temple's stairs, sets SCRIPT_GLOBAL_FLAG_TEMPLE_STAIRS_DESCENDED, which makes level 5 place returning clerics and close its front door. The arrival blocks [10:12], [17:14], [29:15], [03:14], [20:01] and [20:05] carry wall reference 25 on all four sides, which this level maps as an invisible face that the party and flying objects cross but monsters do not.1

First remarks​

Next to the arrival from the temple, two blocks give a remark once, with sound 79:2

  • [10:13]: a CHARACTER_CLASS_CLERIC (CharacterClassMask) remarks that the catacombs look ancient and evil (message 2), the first time the party enters with a cleric; level flag 1.
  • [09:13]: a CHARACTER_CLASS_MAGE, or failing that an elf (CHARACTER_RACE_ELF of CharacterRace), remarks that drow built this place and left it long ago (message 3). Level flag 2 is set at the first entry whatever happens, so the remark can only be made then.

Guard posts​

Two guards behind a barrier. The first time the party enters [06:07], it is turned to face 3, the view is redrawn and, after a short delay, the dialogue screen opens with the upper-right region of SOUT1 and sound 52. Text 29 shows two guards arguing, who decide to finish off the intruders. When the screen closes, SCRIPT_SET_BLOCK_WALLS clears the four sides of [05:07], west of the party. That block carries WALL_REFERENCE_CLEARED_ON_ENTRY on all sides and so kept out the two guards of type 0 waiting at [04:07]; they can now come through (level flag 16).2

Pressure plates. [06:10] and [11:08] carry wall reference 35 on all sides, a floor plate the party walks over:

  • Entering [06:10] opens the door at [06:08] (SCRIPT_OPEN_DOOR).
  • [11:08] holds the door at [13:08] open while the party or an item is on it. The door opens when the party enters a plate without items, or when an item is placed on an empty plate while the party is elsewhere; it closes (SCRIPT_CLOSE_DOOR) when the party leaves a plate without items, or when the last item is taken from it while the party is elsewhere. Items in flight are not counted.

Lever. The lever on side 2 of [04:04] (reference 31, an INF_WALL_SPECIAL_LEVER_INCREMENT wall of InfWallSpecialType) toggles the door at [05:04] (SCRIPT_TOGGLE) with sound 1. Beyond it, entering [05:03] gives a CHARACTER_CLASS_FIGHTER the remark that this looks like a food store (message 10, sound 79), once (level flag 18). Iron Rations lie at [03:03] and in the niche of [04:01].5

The guard on watch. The first time the party enters [14:06] or [15:06] (level flag 17, shared), it is turned to face 0 and a guard of type 0 is placed three blocks ahead, at the centre of [14:03] or [15:03], facing 2 and pursuing the party. It always leaves a copy of Lock picks (template 6) when it dies, and a Long Sword one time in ten. The view is redrawn and the dialogue box shows, with sound 56, that a guard has spotted the party and orders it to stop (message 11), with an "ok" prompt (message 4).2

Locks and keys​

A lock is the face of a wall block next to a door. Activating it runs the block's script, which tests the item in hand (the held item of item properties in conditions). Five locks of the level, and the sealed wall of the spider quarter, follow one pattern:2

  1. If the door is not closed — the side tested does not hold the closed reference 8 or 18 — message 9: it is already unlocked.
  2. A key (ITEM_TYPE_KEY) of the lock's value: sound 14 at the lock, the door opens and the key is deleted (SCRIPT_DELETE_ITEM).
  3. A key of another value: message 5, sound 81.
  4. Lock picks (item type 28): with a CHARACTER_CLASS_THIEF anywhere in the party, message 6, the lock resists, with sound 81; without one, message 7, a thief is needed. Only the lock of [05:16] can be picked: there, a thief succeeds one time in three (SCRIPT_EXPR_ROLL_DICE 1d3 equal to 1), with sound 14, the door opening, message 22 and sound 79.
  5. Anything else, or nothing: message 8, a key is needed.
Lock (side)DoorKey
[12:14] (3)[12:13]Grey Key (value 1)
[11:18] (0)[10:18]Grey Key (value 1)
[05:18] (0)[06:18]Grey Key (value 1)
[16:09] (3)[15:10]Grey Key (value 1), Insal's cell
[05:16] (2)[06:16]value 99; can be picked

The level holds five Grey Keys: one in the niche of [14:10] and four carried by guards at [04:07], [18:17] and [06:15]. No item of the reference ITEM.DAT is a key of value 99, so the door at [06:16] opens only by picking its lock or from [04:17] (see barracks). The successful pick also deletes every key lying in block [00:01], a solid block far from the corridors, where nothing lies.5

Barracks​

Entering [04:17] while the door at [06:16] is closed makes a party member say that more guards have been woken (message 18, sound 79); in every case the script then opens that door. The guards of [06:15] are behind it. Entering [06:19], the guards' room, gives a remark that these are the barracks (message 19, sound 79), once (level flag 7).2

The beds are the faces with wall reference 64, a decoration-script wall: the east face of [04:15], [04:20] and [04:22], the west face of [08:15], [12:20] and [12:22], and both the east and west faces of [08:20] and [08:22]. Activating one calls the subroutine at offset 2, which shows message 0 (the bed is hard and uncomfortable) when a roll of 1d4 is below 3, and message 1 (someone slept in it recently) otherwise: even odds.

Barrels​

Five blocks are barrels: [05:02], [14:02], [15:01], [15:02] and [16:02] carry wall reference 61 on all four sides, an INF_WALL_SPECIAL_DECORATION_SCRIPT_ALT wall that stops everything. Each binding enables only BLOCK_EVENT_ITEM_USED, which the game sends to the block in front of the party when a character uses an item. The five scripts share one pattern:2

  • Activation, while side 0 still holds reference 61: sound 29 and message 27, the barrel sounds hollow.
  • An item of kind ITEM_KIND_MELEE (ItemKind, read through SCRIPT_EXPR_LAST_USED_ITEM) used on it while side 0 still holds 61: the four sides become reference 62, a broken barrel that everything passes, and the barrel's contents appear.
BarrelContents
[05:02]A copy of Iron Rations (template 10) at position 0
[14:02]Nothing
[15:01]A copy of Rations (template 25) at position 0, and the items of type 34 (ITEM_TYPE_MAGE_SCROLL) moved from [15:00]
[15:02]A copy of Rations (template 25) at position 0
[16:02]The items of type 26 (ITEM_TYPE_SPELL_SPHERE) moved from [15:00]

[15:00] is a solid block out of reach that holds three magic dusts, of type 26, at the start; nothing ever puts an item of type 34 there, so the barrel of [15:01] gives only its rations, and the barrel of [16:02] receives the three magic dusts. The five scripts compare their template number and item type with 0 through constant conditions, so the parts for a zero value never run.5

The pit trap​

[14:17] is a pit: wall reference 38 on all sides, which the party can enter but monsters cannot. Its script reacts while side 0 holds 38 or 39 (an open pit):2

  • Party enters: every member takes 2d6 damage (SCRIPT_DAMAGE_CHARACTERS with SCRIPT_DAMAGE_RING_NEGATES: none for a wearer of a ring of Feather Fall), then the party falls to level 2, sublevel 0, [15:18], keeping its facing.
  • Item placed: the items of [14:17] go to level 2 [15:18].

The lever on side 3 of [15:16], used from [14:16], plays sound 1 there and sound 17 from [15:17], and toggles all four sides of [14:17] between 0 and 38: it closes an open pit and opens a closed one. When the pit is then open, the items lying in it, in flight included, fall to level 2 [15:18], and a party standing in it falls with 2d6 damage as above; sound 17 plays from [14:17]. The party cannot stand in [14:17] while using a lever on [15:16], so that last case does not arise from the lever itself.

Entering [14:16], south of which the pit lies, gives a CHARACTER_CLASS_THIEF the hint that the lever closes the pit but is only part of the trap (message 15, sound 79, level flag 5). The script first compares a roll of 1d3 + 1 with 1; the comparison always succeeds, so the roll changes nothing.

Once the party has crossed the closed pit, entering [15:17] (a pressure plate, reference 35) the first time reopens it (level flag 8): sound 17 from [15:17], all sides of [14:17] back to 38, and a thief remarks that the pit has opened behind (message 16, sound 79) unless level flag 20 is set. Then, on every entry, the plate script opens the door at [17:17] when no item lies on [15:17], and closes it otherwise. Four guards wait beyond that door, at [18:17]; entering [17:17] sets level flag 20. The lever on side 2 of [18:16], used from [18:17], plays sound 1 and sound 17 and toggles the pit again, so the party can close it for the way back.

The scripts also handle wall references 37 and 39 at [14:17]: the first lever toggles between 37 and 39 when side 2 holds 37, and the pit counts as open with 39. Neither reference occurs in LEVEL1.MAZ, neither record maps them and no script of the level writes them to [14:17], so these branches never run. The plate script of [15:17] also tests BLOCK_EVENT_ITEM_PLACED, which its binding does not enable; that part never runs either.1

Insal's cell​

Humming. Entering [14:09] or [15:08] the first time (level flag 9, shared) makes a party member hear someone humming to the south (message 23). Sound 64 comes from [14:13]; then sound 0 is requested from [14:12], which plays nothing but makes the waiting sound play at once (SCRIPT_PLAY_SOUND).2

A voice. While Insal has not been met (level flag 11 clear), entering [15:09] redraws the view and, the first time (level flag 10), opens a dialogue box: a party member says that the humming comes from the door (message 24), then message 25, an empty string, and a voice from the cell whispers for help and warns of guards (message 26). Sounds 64, 66 and 64 come from [14:13] with delays of 2, 15 and 10, a sound 0 request from [14:12] follows, and the box closes after an "ok" prompt.

The door. The cell door at [15:10], south of [15:09], has the Grey Key lock on side 3 of [16:09], used from [15:09]; see locks and keys.

Insal. The first time the party enters the cell at [15:11] (level flag 11), it is turned to face 3 and SCRIPT_RUN_SEQUENCE runs SCRIPT_SEQUENCE_NPC_INSAL, the conversation in which Insal offers to join the party (ScriptSequenceSelector). Sound 2 then plays, and it plays again at every later entry. Insal can later leave the party after a rest.

Hidden walls​

East of [15:05]. Entering [15:05] the first time gives one chance in six (SCRIPT_EXPR_ROLL_DICE 1d6 below 2) of a hint: a dwarf (CHARACTER_RACE_DWARF) says the walls hide a secret passage (message 12), or failing that an elf senses one nearby (message 13), with sound 79. Level flag 3 is set at that first entry whatever the roll, so the hint is never given later. The west face of [16:05] holds reference 42 with decoration 11, an INF_WALL_SPECIAL_LEVER_INCREMENT wall; activating it plays sound 13 twice and clears the four sides of [16:05], which opens the way to the stairs at [17:05]. Entering [20:05], the arrival of those stairs in the second record, also clears [16:05], so that the stairs back at [19:05] arrive in an open block even when the party came from level 2 and never opened it.2

East of [18:18]. The first entry into [18:18] gives two chances in six that an elf noticed something on the east wall (message 20, sound 79); level flag 6 is set at that first entry. [19:18] has reference 42 on its east and west faces; activating it plays sound 13 and clears its four sides. Entering [19:18] afterwards sets level flag 6.

A hidden niche. The west face of [04:28], seen from [03:28], holds reference 42. Activating it changes that face to reference 45, a niche (INF_WALL_SPECIAL_NICHE), with sound 13. The niche already holds, from the start, a cleric scroll (type 35, value 55) and a Sling.5

Wash basins​

The basins are the north faces of [06:23] and [10:23] (reference 65, a decoration-script wall), used from [06:22] and [10:22]. The basin of [06:23] is always empty (message 28). The first time the basin of [10:23] is activated (level flag 19), SCRIPT_CREATE_ITEM copies the Dagger of template 4 with value 1 and ITEM_RUNTIME_MAGICAL, on the mouse pointer if it is empty and otherwise in the party's block (SCRIPT_ITEM_DESTINATION_HELD_OR_CURRENT); a party member points out the old dagger in the basin (message 29, sound 79) and a delay of 15 follows. Later activations show message 28.2

The spider quarter​

The north-east quarter uses the second record. It is reached by the stairs at [17:05], beyond the hidden wall of [16:05], or from level 2.6

Webs. Six blocks are crossed by webs: wall reference 59 on the east and west faces of [21:05], [23:07] and [25:07], and on the north and south faces of [27:06], [27:08] and [21:10]. The second record maps 59 to a face with decoration 35 that nothing crosses, with interaction type 255, which no wall handler accepts. A web is cut by a melee attack: when a character in one of the two front party slots attacks with an item of kind ITEM_KIND_MELEE and no monster is in the block ahead, the game reads the interaction type of that block's face turned towards the party; if it is 255, every side of the block whose reference has interaction type 255 moves on to the next reference, and the view is redrawn. Reference 59 thus becomes 60, which the second record maps to a face with decoration 36 that everything crosses. The web of [21:05] stands between [20:05], the arrival of the stairs from [17:05], and the rest of the quarter.7

A forgotten passage. Entering [22:05] the first time makes a party member say that this is an old secret passage and to be careful (message 14, sound 79, level flag 12).2

The spider trap. [29:07] lies on the east side of a ring of corridors. The corridor from the west reaches the ring at [27:07], between the webs of [27:06] and [27:08], which close the ring's west side to the north and south; the ring can also be entered from the north, through the sealed wall of [28:04]. The first time the party enters [29:07] (level flag 4), the script sets the north and south faces of [27:06] and [27:08] to reference 59 again, restoring those webs if they were cut, and places two spiders at the centre of [28:05] and [28:09], facing 1, in MONSTER_MODE_WANDER_RIGHT and MONSTER_MODE_WANDER_LEFT. Then, three times in four (1d4 above 1), a CHARACTER_CLASS_FIGHTER warns that something wicked is coming (message 17, sound 79).

The sealed wall. The north face of [28:04], seen from [28:03], holds reference 49, a decoration-script wall that acts as a lock for a key of value 4, the Dark Moon Key. Level 1 has none; on level 2, one lies in a niche and a cleric leaves another (see level 2). The script follows the lock pattern without its first step and without a pickable lock: the right key plays sound 14 at [28:04], clears all four sides of that block, deletes the key and sets level flag 13. Afterwards, the first time the party enters [28:04] (level flag 15), three spiders are placed at the centre of [22:03] (facing 1, MONSTER_MODE_WANDER_RIGHT), [22:07] (facing 0, MONSTER_MODE_WANDER_LEFT) and [24:07] (facing 1, MONSTER_MODE_WANDER_LEFT). Spiders have occupancy class 2: each is placed only on a block that holds no monster and is not the party's.2

Bones that crumble. At [23:11] lie, from the start, a Copper Key, two scrolls, a parchment and a set of bones of value 99. Its binding enables only BLOCK_EVENT_ITEM_REMOVED. When an item is taken from [23:11] and the held item is then an item of type 33 (bones) with value 99, the bones crumble to dust (message 21) and are deleted. Taking an item from the floor with the mouse makes it the held item before the event is sent, and so does the keyboard command G, which puts it in the selected hand first: either way these bones crumble as soon as they are picked up, and no set of bones of value 99 can reach a resurrection altar. They are the bones described under bones without a preset.8

The two sublevel records​

The first record covers most of the level. The second covers the north-east quarter, held by spiders, which the party enters by the stairs at [17:05] or from level 2; the stairs at [23:01], inside the quarter, load this record again, and those at [19:05] lead back to the first record. Both records are selected by the same INF file and share its scripts, cell bindings and initial monsters; the level-change instructions choose between them.6

Property (INF)Record 0Record 1
Door recordstwo, both door1 (graphics 0 and 1)none
Step threshold (steps_until_script)1000: the step script never runs
Monster imagesguard1 (with GUARD1.DCR, 3 groups), guard2 (with GUARD2.DCR, 2 groups)spider (no decoration file)
Monster typeseight, 0 to 7: the guardsone, 0: the spider
Wall mappings3122
Script timersnonenone

Only the second record maps wall references 59, 60 and 63, the webs and the web decorations of the spider quarter, and only the first maps those of the pressure plates, barrels, beds, basins and most locks. The faces the party can reach while each record is current use only the references that record maps; see faces that the level does not map.

A change of record is an ordinary level change: the walls and the 30 monster slots carry over. The type table entries that the new record does not define keep their old values, so with the second record current, type 0 is the spider and types 1 to 7 keep the guards' properties; how the monsters left in their slots then look and behave is described under sublevels: the twelve monsters of types 0 to 4 are drawn as spiders, and the seven of types 5 to 7, which use the second image bank, have no image.

Bindings​

The bindings give each scripted block its enabled events and script. Blocks whose flags are zero still receive the events that need no enabling bit: the step event at [00:00] and BLOCK_EVENT_WALL_DECORATION for activated walls. In the table, enter stands for BLOCK_EVENT_PARTY_ENTER, leave for BLOCK_EVENT_PARTY_LEAVE, item placed, item removed, flying object and item used for BLOCK_EVENT_ITEM_PLACED, BLOCK_EVENT_ITEM_REMOVED, BLOCK_EVENT_FLYING_OBJECT and BLOCK_EVENT_ITEM_USED (BlockEventMask).1

PositionEnabled eventsScriptPurpose
[10:11]enter, item placed, flying object2708Stairs, up to level 5
[10:12]enter59Stairs, arrival from level 5
[10:27]enter, item placed, flying object3091Stairs, down to level 2
[17:15]enter, item placed, flying object3233Stairs, down to level 2
[27:01]enter, item placed, flying object3375Stairs, down to level 2
[30:15]enter, item placed, flying object4011Stairs, up to level 4
[17:05]enter, item placed, flying object3502Stairs, to record 1
[19:05]enter, item placed, flying object3757Stairs, to record 0
[23:01]enter, item placed, flying object3884Stairs, to record 1
[21:01]enter, item placed, flying object2963Stairs, within the level
[03:13]enter, item placed, flying object2835Stairs, within the level
[03:29]enter, item placed, flying object3629Stairs, within the level
[10:13]enter63First remarks
[09:13]enter93First remarks
[00:00]none (BLOCK_EVENT_STEP_COUNT)28Guards, every 101st move
[06:07]enter156Guard posts, two guards
[06:10]enter152Guard posts, pressure plate
[04:04]none (BLOCK_EVENT_WALL_DECORATION)346Guard posts, lever
[05:03]enter355Guard posts, food store
[14:06]enter480Guard posts, guard on watch
[15:06]enter534Guard posts, guard on watch
[11:08]enter, leave, item placed, item removed385Guard posts, pressure plate
[12:14]none (BLOCK_EVENT_WALL_DECORATION)220Locks and keys
[11:18]none (BLOCK_EVENT_WALL_DECORATION)1178Locks and keys
[05:18]none (BLOCK_EVENT_WALL_DECORATION)1304Locks and keys
[05:16]none (BLOCK_EVENT_WALL_DECORATION)1570Locks and keys
[04:17]enter1430Barracks
[06:19]enter1455Barracks
[04:15]none (BLOCK_EVENT_WALL_DECORATION)1050Barracks, bed
[08:15]none (BLOCK_EVENT_WALL_DECORATION)1054Barracks, bed
[04:20]none (BLOCK_EVENT_WALL_DECORATION)1058Barracks, bed
[04:22]none (BLOCK_EVENT_WALL_DECORATION)1062Barracks, bed
[08:20]none (BLOCK_EVENT_WALL_DECORATION)1066Barracks, beds
[08:22]none (BLOCK_EVENT_WALL_DECORATION)1070Barracks, beds
[12:20]none (BLOCK_EVENT_WALL_DECORATION)1074Barracks, bed
[12:22]none (BLOCK_EVENT_WALL_DECORATION)1078Barracks, bed
[05:02]item used2201Barrels
[14:02]item used2293Barrels
[15:01]item used2385Barrels
[15:02]item used2477Barrels
[16:02]item used2569Barrels
[14:16]enter702The pit trap, hint
[15:16]none (BLOCK_EVENT_WALL_DECORATION)744The pit trap, lever
[14:17]enter, item placed861The pit trap, pit
[15:17]enter926The pit trap, pressure plate
[17:17]enter1031The pit trap, door
[18:16]none (BLOCK_EVENT_WALL_DECORATION)1035The pit trap, lever
[14:09]enter1731Insal's cell, humming
[15:08]enter1758Insal's cell, humming
[15:09]enter1785Insal's cell, a voice
[16:09]none (BLOCK_EVENT_WALL_DECORATION)1862Insal's cell, lock
[15:11]enter1988Insal's cell, Insal
[15:05]enter588Hidden walls, hint
[16:05]none (BLOCK_EVENT_WALL_DECORATION)659Hidden walls
[20:05]enter673Hidden walls
[18:18]enter1478Hidden walls, hint
[19:18]enter1520Hidden walls
[04:28]none (BLOCK_EVENT_WALL_DECORATION)2011Hidden walls, niche
[06:23]none (BLOCK_EVENT_WALL_DECORATION)2661Wash basins
[10:23]none (BLOCK_EVENT_WALL_DECORATION)2667Wash basins
[22:05]enter679The spider quarter, hint
[29:07]enter1082The spider quarter, trap
[28:04]enter2022The spider quarter, sealed wall
[23:11]item removed1545The spider quarter, bones

The eight bed scripts share the subroutine at offset 2, reached through SCRIPT_CALL.

Level flags​

BitSet byMeaning (descriptive)
1[10:13], when the remark is madeThe cleric's first remark has been made.
2[09:13], at the first entryThe drow remark can no longer be made.
3[15:05], at the first entryThe secret-passage hint can no longer be given.
4[29:07]The spider trap has been sprung.
5[14:16], when the remark is madeThe pit-trap hint has been given.
6[18:18] at the first entry; entering [19:18]The hint about the east wall can no longer be given.
7[06:19]The barracks remark has been made.
8[15:17]The pit has opened behind the party.
9[14:09] or [15:08]The humming has been heard.
10[15:09]The voice from the cell has spoken.
11[15:11]Insal has been met.
12[22:05]The old-passage remark has been made.
13Using the Dark Moon Key at [28:04]The sealed wall of [28:04] is open.
15Entering [28:04] after it openedThe spiders of the sealed wall have been released.
16[06:07]The two guards have been overheard.
17[14:06] or [15:06]The guard on watch has spotted the party.
18[05:03], when the remark is madeThe food-store remark has been made.
19[10:23]The dagger of the basin has been found.
20[15:17], when the remark is made; entering [17:17]The remark about the reopened pit is no longer needed.
31[10:27] or [17:15], after the checkThe password check of the stairs down has been passed.

No script of this level clears a level flag. [10:12] also sets SCRIPT_GLOBAL_FLAG_TEMPLE_STAIRS_DESCENDED; see stairs and ladders.

Sources​

Locations refer to the game executable reference; the reference files are identified in the file inventory.

Footnotes​

  1. The reference LEVEL1.INF and LEVEL1.MAZ, read with INF.ksy and MAZ.ksy: sublevel records, wall mappings and the walls of the blocks named, initial monsters and cell bindings. The event meanings follow BlockEventMask and LevelBlockStateFlags; the gating is that of the block event dispatcher. ↩ ↩2 ↩3 ↩4

  2. Reachability decoding of the reference LEVEL1.INF with script_decoder.py and the layouts of the virtual machine reference. Offsets are those of the decoded instructions; wall references come from LEVEL1.MAZ and the level's wall mappings. The placement checks are those of the monster spawn routine. ↩ ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10 ↩11 ↩12 ↩13 ↩14 ↩15

  3. The monster graphics slots and monster type entries of both records of the reference LEVEL1.INF (INF.ksy), copied into the monster type properties by the type loader; the group counts of the reference GUARD1.DCR and GUARD2.DCR (DCR.ksy). ↩ ↩2

  4. The initial monster records of the reference LEVEL1.INF (random_item and fixed_item) and the templates 17, 34 and 56 of the reference ITEM.DAT. ↩

  5. The reference ITEM.DAT: items of level 1 and their blocks, the five Grey Keys (one item and four monster items), the keys of all levels, and the templates 4, 6, 10 and 25. ↩ ↩2 ↩3 ↩4

  6. The two sublevel records of the reference LEVEL1.INF, selected by the sublevel selection; the second record's quarter is the part of the map reachable from [20:01], [20:05] and [26:01] without taking stairs, once the webs are cut and the sealed wall of [28:04] is open. ↩ ↩2

  7. The melee branch of the weapon use and melee attack, which reads the wall special type of the face ahead when no monster is there, increments the matching sides of the block and sets the state-change flag; the wall mappings of references 59, 60 and 63 in the second record of LEVEL1.INF. Comparative source: closeDistanceAttack in REF-SCUMM-013. ↩

  8. The decoded script at offsets 1545–1569; the floor pick-up, which makes the item the held item before dispatching the removal event, and the held-item selector; item 116 of the reference ITEM.DAT. ↩