Skip to main content

Level 6: reference tables

Level 6 · The levels · Level data (INF)

In brief​

The details of level 6: 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 one sublevel record. It uses the maze LEVEL5.MAZ (the map of level 5), the mezz graphics and the sound file MEZANINE.ADL or MEZANINE.SND (sound-effect table), sets a step threshold of 35, defines one script timer and starts with 13 monsters. Its only monster graphics resource is cleric3.1

This page covers every reachable script of the reference file: 115 cell bindings, 118 script entry points including three shared subroutines, and 1030 instructions. The decoding finds no unknown operand layout; 22 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).
  • Script offsets count from the start of the INF script_data field (decoded payload offset 1001 in the reference file). Message numbers index the level's 38 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.
  • Placing monsters. Every type of the level has occupancy class 0, so a SCRIPT_SPAWN_MONSTER at a quarter (positions 0–3) succeeds unless the block is the party's, already counts seven monsters or holds a monster in its centre; one at the centre (position 4) needs an empty block.

The angry priest​

Entering [10:02], the block north of the arrival from level 5, plays a scene once (level flag 2):2

  1. A monster of type 0 is placed at [09:02], in the centre, facing 1, in MONSTER_MODE_PURSUE; the party is turned to face it (direction 3) and the view is redrawn.
  2. The dialogue screen shows the upper-right region of SOUT2 with sound 54; text 28 has an angry priest declare these the private chambers and order the party out, with two answers: leave (message 3) or attack (message 4).
  3. Leave: message 5 says that the party turns back down the stairs; the screen closes, the party is turned south, moved to [10:03] and, with message 1 ("going down"), sent to level 5 at [10:07], facing 2.
  4. Attack: the screen closes and the priest fights.

Entering [11:02] or [09:02] also sets flag 2, so a party that reaches the corridor another way, or comes back after the fight, does not see the scene. Each entry into [10:02] also sets sides 1 and 3 of [15:09] to reference 8, a closed door; that door lies in a part of the map the party cannot reach on this level (inferred), so this has no visible effect.

Stairs​

The stairs follow the pattern of the level 5 stairs: entering in the required direction prints "going down" (message 1) or "going up" (16), plays sound 79 and changes place; any other direction prints message 2, plays sound 29 and moves the party back one block. Items placed or thrown into a stair block go to the destination.2

StairsRequired directionDestinationPushed back to
[10:04]2Level 5, sublevel 0, [10:07], facing 2[10:03]
[22:15]0Level 10, sublevel 0, [22:14], facing 0[22:16]
[02:16]3Level 15, sublevel 0, [01:16], facing 3[03:16]
[02:22]3Level 15, sublevel 0, [01:22], facing 3[03:22]
[05:19]3[04:29] on this level, facing 3[06:19]
[05:29]1[06:19] on this level, facing 1[04:29]

The first time either stairway to level 15 is taken (level flag 31), the game's password check runs first. [05:19] and [05:29] link two parts of this level without a level change.

Locks​

Twelve keyholes or locks open doors. All follow the level 3 pattern: nothing but a message when the door is not closed, the right key (ITEM_TYPE_KEY) opens the door with sound 14 and is used up, another key does not fit (message 6), lock picks (item type 28) need a CHARACTER_CLASS_THIEF (CharacterClassMask; message 8 otherwise), and anything else asks for a key (message 9).3

LockDoorKeyWith lock picks and a thiefDoor not closed
[07:04], east face[08:05]Copper Key (value 3)Always fails (message 7)Message 10
[09:11], west face[08:12]Copper KeyAlways failsMessage 10
[09:13], west face[08:12]Copper KeyAlways failsMessage 10
[11:01], south face[12:02]Copper KeyAlways failsMessage 10
[13:01], south face[12:02]Copper KeyAlways failsMessage 10
[16:10], east face[17:09]Copper KeyAlways fails (message 31)Message 32, the lock is jammed
[16:08], east face[17:09]Copper KeyAlways fails (message 31)Message 32
[10:16], north face[11:16]Crimson Key (value 7)Always failsMessage 10
[07:15], east face[07:14]none (value 99)Opens one time in threeMessage 10
[12:16], north face[13:16]none (value 99)Opens one time in threeMessage 10
[14:14], south face[15:14]none (value 99)Opens one time in threeMessage 10
[15:03], south face[16:03]none (value 99)Opens one time in threeMessage 10

No key of the game has value 99, so the last four locks can only be picked. A successful pick (1d3 == 1) plays sound 14, opens the door, prints message 14 and plays sound 79; a failed one prints message 7 with sound 81. The picks are not used up. The successful pick also runs SCRIPT_DELETE_ITEM on the keys lying in [00:00], a rock block where no item lies, which therefore changes nothing.

Some lock blocks carry a tapestry on another face, and their script first tests the party's facing: facing 1 at [14:14] and facing 2 at [16:08] show message 17 (the tapestry looks holy). [16:10] tests facing 0, but its south face is a plain wall, which cannot be activated, so its tapestry message is never shown (inferred).

Voices behind a door​

Entering [06:09] the first time (level flag 3) opens the dialogue screen with sound 55 and text 31: the party hears voices through a door and may listen (messages 11 and 12, yes and no). Yes turns the party west and shows text 32, in which two voices discuss an old woman who brings victims for Dran and whose family they have killed, and who will soon share its fate; that she is the old woman of the forest is inferred. Then the door [05:09] is opened. Whatever the answer, the screen closes and two monsters are placed at [03:09], beyond that door: one of type 2 at position 1, which may drop a flail, and one of type 0 at position 3, both facing 1 in MONSTER_MODE_PURSUE.2

Ambushes​

Each of these places monsters in MONSTER_MODE_PURSUE once:2

TriggerFlagMonsters placed
Entering [06:11] or [08:13]4Two of type 0 at [08:11], positions 0 and 1, facing 3 (from [06:11]) or 2 (from [08:13])
Entering [09:15]5One of type 0 at [09:17], in the centre, facing 0; then the door [09:16] between them opens
Entering [24:17]10At [22:16], facing 2: type 0 at 0, type 3 at 1, type 2 at 2 (always drops a suit of plate mail), type 0 at 3

The plaque on the north face of [18:22] says that the party should not be there (message 21). While level flag 7 is clear, activating it also places three monsters in the niche block [23:23]: two of type 0 at positions 0 and 1 and one of type 3 at position 2, facing 0. A CHARACTER_CLASS_MAGE in the party remarks on the warning (message 22, sound 79) the first time and sets flag 7; without a mage the flag stays clear and each activation places three more, up to the seven monsters a block can count. [23:23] is a rock block, but the open blocks north and south of it let monsters walk out (inferred from the walls and the movement rules).

Traps​

  • Fireball plate. Each time the party enters [06:17], sound 12 plays and the plate switches between references 35 and 36 (SCRIPT_TOGGLE_BLOCK_WALLS). When it is down (36), SCRIPT_LAUNCH_OBJECT launches a Fireball from [05:17] eastwards, into the party's block: so every other entry, starting with the first. A scripted fireball on this level deals 1d6 × 5 (projectiles).
  • Lever. The lever on the north face of [06:16] toggles the door [07:14] (SCRIPT_TOGGLE_DOOR).
  • Darts. Entering [19:20] the first time (level flag 6) throws two darts (copies of template 49) from both starting positions of [19:21], north into the party's block.2

The moving pit​

Entering [08:19] sets level flag 22. The level's only timed block script sends BLOCK_EVENT_TIMER to [04:15] with an interval of 2, that is 36 ticks of the game clock, about two seconds. While flag 22 is set, each timer event plays sound 17 and switches [04:16] between a floor (wall reference 0) and an open pit (reference 38), then redraws the view. When the pit opens, the items lying on [04:16], those in flight included, fall to [04:26], and a party standing there takes 2d6 damage (none for a character wearing a ring of Feather Fall, SCRIPT_DAMAGE_RING_NEGATES) and is moved to [04:26]. While the pit is open, entering [04:16] or dropping an item there has the same effect.4

Entering [09:19], the passage that the carving opens, clears flag 22: the pit stops in whatever state it is in, open or closed, until the party enters [08:19] again. [04:26] lies in a lower part of the level, where three waiting monsters stand at [04:24], [04:27] and [02:26]; the stairs [05:19] and [05:29] lead back.

The timer script also has a branch for a pit with references 37 and 39, taken only when the south face of [04:16] holds 37. No instruction writes 37 there, so the branch is never taken.

The carving of Talon​

The east face of [09:19] is a carving (reference 66). Activating it with nothing in hand — the held item then has type 0 and value 0, the "no item" entry — shows message 15. Activating it with an item of ITEM_TYPE_QUEST_ITEM (46) of value 1, 2 or 3 uses the item up, plays sound 1 and sets the face according to the pieces already in place:5

Pieces in placeReferenceValue 1 givesValue 3 givesValue 2 gives
none66737253
173opens6570
37265opens71
2537071opens
two pieces65, 70, 71opensopensopens

"Opens" calls the subroutine at offset 306: the dialogue screen draws the four quarters of BLOOD over the view with sound 60 and short delays, all four walls of [09:19] become 0 and the screen closes. In ITEM.DAT, the items of type 46 and value 1 are the Eye of Talon and the Mantis Idol, value 2 is Talon's Tongue and value 3 the Hilt of Talon. The script does not check that the pieces differ: a second piece of a value already in place opens the carving too, so two items of value 1 are enough. Items of type 46 with another value do nothing. Entering [09:19] clears the moving pit flag.

The guarded stairs​

The stairs west to level 15 at [02:16] and [02:22] are reached through [03:16] and [03:22]. Four monsters guard [03:22] from the start: types 0, 0, 2 and 3, in MONSTER_MODE_PURSUE, facing 1. The faces of the neighbouring blocks turned towards them either let the party through but not monsters — reference 23 of the stairs [02:22], reference 25 of [04:22] when it is open — or are rock, so they never leave their block (inferred from the walls and the movement rules). The party, which only needs the faces of [03:22] itself (reference 25), can enter once the block is empty.6

Two pressure plates east of them open the way. Each is down (reference 36) while the party or at least one item is on it, and up (35) otherwise, with sound 12; pressing plays sound 13 at the block it opens:2

  • [06:21] sets the walls of [04:21] to 0 while it is down, and to the solid reference 1 while it is up;
  • [05:21] sets the walls of [04:22], south of [04:21] and east of the guards, to reference 25 while it is down — a face the party crosses but monsters do not — and to 1 while it is up.

A party arriving by the level-15 stairs that lead to [03:22] is placed there directly, whatever monsters stand there, since a level change does not check its arrival block.

The portal​

The east face of [04:14] is a portal (wall reference 54, INF_WALL_SPECIAL_SCRIPT), like the one of level 3: activating it while holding an item of type 37 plays the portal animation, then the item's value selects the destination; the item is kept.7

ValueDestination
0Level 6, sublevel 0, [05:14], facing 1
1Level 3, sublevel 0, [17:23], facing 1
2Level 14, sublevel 0, [14:14], facing 0
3None: the script returns
4Level 16, sublevel 0, [16:16], facing 0
5None: the script returns

No item of type 37 has value 0, so the branch that would reload this level at [05:14], in front of the portal, is never taken. Values 3 and 5 belong to template items that the game never copies (see portal without a level change).

Statues​

The north face of [15:17] is a statue (reference 67). Activating it, or using on it any other item, shows message 19 (a disturbing statuette). Using on it an item whose type properties value is 1 crumbles it (message 18): its walls become reference 42, a lever, and the view is redrawn. Pulling that lever turns it into reference 43, and its script then plays sound 13 and opens [15:17] (walls 0).2

Eleven other statuettes (reference 67: [08:08] north face, [08:09] west, [11:13] south, [11:21] north, [13:13] south, [13:19] west, [15:06] north, [15:07] east, [15:12] east, [17:17] north, [19:15] west) show message 19 when activated. Using any item on one, without a test of the item, replaces that face with reference 68, which runs no script, and redraws the view.

Teleporters and the soft floor​

Teleporter blocks (WALL_REFERENCE_TELEPORTER on all sides) move the party, with sound 15, or the items placed or thrown into them:2

TeleporterDestinationNotes
[14:19][22:25]Works once for the party: the script clears its walls first. Items move when one is taken out of the block, not when they are put in.
[16:19][08:14]
[15:20][17:15]
[23:25][15:19]Only after the soft floor has become a teleporter.

[23:25] is a "soft floor" (reference 61). Activating it shows message 20, unless the player holds a gem (ITEM_TYPE_GEM) of value 4, such as the four tropelet seeds lying on this level: then the seed is used up, sound 15 plays and the block becomes a teleporter. [22:25], where the teleporter of [14:19] leads, is its western neighbour.

Gem niches and the treasure​

Four niches face [23:25]'s neighbours: the south face of [23:23], the east face of [21:25], the north face of [23:27] and the west face of [25:25]. At the start they hold a Copper Key, a Blue Gem, a Red Gem and a Green Gem. Each time an item is put into a niche, its script counts the gems in the block; with exactly three, every gem is removed, the other items of the niche are moved to [14:18], sound 13 plays and all four walls of the niche's block become 0, opening it. The script of [23:23] also runs when an item is taken out, but then does nothing.2

Beyond [25:25], entering [28:22] while [25:25] is open plays sound 13 and walls it again (reference 1). Two plaques nearby: on the south face of [27:19], that there is much to take and nowhere to take it (message 24), followed once by a CHARACTER_CLASS_CLERIC (CharacterClassMask) fearing that greed has doomed them (message 25, sound 79; level flag 8 is set even without a cleric); on the west face of [29:30], emergency supplies (message 23).

The mark of Darkmoon​

Entering [18:12], while the door [19:12] east of it still stands (its west face nonzero), turns the party east and shows the upper-left region of MMOUTH1 with sound 56. Unless bit 31 of the global flags is set, message 26 says that none shall pass without the mark of Darkmoon; with it, message 27 grants passage. The subroutine at offset 8 then animates the mouth: twelve pictures from the other three quarters of MMOUTH1, with a delay of 7 between them. After a prompt the screen closes, and only with the flag set are the walls of [19:12] and [19:13] set to 0, with sound 13.8

That global bit is set by a dialogue of level 9, just before it sends the party back to level 5. Two monsters stand on [18:12] at the start, so the party meets the mouth only after dealing with them.

The glass shield​

The west face of [22:13] is a glass shield (reference 64). Activating it shows message 28: the shield protects what lies beyond. Using on it an item of type 60 — the Crystal Hammer, which lies on level 9 — while that face is still there sets the walls of [22:13] to 0 and shows the four quarters of GLASS over the view with sound 59, then redraws it. Other items do nothing.2

Shifting walls and the niche lever​

  • Shifting walls. Every time the party enters [28:09], sound 13 plays, [27:11] and [25:11] open (walls 0) and [26:12] becomes rock (walls 1). Every time it enters [22:09], [24:10], [24:12] and [24:14] open and [25:11] becomes rock.
  • The niche lever. Putting an item into the niche on the south face of [28:14] opens [27:15] and puts a lever (reference 42) on the east face of [25:15]; taking an item out walls both [27:15] and [25:15] again. Sound 13 plays only when [27:15] actually changes. Entering [26:15] while the lever is there makes a CHARACTER_CLASS_THIEF remark that the west wall has changed (message 29, once, level flag 11). Pulling the lever while [27:15] is open plays sound 13 and opens [25:15].2

Beds and decorations​

  • The key in the bed. The first activation of the bed on the south face of [19:06] (level flag 12) creates a Copper Key (template 18) with SCRIPT_CREATE_ITEM, in the player's hand when it is empty and otherwise in the party's block, with a remark (message 30, sound 79). Later activations show the bed message.
  • Beds at [03:04], [03:07], [03:13], [09:18], [13:18], [20:08] and [20:03] call the subroutine at offset 2: the bed feels unforgiving (message 0).
  • Tapestries (message 33) on 17 of the 20 blocks listed in the bindings; see scripts that do not run for the other three.
  • Windows on the south face of [04:05] and the east face of [02:09] (reference 62). Activating one describes its coloured glass (message 34). Using any item on it breaks it: sound 77, the face becomes reference 63 and the view is redrawn; activating it then shows the view over a forest (message 35).
  • Skulls firmly fixed to the wall (message 36) at [19:22], [22:23], [21:24], [21:26], [22:27], [24:23], [25:24], [25:26], [24:27] and [03:17]; holy water basins (message 37) at [21:12] and [21:14].2

Wandering monsters​

The step-triggered script of [00:00] runs at every 36th move and asks for three monsters of type 0: at [17:15], the arrival of the teleporter [15:20], one at position 0 facing 3 in MONSTER_MODE_WANDER_LEFT and one at position 3 facing 0 in MONSTER_MODE_WANDER_RIGHT; and one at [08:02] at position 3 facing 2 in MONSTER_MODE_WAIT, near the arrival from level 5. Each placement follows the rule given under reading this page.2

Bindings​

Blocks whose flags are zero receive only the events that need no enabling bit: the step event ([00:00]), the timer event ([04:15]) and BLOCK_EVENT_WALL_DECORATION. Rows that list several blocks give their scripts in the same order.1

PositionEnabled eventsScriptPurpose
[00:00]none (BLOCK_EVENT_STEP_COUNT)420Wandering monsters
[10:04]BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_ITEM_PLACED, BLOCK_EVENT_FLYING_OBJECT466Stairs, down to level 5
[10:02]BLOCK_EVENT_PARTY_ENTER593The angry priest
[11:02], [09:02]BLOCK_EVENT_PARTY_ENTER739, 743The angry priest
[07:04], [09:11], [09:13], [10:16], [11:01], [13:01], [16:10], [16:08]none (BLOCK_EVENT_WALL_DECORATION)747, 972, 3286, 1379, 4741, 5185, 4903, 5044Locks, keyholes
[07:15], [12:16], [14:14], [15:03]none (BLOCK_EVENT_WALL_DECORATION)1186, 2949, 3110, 5311Locks, locks without a key
[06:09]BLOCK_EVENT_PARTY_ENTER878Voices behind a door
[06:11], [08:13], [09:15], [24:17]BLOCK_EVENT_PARTY_ENTER1098, 1142, 1347, 4410Ambushes
[18:22]none (BLOCK_EVENT_WALL_DECORATION)3794Ambushes, the warning
[06:16]none (BLOCK_EVENT_WALL_DECORATION)2479Traps, lever
[06:17]BLOCK_EVENT_PARTY_ENTER2484Traps, fireball plate
[19:20]BLOCK_EVENT_PARTY_ENTER3764Traps, darts
[08:19]BLOCK_EVENT_PARTY_ENTER2515The moving pit, start
[04:15]none (BLOCK_EVENT_TIMER)2519The moving pit, on the timer
[04:16]BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_ITEM_PLACED2630The moving pit
[05:19], [05:29]BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_ITEM_PLACED, BLOCK_EVENT_FLYING_OBJECT2693, 2821Stairs, inside the level
[09:19]BLOCK_EVENT_PARTY_ENTER1505The carving of Talon
[06:21], [05:21]BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_PARTY_LEAVE, BLOCK_EVENT_ITEM_PLACED, BLOCK_EVENT_ITEM_REMOVED1807, 1946The guarded stairs, plates
[02:16], [02:22]BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_ITEM_PLACED, BLOCK_EVENT_FLYING_OBJECT2085, 2227The guarded stairs, to level 15
[04:14]none (BLOCK_EVENT_WALL_DECORATION)2369The portal
[15:17]BLOCK_EVENT_ITEM_USED3412Statues
[08:08], [08:09], [11:13], [11:21], [13:13], [13:19], [15:06], [15:07], [15:12], [17:17], [19:15]BLOCK_EVENT_ITEM_USED5728, 5763, 5798, 5833, 5868, 5903, 5938, 5973, 6008, 6043, 6078Statues, statuettes
[14:19], [16:19], [15:20]BLOCK_EVENT_PARTY_ENTER and BLOCK_EVENT_ITEM_REMOVED ([14:19]); BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_ITEM_PLACED, BLOCK_EVENT_FLYING_OBJECT (the others)3489, 3537, 3568Teleporters
[23:25]BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_ITEM_PLACED, BLOCK_EVENT_FLYING_OBJECT3599The soft floor
[23:23]BLOCK_EVENT_ITEM_PLACED, BLOCK_EVENT_ITEM_REMOVED3703Gem niches
[21:25], [23:27], [25:25]BLOCK_EVENT_ITEM_PLACED3884, 3936, 3989Gem niches
[28:22]BLOCK_EVENT_PARTY_ENTER4041Gem niches, closing
[27:19], [29:30]none (BLOCK_EVENT_WALL_DECORATION)4063, 3983Gem niches, plaques
[18:12]BLOCK_EVENT_PARTY_ENTER4104The mark of Darkmoon
[22:13]BLOCK_EVENT_ITEM_USED4214The glass shield
[28:09], [22:09]BLOCK_EVENT_PARTY_ENTER4365, 4385Shifting walls
[28:14]BLOCK_EVENT_ITEM_PLACED, BLOCK_EVENT_ITEM_REMOVED4484The niche lever
[26:15]BLOCK_EVENT_PARTY_ENTER4550The niche lever, hint
[25:15]none (BLOCK_EVENT_WALL_DECORATION)4592The niche lever
[22:15]BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_ITEM_PLACED, BLOCK_EVENT_FLYING_OBJECT4614Stairs, up to level 10
[19:06]none (BLOCK_EVENT_WALL_DECORATION)4867Beds and decorations, the key in the bed
[03:04], [03:07], [03:13], [09:18], [13:18], [20:08], [20:03]none (BLOCK_EVENT_WALL_DECORATION)5472, 5476, 5480, 5484, 5488, 5492, 5496Beds and decorations, beds
[07:07], [07:08], [07:10], [08:10], [09:07], [10:14], [10:20], [12:14], [12:18], [12:20], [14:02], [14:05], [14:16], [16:05], [16:06], [16:11], [16:13], [16:16], [18:14], [18:16]none (BLOCK_EVENT_WALL_DECORATION)5500, 5506, 5512, 5518, 5524, 5530, 5536, 5542, 5548, 5554, 5560, 5566, 5572, 5578, 5584, 5590, 5596, 5602, 5608, 5614Beds and decorations, tapestries
[04:05], [02:09]BLOCK_EVENT_ITEM_USED5620, 5674Beds and decorations, windows
[19:22], [22:23], [21:24], [21:26], [22:27], [24:23], [25:24], [25:26], [24:27], [03:17]none (BLOCK_EVENT_WALL_DECORATION)6113, 6119, 6125, 6131, 6137, 6143, 6149, 6155, 6161, 6167Beds and decorations, skulls
[21:12], [21:14]none (BLOCK_EVENT_WALL_DECORATION)6173, 6179Beds and decorations, basins
[05:07], [05:11], [21:20], [18:27], [28:23]none873, 967, 3759, 3931, 4036Scripts that do not run

Three subroutines are reached only by SCRIPT_CALL: the bed message at offset 2, the talking-mouth animation at offset 8 and the opening of the carving at offset 306.

Level flags​

BitSet byCleared byMeaning (descriptive)
2[10:02], [11:02], [09:02]—The priest's scene has been played or bypassed.
3[06:09]—The voices have been heard, or the offer declined.
4[06:11], [08:13]—The ambush at [08:11] has been placed.
5[09:15]—The ambush at [09:17] has been placed.
6[19:20]—The dart trap has fired.
7[18:22], with a mage—The mage has read the warning.
8[27:19]—The greed remark has been considered.
10[24:17]—The ambush at [22:16] has been placed.
11[26:15]—The thief's remark on the west wall has been made.
12[19:06]—The key in the bed has been found.
22[08:19][09:19]The moving pit at [04:16] is active.
31[02:16], [02:22]—The password check of the stairs has been passed.

Monster types​

The level defines four monster types, 0 to 3, and one monster image, cleric3 (CLERIC3.CPS), with its decoration file CLERIC3.DCR, which has three groups. The game stores no name for a monster type. All four have occupancy class 0, one melee attack, no immunity, type flags that let Hold Person affect them, attack and step sounds 39 and 38, turn resistance −1 and evasion 0:9

Property (INF field)Types 0 and 1Type 2Type 3
Armour class (armor_class)228
Hit chance (hit_chance)111111
Level for saving throws (level)9910
Hit points (hit_points_dice)9d89d870
Melee attack damage2d82d81d6 + 4
MonsterCapabilityFlagsMONSTER_CAP_POST_MOVE_ACTION, MONSTER_CAP_OPENS_DOORSthe sameMONSTER_CAP_POST_MOVE_ACTION
Experience (experience)2 0009753 500
Ranged attacksnone (type 0); one Hold Person (type 1)noneone Flame Strike
Decoration groups (decoration_indices)32 and 33

Type 1 differs from type 0 only by its ranged attack, and no monster of the level, placed at the start or by a script, uses it. Type 2 has the statistics of type 0 with less experience and the decorations of group 2 of CLERIC3.DCR drawn over it.

The 13 monsters present at the start, all MONSTER_MODE_WAIT except the four of [03:22] (MonsterMode):9

BlockMonsters (type, position)Notes
[03:22]0 at 0, 0 at 1, 2 at 2, 3 at 3, MONSTER_MODE_PURSUEThe guarded stairs; one may drop a flail
[06:14]0 at 3
[04:24], [04:27], [02:26]0, 2 and 0 in the centreNear the bottom of the moving pit; the one of [02:26] always drops a flail
[06:27]3 in the centreInside a rock block, see below
[18:12]2 at 1, 0 at 3On the mark of Darkmoon block; one may drop a flail
[19:10]0 at 0, 0 at 2One always drops a Copper Key, the other may drop a flail

Slots 16 to 20 of the file name block 0, so the game leaves them empty: they place nothing.

Some monsters start inside walls. The monster of type 3 at [06:27] is in a rock block, but the open block north of it lets it leave once it has noticed the party. The four guards of [03:22] are described under the guarded stairs.

"May drop" is one chance in ten when the monster dies (when a monster dies).

Scripts that do not run​

Eight bindings have flags 0 on blocks that no event reaches:10

  • [05:07], [05:11], [21:20], [18:27] and [28:23] are doors with a switch; their scripts toggle their own door. The switch is handled by the door-switch interaction of the built-in door references, which operates the door itself and sends no event to the block's script.
  • [10:20], [12:18] and [12:20] carry the tapestry message, but their faces are plain walls without an interaction type.

Monsters do not change this. Each monster on a block adds one to its state word, and only a count of 8 would carry into the event flags, but a move is refused on a block holding four (inferred from these rules for the blocks a monster can enter), and no initial monster or script places a monster on these blocks.

Sources​

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

Footnotes​

  1. The reference LEVEL6.INF and LEVEL5.MAZ, read with INF.ksy and MAZ.ksy: sublevel names, door record, steps_until_script 35, script timer target [04:15] with interval 2, monster graphics slot cleric3, monster types 0–3, the initial monster records and the cell bindings. The event meanings follow BlockEventMask and LevelBlockStateFlags. ↩ ↩2

  2. Reachability decoding of the reference LEVEL6.INF with script_decoder.py and the instruction layouts of the virtual machine reference; wall references from LEVEL5.MAZ and the level's wall mappings; texts 28, 31 and 32 of the reference TEXT.DAT, summarized. The placement checks are those of the monster spawn routine. ↩ ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10 ↩11 ↩12 ↩13 ↩14

  3. The decoded lock scripts at offsets 747–872, 972–1097, 1186–1346, 1379–1504, 2949–3109, 3110–3285, 3286–3411, 4741–4866, 4903–5043, 5044–5184, 5185–5310 and 5311–5471; the key items of the reference ITEM.DAT (type 38, values 1 and 3 to 13). ↩

  4. The decoded scripts at offsets 2515–2692; the script timer loader and the script timers routine, with the tick rate of the game clock; the damage of Damage characters. ↩

  5. The decoded scripts at offsets 306–419 and 1505–1806, the wall mappings of references 53, 65, 66 and 70–73, and the type-46 items of the reference ITEM.DAT. ↩

  6. The initial monster records of LEVEL6.INF, the walls of LEVEL5.MAZ and the move check. ↩

  7. The decoded script at offsets 2369–2478, the portal animation and the type-37 items of the reference ITEM.DAT. ↩

  8. The decoded scripts at offsets 8–305 and 4104–4213, and the decoded LEVEL9.INF instruction at offset 3149, which sets the bit. ↩

  9. The monster graphics slot and monster type entries of the reference LEVEL6.INF (INF.ksy), copied into the monster type properties by the type loader; the initial monster records, placed by the initial monster reader; the group count of the reference CLERIC3.DCR (DCR.ksy); item templates 18, 36 and 58 of the reference ITEM.DAT. ↩ ↩2

  10. The record runner calls the interaction selected by the wall special types, which give the built-in door references 3–7 and 13–17 the door-switch type; that interaction calls the door toggle. The interactions that send BLOCK_EVENT_WALL_DECORATION are the wall-click dispatchers. ↩