Skip to main content

Level 11: reference tables

Level 11 · The levels · Level data (INF)

In brief​

The details of level 11: 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 use the maze LEVEL11.MAZ, the mezz graphics and the azure sound files (AZURE.ADL, AZURE.SND). The first one, used everywhere but in the arena, sets a step threshold of 50, names the monster images bulette and basilisk and defines monster types 0 and 1. The second one names only guardian, defines only type 0 and sets no step threshold. Both records define the same script timer. Sixteen monsters are present at the start.1

This page covers every reachable script of the reference file: 84 cell bindings, 98 script entry points including 14 subroutines reached only by SCRIPT_CALL, and 851 instructions. The decoding finds no unknown operand layout; 25 bytes in 17 places follow a level load and are never executed. Message colors are palette colors (Print a message). Sound numbers select entries of the level's sound file (see the sound-effect table).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 "seen from [XX:YY]" is the face of the next block that the party sees when it stands there facing that block.
  • Script offsets count from the start of the INF script_data field (decoded payload offset 1047 in the reference file). Message numbers index the level's 32 strings and text numbers TEXT.DAT; both are summarized, not quoted.
  • Speakers are chosen as on the level 4 page.
  • Wall references are the values of a block's four sides. Those named here are mapped by the first record of this level: 25 lets the party pass but keeps monsters out and has no decoration; 35 and 36 are the two states of a floor plate (the plate scripts switch between them); 38 is a pit; 44 is WALL_REFERENCE_TELEPORTER; 46 is WALL_REFERENCE_ILLUSION, a passable wall that looks solid; 67 is a decorated wall that neither the party nor monsters pass. 1 is a plain wall and 0 no wall.
  • Levers are walls of the INF_WALL_SPECIAL_LEVER_INCREMENT and INF_WALL_SPECIAL_LEVER_DECREMENT types (InfWallSpecialType): each use flips the lever between two references (27 and 28, or 31 and 32) and runs the block's script. Plaques, carvings, locks and the other scripted decorations are INF_WALL_SPECIAL_DECORATION_SCRIPT walls (type 8, which shares its handler, at [02:20]).
  • Falling. Every pit of the level, when the party is in it, deals 2d6 damage to every character, without saving throw and with SCRIPT_DAMAGE_RING_NEGATES, and loads level 10, sublevel 0, at the same position, keeping the party's facing. Items dropped or thrown into an open pit go to the same position of level 10. See level changes.

Stairs​

[18:30] leads down to level 10 and [28:24] up to level 12, with the pattern described on the level 5 page: entering in the required direction prints a message (1 down, 3 up), plays sound 79 and loads the other level; entering in another direction prints message 2, plays sound 29 and moves the party back one block. Items placed or flying into a stair block go to the destination.2

StairsRequired directionDestinationPushed back to
[18:30]1Level 10, sublevel 0, [19:30], facing 1[17:30]
[28:24]0Level 12, sublevel 0, [28:23], facing 0[28:25]

Wandering monsters​

At the start, the first record places 16 monsters, all at position 4:1

SlotsTypePositionsFacingMode
10[13:22]2MONSTER_MODE_WAIT
2–61[17:25], [18:25], [19:25], [17:26], [18:26]1MONSTER_MODE_WAIT
70[25:17]0MONSTER_MODE_DELAYED; carries the Crystal Key
80[02:17]0MONSTER_MODE_WAIT
90[06:14]3MONSTER_MODE_WANDER_LEFT
10–130[02:26], [03:26], [02:27], [03:27]2MONSTER_MODE_PEACEFUL
14–160[22:26], [24:29], [28:26]1, 1, 3MONSTER_MODE_WAIT; see the ambush

Modes are those of MonsterMode. The monster of slot 7 is the one the plaque at [25:14] calls the sentry (message 13); its fixed item is template 77 of ITEM.DAT, the Crystal Key used at one of the locks.

In sublevel 0, at every 51st move (when the move counter exceeds 50), the [00:00] script tries seven placements with SCRIPT_SPAWN_MONSTER, all at position 4 and facing 0: type 1 at [16:16] (MONSTER_MODE_WANDER_LEFT), [18:16], [13:20] and [13:10] (MONSTER_MODE_WANDER_RIGHT), then type 0 at [08:12], [10:05] and [05:09] (MONSTER_MODE_WANDER_RIGHT). Each one succeeds only on an empty block that is not the party's. Sublevel 1 has no step threshold, so this script does not run there.2

The moving pit​

A single pit (wall reference 38) moves around six blocks: [22:18], [22:19], [22:20], [21:22], [21:23], [21:24], then back to [22:18]. The level's timed block script sends BLOCK_EVENT_TIMER to [01:00] with an interval of 3, that is 3 × 18 = 54 ticks of the game clock, about three seconds; the timer is defined in both records, so the pit keeps moving while sublevel 1 is loaded. At each event the subroutine at 138:3

  1. finds the first of the six blocks, in the order above, whose side 0 is nonzero, sets its four sides to 0 and sets the four sides of the next block to 38;
  2. plays sound 17 at the new pit;
  3. if the party stands on the new pit, redraws the scene and makes the party fall to level 10 at that position, as described under falling.

Each of the six blocks also has its own script: entering it, or an item placed into it, while its side 0 is 38 or 39 makes the party fall or sends the item to the same position of level 10.

The row of pits​

Six pits fill the column from [14:02] to [14:07], between two corridors. Each has the falling script of the moving pit. The plate at [13:02], west of the northernmost pit, covers the southernmost one, [14:07]:2

  • Pressed when the party enters the plate while no item and no monster is on it, when the first item is placed on it while the party and monsters are away, or when a monster enters it while no item is on it and the party is away: sound 17 plays if [14:07] still shows a pit, and the four sides of [14:07] become wall reference 25, which the party crosses safely.
  • Released under the opposite conditions (the party leaves, the last item is taken, a monster leaves, each time with the plate otherwise empty): [14:07] becomes a pit again.

The plate keeps reference 35 throughout. Because a pressed plate needs the party to stand on it, crossing at [14:07] requires an item or a monster on the plate.

The release branch plays sound 17 only when side 2 of [14:07] is 0, but the press branch sets that side to 25, and no other script writes [14:07]. The pit therefore reopens silently, whereas its covering plays the sound. A faithful reimplementation keeps the test on 0.

The lever seen from [15:07] facing south (the north face of [15:08]) springs back: after each use the script redraws the scene, waits 2 ticks and sets the face back to 27. Before that, if none of the blocks [11:03], [12:02] to [12:07] and [13:02] to [13:07] holds a monster, it places a monster of type 1 at [11:03], facing 1, in MONSTER_MODE_WANDER_RIGHT.

Entering [17:03] sets the four sides of [16:03], a plain wall, to WALL_REFERENCE_ILLUSION, which opens a passage west towards the pits that still looks like a wall.

The magic walls​

The levers on the south faces of [20:02], [21:02] and [22:02], seen from row 3, choose the layout of the 4 × 4 blocks from [20:06] to [23:09], where the Amulet of Life lies at [20:09]. The levers themselves only flip between references 31 and 32. The spring lever on the north face of [21:05], seen from [21:04], applies the choice: the subroutine at 1443 clears level flag 1, reads the three levers and calls one of six layout subroutines. Each layout first tests one or two faces of its own result and returns at once if they match; otherwise it rewrites all 16 blocks and sets level flag 1. When flag 1 is set after the call, the selection clears it and places a monster of type 1 at [29:07], position 4, facing 0, in MONSTER_MODE_WANDER_LEFT. Then the lever is redrawn and set back to 27.2

Levers [20:02], [21:02], [22:02]LayoutTest that skips it
31, 31, 31 or 32, 32, 32622side 3 of [23:09] is 67
32, 31, 31767side 0 of [21:06] is 67
31, 31, 32912side 0 of [21:08] is 67
32, 31, 321045side 0 of [20:07] is 67
31, 32, 31 or 31, 32, 321166side 0 of [20:08] and side 1 of [22:09] are 67
32, 32, 311301side 3 of [21:09] is 0 and side 3 of [22:08] is 67

The layouts, rows 06 to 09 from top to bottom and columns 20 to 23 from left to right. # is a plain wall (1), · an open block whose sides are 25, = an open block whose north and south faces are 67 and ‖ an open block whose east and west faces are 67:

622767912104511661301
##=##=##··#····#····##=#
···‖···#··‖·=#·#·#·#···‖
·#=#=#·‖#=#··#··=###·#·#
·#·‖·‖·#··‖··‖·#·‖···‖··

The maze file holds layout 622 with plain floor (0) in place of 25, which matches the three levers' initial reference 31. Reference 25 keeps monsters out of the open blocks.

The skip tests of layouts 1166 and 1301 never match their own result: layout 1166 makes [22:09] an open block with sides 25, and layout 1301 sets side 3 of [21:09] to 67 and [22:08] to 25. No layout produces the faces these tests look for, so the tests never succeed. Using the lever at [21:05] again with the levers unchanged therefore rewrites the same walls and places another basilisk at [29:07] for these two layouts, whereas the four other layouts do nothing on a repeated use. A faithful reimplementation keeps the six tests as they are.

The basilisks appear next to the plate at [28:07]. Entering that plate, for the party or a monster, opens the door [27:08] west of it; the lever on the south face of [26:07], seen from [26:08], closes that door.

Locks​

Two locks open doors with SCRIPT_OPEN_DOOR. The script runs when the lock is activated and tests the held item (SCRIPT_EXPR_HELD_ITEM):4

LockDoorKey (type 38, value)
North face of [18:08], seen from [18:07][18:06]Crystal Key, value 11
East face of [08:13], seen from [09:13][09:14]Shell Key, value 12
  1. If the door's side 2 is neither 8 nor 18, its closed references, message 18 says that it is already unlocked.
  2. The right key plays sound 14, opens the door and is deleted from the hand.
  3. Another key (ITEM_TYPE_KEY) prints message 14 and plays sound 81.
  4. Lock picks (item type 28) print message 15, a failed attempt, with sound 81, when the party has a CHARACTER_CLASS_THIEF, and message 16, which asks for a thief, otherwise. No branch opens the door with lock picks.
  5. Any other item, or an empty hand, prints message 17: a key is needed.

The Shell Key lies at [04:18]; the Crystal Key is carried by the sentry.

The three gems​

The plaque on the east face of [13:13] (message 11) hints that heart, body and soul must meet. The ornament on the south face of [15:11], seen from [15:12], reacts when it is activated with a gem of value 5, 6 or 7 in hand (ITEM_TYPE_GEM): the gem is deleted, then the face advances from reference 59 to 60, from 60 to 61, or from 61 to 62; the last step also opens the door [19:14]. Any other held item gives message 12. The three gems of these values in the reference ITEM.DAT lie on this level: the soul gem (5) at [18:28], the body gem (6) at [15:09] and the heart gem (7) at [08:21]. The script does not check which gem it receives, only its type and value. A fourth use cannot occur with the original items: no other gem has these values and no script creates one. It would delete the gem and change nothing.4

Fireball plates​

Fourteen floor plates of the west wing launch fireballs with SCRIPT_LAUNCH_OBJECT, magic object type 2 (Fireball), every time the party enters them; all but four also fire when a monster enters. A scripted fireball deals 1d6 × 9 on this level. Most starting blocks carry wall reference 57 on the face turned in the direction of flight.2

PlateAlso on a monsterFireballs: starting block and direction
[01:07]no[01:05] south
[01:09]no[01:05] south
[03:07]no[03:13] north
[03:09]no[03:13] north
[02:16]yes[01:17] north
[05:07]yes[07:08] south
[06:11]yes[05:10] south, [09:11] south, [09:10] west
[06:12]yes[05:14] west
[07:05]yes[06:05] south
[07:09]yes[10:08] west
[07:12]yes[11:12] west, [10:13] north
[08:08]yes[10:04] south, [05:05] south, [08:06] west
[09:12]yes[08:11] west, [07:08] south
[10:10]yes[09:10] north, [10:08] west, [08:06] north

All use starting position 0 of the block. The plates keep reference 35; no script changes them.

A fireball's flight never reads the faces of its starting block, only the face of the next block turned back towards it. The fireballs from [05:14], a plate, and from [08:06] going north, which have no reference 57 on the face of flight, therefore fly like the others. The one from [05:05], a solid block, does not get out: the north face of [05:06] is solid, so its second step is refused and it ends inside its own block, where it hits nothing. Plate [08:08] therefore sends only two fireballs into the wing.5

The pit at [01:13]​

The pit at [01:13] (reference 38 at the start) has the falling script. Two plates of the wing control it:2

  • [03:11], pressed (under the same conditions as the plate at [13:02], with [03:11] instead): sound 17 plays at [03:11] if [01:13] still shows a pit, [01:13] becomes floor (0) and the plate shows reference 36. Released: the plate shows 35 again; the pit stays closed.
  • [02:12], pressed: a fireball leaves [06:12] westwards, sound 17 plays, [01:13] becomes a pit (38) and the plate shows 36. Released: sound 17 plays, [01:13] becomes floor again and the plate shows 35.

Three levers​

The levers on the east faces of [00:10], [00:11] and [00:12], seen from column 01, each flip between references 31 and 32 and call the test at 1604: when the first two show 32 and the third 31, the door [01:14] opens. Nothing closes it again.2

Teleporters​

Blocks whose four sides are WALL_REFERENCE_TELEPORTER move the party, with sound 15 played at the teleporter, and turn it; items placed or flying into them go to the same destination.2

TeleporterDestinationNew facing
[11:17][11:21]1
[10:18][12:20]0
[10:20][08:18]1
[12:21][10:17]0

Entering [12:17] gives, once (level flag 10), a hint by a CHARACTER_CLASS_THIEF that the wall to the north is not right (message 29, sound 79): [12:16] is an illusion wall. The teleporters of the challenge are described there.

The carvings and Dispel Magic​

A wall at [13:25] closes the corridor from [11:25] to [15:25], which ends at two carvings: the east face of [10:25] and the west face of [16:25] (reference 55). Activating either shows message 5.6

  • Entering [11:25] gives, once, a remark that the statue is a source of magic (message 4, sound 79, level flag 9), by a CHARACTER_CLASS_MAGE or, failing one, a CHARACTER_CLASS_CLERIC (CharacterClassMask).
  • Casting a spell while standing at [11:25] facing 3, or at [15:25] facing 1, sends BLOCK_EVENT_SPELL_CAST. If the spell is definition 12 or 44, the mage and cleric Dispel Magic (SCRIPT_EXPR_LAST_CAST_SPELL), the subroutine at offset 2 removes the first wall still standing among [13:25], [13:24], [13:23], [12:23], [11:23] and [10:23] (side 0 nonzero), setting its four sides to 0 and playing sound 13 there. The first one, [13:25], also gives message 0 with sound 79: the wall behind the party has disappeared.

In the reference maze [13:23], [11:23] and [10:23] are already open, so three casts remove [13:25], [13:24] and [12:23]; later casts change nothing. Entering [13:26], south of the wall, gives a remark by a CHARACTER_CLASS_MAGE that the walls were built by magic (message 28, sound 79); without a mage, a roll of 1d100 below 11 instead sets level flag 19 silently, which ends the remark for good. The plaque on the east face of [12:31] (message 27) says to disperse the magic.

The script of [11:25] runs the Dispel Magic test on entry as well. Once level flag 9 is set, a party entry skips the remark and goes on to the test, which reads the last spell cast by the party anywhere: the game records it when a spell is cast and never clears it. Entering [11:25] facing 3 after a Dispel Magic that was the party's last spell removes the next wall without a new cast, as many times as the party re-enters. [15:25], which enables only BLOCK_EVENT_SPELL_CAST, has no such path. A faithful reimplementation keeps both the entry path and the persistent last spell.

Alain​

Entering [10:29] starts, once (level flag 17, set first), a dialogue with Alain: the upper-left region of SOUT5, sound 52 and text 66. He is blind and trapped by a dais he built to collect the magic of the bulettes; it feeds on his power, and he asks to touch one of the party so that he can release his magic and die. The two answers are messages 6 and 7 (yes, no):7

  • Yes: text 67 asks who will touch him, and SCRIPT_SPECIAL_EVENT SCRIPT_SPECIAL_EVENT_SELECT_CHARACTER lists the party members. Choosing ABORT (run variable 99) shows text 68, in which he accepts the refusal; choosing a member shows text 69, in which the power courses through that character and Alain fades away, and sets level flag 18.
  • No: text 68.

After the screen closes, if flag 18 is set, SCRIPT_SPECIAL_EVENT_LEVEL_GAIN gives the chosen character one level in each class. Because of the level-gain anomaly, a multi-class character usually gains no level. The dialogue cannot be repeated: a refusal forfeits the reward.

The challenge​

Activating the face of [04:20] seen from [05:20] (reference 65) plays sound 53 and shows text 65 while a mouth (MMOUTH1) is animated: its four quarters are drawn 13 times, about 0.3 seconds apart, then a blank text waits for OK (message 9). The voice challenges the party to a duel in which the winner takes the loser's greatest item; the party must first leave its spell books and holy items in an alcove and step into the teleportation chamber. The dialogue repeats at every activation.8

The teleportation chamber is [05:19]. Entering it plays sound 15 and tests the inventories with SCRIPT_EXPR_PARTY_BLOCK_OR_ITEM_HOLDERS: the number of present characters carrying an item of type 29 (ITEM_TYPE_SPELLBOOK) and the number carrying one of type 30 (ITEM_TYPE_HOLY_SYMBOL), of any value. Items dropped or thrown into the chamber go to [06:21].

  • Both counts zero: the party is moved to [01:28], facing 0.
  • Otherwise: the party is moved to [29:04], facing 2; three monsters of type 0 (bulettes) are placed at [28:04], [29:05] and [30:04], position 4, in MONSTER_MODE_WANDER_RIGHT, and the door [29:02] closes. The lever on the west face of [30:03], seen from [29:03], opens that door only when none of [28:04], [30:04], [29:04] and [29:05] holds a monster; otherwise message 25 mocks the attempt to sneak magic in. Beyond the door, the teleporter [29:01] returns the party to [06:20], facing 2.

The way to the wall of souls. [01:28] opens on a room where four monsters of type 0 wait in MONSTER_MODE_PEACEFUL. An illusion wall at [03:25] leads north. The teleporter [01:22] moves the party to [03:21], facing 0. Plaques: the south face of [03:22] (message 20), seen from [03:23], says the odds are now evened; the south face of [03:18] (message 21), seen from [03:19], says the challenger waits beyond the wall of souls, which strikes back at every blow.

The wall of souls is [02:20], whose east and west faces show reference 56 ([01:20] lies beyond it). Activating it shows message 23, a wall of transparent flesh. When a character uses an item while facing it, its script receives BLOCK_EVENT_ITEM_USED and tests the used item: if its kind (SCRIPT_EXPR_LAST_USED_ITEM type properties) is ITEM_KIND_MELEE (ItemKind, which includes the empty hand) and the west face of [02:20] is still 56, every character takes 8 points of damage without saving throw, message 22 says the wall screams, sound 30 plays and the counter at 1638 runs. It sets the first clear flag among 2 to 6; when all five are set, the next blow sets the four sides of [02:20] to 0. The wall therefore falls at the sixth blow, after 48 points of damage to each character. A blow that kills the whole party is followed by a message in the same run; see the message search anomaly.

Beyond the wall. Every entry into [01:20] moves the items lying at [06:21] and [05:20] to [17:01], and sets the four sides of [05:19] and [05:20] to 1: the chamber and the block in front of the mouth become plain walls. Entering the teleporter [01:18] loads level 11, sublevel 1, at [00:30], facing 1; items placed or flying into it go to [00:30].

The arena. Entering [01:30] in sublevel 1 places, once (level flag 7), a monster of type 0 at [04:30], position 4, facing 3, in MONSTER_MODE_WANDER_RIGHT: with the second record, the guardian. The scene is redrawn and text 35 shows the challenger scoffing at the party, with OK. The Eye of Talon lies at [05:30]. The teleporter [06:23] loads level 11, sublevel 0, at [18:02], facing 2, a block next to [17:01], where the party's items were sent; items placed or flying into it go to [18:02]. The plaque on the north face of [18:04] (message 24), seen from [18:03], has the challenger concede defeat and promise another meeting.

[00:28] is bound to a script that shows message 19, a plaque welcoming the challengers, but its block has no event-enabling flag and only plain walls (references 1 and 2) in LEVEL11.MAZ, and no script changes them. No event can reach the script, so message 19 is never shown. A faithful reimplementation keeps the binding inert.

The sliding wall​

Six plates, [24:18] to [26:19], lie north of three blocks of row 20, of which only [25:20] is a wall at the start. Each plate calls the move of its column when the party enters it; the three plates of row 18 also react to an item placed on them, dropped or at the end of a flight. A move opens one wall block of row 20 and closes another (all four sides 0 and 1) and plays sound 13 at the new wall:2

Plates of columnSubroutineWall at [24:20]Wall at [25:20]Wall at [26:20]
24463staysmoves to [24:20]moves to [25:20]
25516moves to [25:20]staysmoves to [25:20]
26569moves to [25:20]moves to [26:20]stays

The subroutines test only for a wall where the table shows a move, in the order of the table, so the single wall moves one block towards the column that was triggered. The way on, south of row 21, passes [25:22], where a party member remarks once that the party may need those items later (message 31, sound 79, level flag 13).

The Eye of Talon and the ambush​

The face of [24:23] seen from [25:23] is a smooth hole (reference 53). Activating it:4

  1. With level flag 8 clear and an item of type 46 (ITEM_TYPE_QUEST_ITEM) and value 1 in hand, the face becomes 54, the item is deleted and flag 8 is set.
  2. Otherwise, with an empty hand (held item index 0) while the face shows 54, the face becomes 53 again, a copy of template 76, the Eye of Talon, is created on the mouse pointer if it is empty, otherwise in the party's block (SCRIPT_CREATE_ITEM), the door [25:24] opens and flag 8 is cleared.
  3. Otherwise message 26 describes the hole.

The door therefore opens when the Eye is taken back. In the reference ITEM.DAT, the Eye of Talon and the Mantis Idol both have type 46 and value 1, so a Mantis Idol put in the hole comes back as an Eye of Talon.

South of the door, entering the plate [25:26] while it shows 35 sets it to 36, plays sound 12, closes the door [25:24] and sets the four sides of [27:26], [25:29] and [23:26] to 0. Those three blocks had sides 25, which kept the waiting monsters of slots 14 to 16 at [28:26], [24:29] and [22:26] out: removing them lets those three monsters reach the party. The plate stays at 36, so this happens once. The lever on the west face of [29:26], seen from [28:26], plays sound 6 and opens the door [25:24]. The stairs up to level 12 at [28:24] lie north of [28:26].

Monsters on guard​

  • The plaque on the west face of [25:14] (message 13) names the sentry, the delayed monster of slot 7 at [25:17].
  • Entering [17:21] places, once (level flag 12), a monster of type 1 at [17:20], position 4, facing 2, in MONSTER_MODE_WAIT, if the block allows it; a CHARACTER_CLASS_FIGHTER then warns of the creatures' gaze (message 30, sound 79).2

Sublevel records​

The second record is selected only by the teleporter at [01:18], which loads level 11, sublevel 1, at [00:30]; the teleporter at [06:23] loads sublevel 0 again at [18:02]. Changing record is an ordinary level change: the walls, the monster slots and the level flags carry over, and the scripts and bindings, shared by both records, are read again. What differs:9

Record fieldSublevel 0Sublevel 1
Monster imagesbulette (bank 0), basilisk (bank 1)guardian (bank 0)
Monster types0 and 10 only
Door recordone, door2none
Step threshold500: no step-triggered script
Wall mappings28 references, 25 to 745 references: 25, 26, 44, 46 and 74
Script timer[01:00] every 3the same

The arena reached in sublevel 1 — row 30 from [00:30] to [07:30], the blocks [05:29] to [07:29] and the corridor from [05:28] to the teleporter at [06:23] — uses only wall references that the second record maps or that are built into the executable. Because the type table keeps the entries the new record does not redefine, every monster of type 0 on the level, including the bulettes left elsewhere, takes the second record's type 0 properties and is drawn with the guardian image while sublevel 1 is loaded, and the five monsters of type 1, of the second image bank, have no image (as described for sublevels).

Bindings​

Blocks whose flags are zero still receive the events that need no enabling bit: the step event at [00:00], the timer event at [01:00] and wall activations. Lever walls pass the activation gate itself as the event; no lever script of this level tests the event.1

PositionEnabled eventsScriptPurpose
[18:30]BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_ITEM_PLACED, BLOCK_EVENT_FLYING_OBJECT1820Stairs, down to level 10
[28:24]BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_ITEM_PLACED, BLOCK_EVENT_FLYING_OBJECT1947Stairs, up to level 12
[00:00]none (BLOCK_EVENT_STEP_COUNT)1714Wandering monsters
[01:00]none (BLOCK_EVENT_TIMER)2987The moving pit
[22:18]BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_ITEM_PLACED2597The moving pit
[22:19]BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_ITEM_PLACED2662The moving pit
[22:20]BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_ITEM_PLACED2727The moving pit
[21:22]BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_ITEM_PLACED2792The moving pit
[21:23]BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_ITEM_PLACED2857The moving pit
[21:24]BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_ITEM_PLACED2922The moving pit
[14:02]BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_ITEM_PLACED3315The row of pits
[14:03]BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_ITEM_PLACED3380The row of pits
[14:04]BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_ITEM_PLACED3445The row of pits
[14:05]BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_ITEM_PLACED3510The row of pits
[14:06]BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_ITEM_PLACED3575The row of pits
[14:07]BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_ITEM_PLACED3640The row of pits
[13:02]BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_PARTY_LEAVE, BLOCK_EVENT_ITEM_PLACED, BLOCK_EVENT_ITEM_REMOVED, BLOCK_EVENT_MONSTER_ENTER, BLOCK_EVENT_MONSTER_EXIT3705The row of pits, plate
[15:08]none (lever)3169The row of pits, basilisk lever
[17:03]BLOCK_EVENT_PARTY_ENTER3925The row of pits, hidden passage
[21:05]none (lever)3147The magic walls
[26:07]none (lever)3161The magic walls, door
[28:07]BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_MONSTER_ENTER3165The magic walls, door
[18:08]none (BLOCK_EVENT_WALL_DECORATION)3021Locks, crystal key
[08:13]none (BLOCK_EVENT_WALL_DECORATION)4542Locks, shell key
[15:11]none (BLOCK_EVENT_WALL_DECORATION)2481The three gems
[13:13]none (BLOCK_EVENT_WALL_DECORATION)2339The three gems, plaque
[03:07]BLOCK_EVENT_PARTY_ENTER3931Fireball plates
[03:09]BLOCK_EVENT_PARTY_ENTER3940Fireball plates
[01:07]BLOCK_EVENT_PARTY_ENTER4157Fireball plates
[01:09]BLOCK_EVENT_PARTY_ENTER4166Fireball plates
[02:16]BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_MONSTER_ENTER4465Fireball plates
[06:12]BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_MONSTER_ENTER4474Fireball plates
[06:11]BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_MONSTER_ENTER4483Fireball plates
[07:12]BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_MONSTER_ENTER4508Fireball plates
[09:12]BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_MONSTER_ENTER4525Fireball plates
[10:10]BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_MONSTER_ENTER4668Fireball plates
[07:05]BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_MONSTER_ENTER4693Fireball plates
[05:07]BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_MONSTER_ENTER4702Fireball plates
[07:09]BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_MONSTER_ENTER4711Fireball plates
[08:08]BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_MONSTER_ENTER4720Fireball plates
[03:11]BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_PARTY_LEAVE, BLOCK_EVENT_ITEM_PLACED, BLOCK_EVENT_ITEM_REMOVED, BLOCK_EVENT_MONSTER_ENTER, BLOCK_EVENT_MONSTER_EXIT3949The pit at [01:13]
[02:12]BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_PARTY_LEAVE, BLOCK_EVENT_ITEM_PLACED, BLOCK_EVENT_ITEM_REMOVED, BLOCK_EVENT_MONSTER_ENTER, BLOCK_EVENT_MONSTER_EXIT4187The pit at [01:13]
[01:13]BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_ITEM_PLACED4400The pit at [01:13]
[00:10]none (lever)4175Three levers
[00:11]none (lever)4179Three levers
[00:12]none (lever)4183Three levers
[11:17]BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_ITEM_PLACED, BLOCK_EVENT_FLYING_OBJECT2345Teleporters
[10:18]BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_ITEM_PLACED, BLOCK_EVENT_FLYING_OBJECT2379Teleporters
[10:20]BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_ITEM_PLACED, BLOCK_EVENT_FLYING_OBJECT2413Teleporters
[12:21]BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_ITEM_PLACED, BLOCK_EVENT_FLYING_OBJECT2447Teleporters
[12:17]BLOCK_EVENT_PARTY_ENTER5721Teleporters, hint
[11:25]BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_SPELL_CAST2074The carvings and Dispel Magic
[15:25]BLOCK_EVENT_SPELL_CAST2183The carvings and Dispel Magic
[10:25]none (BLOCK_EVENT_WALL_DECORATION)2177The carvings and Dispel Magic
[16:25]none (BLOCK_EVENT_WALL_DECORATION)2208The carvings and Dispel Magic
[13:26]BLOCK_EVENT_PARTY_ENTER5670The carvings and Dispel Magic, hint
[12:31]none (BLOCK_EVENT_WALL_DECORATION)5664The carvings and Dispel Magic, plaque
[10:29]BLOCK_EVENT_PARTY_ENTER2214Alain
[04:20]none (BLOCK_EVENT_WALL_DECORATION)4864The challenge
[05:19]BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_ITEM_PLACED, BLOCK_EVENT_FLYING_OBJECT4745The challenge, teleportation chamber
[30:03]none (lever)5450The challenge, trap room
[29:01]BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_ITEM_PLACED, BLOCK_EVENT_FLYING_OBJECT5501The challenge, trap room
[00:28]none, and no wall that can dispatch one5209The challenge, plaque never shown
[01:22]BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_ITEM_PLACED, BLOCK_EVENT_FLYING_OBJECT5221The challenge, teleporter
[03:22]none (BLOCK_EVENT_WALL_DECORATION)5215The challenge, plaque
[03:18]none (BLOCK_EVENT_WALL_DECORATION)5255The challenge, plaque
[02:20]BLOCK_EVENT_ITEM_USED5261The challenge, wall of souls
[01:20]BLOCK_EVENT_PARTY_ENTER5389The challenge, items returned
[01:18]BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_ITEM_PLACED, BLOCK_EVENT_FLYING_OBJECT5319The challenge, to sublevel 1
[01:30]BLOCK_EVENT_PARTY_ENTER5347The challenge, the challenger
[06:23]BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_ITEM_PLACED, BLOCK_EVENT_FLYING_OBJECT5416The challenge, back to sublevel 0
[18:04]none (BLOCK_EVENT_WALL_DECORATION)5444The challenge, plaque
[24:18]BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_ITEM_PLACED2997The sliding wall
[25:18]BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_ITEM_PLACED3001The sliding wall
[26:18]BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_ITEM_PLACED3005The sliding wall
[24:19]BLOCK_EVENT_PARTY_ENTER3009The sliding wall
[25:19]BLOCK_EVENT_PARTY_ENTER3013The sliding wall
[26:19]BLOCK_EVENT_PARTY_ENTER3017The sliding wall
[25:22]BLOCK_EVENT_PARTY_ENTER5809The sliding wall, remark
[24:23]none (BLOCK_EVENT_WALL_DECORATION)5535The Eye of Talon and the ambush
[25:26]BLOCK_EVENT_PARTY_ENTER5616The Eye of Talon and the ambush
[29:26]none (lever)5656The Eye of Talon and the ambush
[25:14]none (BLOCK_EVENT_WALL_DECORATION)2991Monsters on guard, plaque
[17:21]BLOCK_EVENT_PARTY_ENTER5751Monsters on guard, basilisk

The subroutines reached only through SCRIPT_CALL are the Dispel Magic wall removal at offset 2, the moving-pit step at 138, the sliding-wall moves at 463, 516 and 569, the six magic-wall layouts at 622, 767, 912, 1045, 1166 and 1301, the layout selection at 1443, the lever test at 1604 and the wall-of-souls counter at 1638.

Level flags​

BitSet byCleared byMeaning (descriptive)
1A magic-wall layout that changes the wallsThe layout selection, after useTemporary: a basilisk is to be placed.
2–6The wall of souls, one bit per blow—Blows the wall has taken; the sixth breaks it.
7[01:30]—The challenger has appeared.
8Putting the Eye of Talon in the hole at [24:23]Taking it backThe hole holds the Eye.
9[11:25]—The statue remark has been made.
10[12:17]—The thief's illusion hint has been given.
12[17:21]—The basilisk at [17:20] has been placed.
13[25:22]—The remark about items has been made.
17[10:29]—Alain has spoken.
18Choosing a character for Alain—Alain has released his power.
19[13:26]—The magic-walls remark is no longer due.

No script of the level reads or writes a global flag.

Monster types​

The game stores no name for a monster type; the types are known by their number, the image of the record that defines them and their properties:10

Property (INF field)Sublevel 0, type 0 (bulette)Sublevel 0, type 1 (basilisk)Sublevel 1, type 0 (guardian)
Armour class (armor_class)02−1
Hit chance (hit_chance)121510
Level for saving throws (level)9610
Hit points (hit_points_dice)7d8 + 166d8 + 13d8 + 56
Melee attacks: count and damage3: 4d12, 3d18, 3d181: 1d103: 1d10, 1d12, 1d12
MonsterCapabilityFlagsMONSTER_CAP_LARGE, MONSTER_CAP_ALT_FRAME_TABLEMONSTER_CAP_PETRIFIESMONSTER_CAP_LARGE, MONSTER_CAP_ALT_FRAME_TABLE
MonsterImmunityFlagsnonenoneMONSTER_IMMUNE_BIT_0_UNKNOWN, MONSTER_IMMUNE_FEAR, MONSTER_IMMUNE_ELECTRICITY, MONSTER_IMMUNE_COLD, MONSTER_IMMUNE_NEEDS_PLUS_TWO
Type flags (type_flags)Hold Monster can affect itHold Monster can affect itnone
Experience (experience)4 00097511 000
Occupancy class (occupancy_class)222
Attack and step sounds (sound_1, sound_2)39, 3837, 3641, 40
Ranged attacksnonenonenone
Turn resistance, evasion (turn_resistance, damage_modifier)−1, 0−1, 0−1, 25
Decorations (decoration_indices)nonenonenone

Every type has occupancy class 2, so a monster of this level never shares a block, and a scripted placement succeeds only on a block that holds no monster and is not the party's.

Sources​

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

Footnotes​

  1. The reference LEVEL11.INF and LEVEL11.MAZ, read with INF.ksy and MAZ.ksy: the two sublevel records, steps_until_script 50 and 0, the script timer (target [01:00], interval 3) of both records, the monster graphics slots, the 16 initial monster records, the wall mappings and the 84 cell bindings. Event meanings follow BlockEventMask and LevelBlockStateFlags. ↩ ↩2 ↩3

  2. Reachability decoding of the reference LEVEL11.INF with script_decoder.py and the layouts of the virtual machine reference; wall references from LEVEL11.MAZ and the first record's wall mappings. Placement checks are those of the monster spawn routine; the fireball damage is given on Launch an object. ↩ ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10 ↩11

  3. The script timer loader, the script timers routine and the script timers; the decoded scripts at offsets 138–462 and 2597–2986. ↩

  4. The reference ITEM.DAT records 6 (lock picks, type 28), 73 and 76 (Mantis Idol and Eye of Talon, type 46, value 1), 77 and 388 (Crystal and Shell Keys, type 38, values 11 and 12), 384–386 (soul, heart and body gems, type 40, values 5, 7 and 6) and 392 (Eye of Talon at [05:30]); the decoded scripts at offsets 2481–2596, 3021–3146, 4542–4667 and 5535–5663. ↩ ↩2 ↩3

  5. The flying-object step and move all flying objects; the walls of the blocks named come from LEVEL11.MAZ. ↩

  6. The decoded scripts at offsets 2–137, 2074–2213 and 5670–5720. The cast routine records the last spell cast, its only writer, before starting the spell, which sends BLOCK_EVENT_SPELL_CAST to the party's block; definitions 12 and 44 are Dispel Magic in the spell tables. ↩

  7. The decoded script at offsets 2214–2338; the special-event handler and the overlay character pick. Texts 66–69 of the reference TEXT.DAT, summarized. ↩

  8. The decoded scripts at offsets 1638–1713, 4745–5220, 5255–5450 and 5501–5534; the item-holder count of SCRIPT_EXPR_PARTY_BLOCK_OR_ITEM_HOLDERS; texts 35 and 65 of the reference TEXT.DAT, summarized. The binding of [00:28] is written only by the cell-binding loader (see scripts and the game's state). ↩

  9. The decoded scripts at offsets 5319–5346 and 5416–5443; the two records of the reference LEVEL11.INF; the type loader, which writes only the type entries a record defines into the monster type properties, and the INF loader; the level flags are kept per level number. ↩

  10. The monster graphics slots and monster type entries of both records of the reference LEVEL11.INF (INF.ksy), copied into the monster type properties by the type loader. ↩