Skip to main content

Level 15: reference tables

Level 15 · The levels · Level data (INF)

In brief​

The details of level 15: 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 LEVEL14.MAZ and the crimson graphics, has no step threshold (steps_until_script 0) and no script timer. Its two monster graphics resources are hellhnd and mage, the second with its decoration file MAGE.DCR. Thirteen monsters are present at the start; see monster types. Sound numbers select entries of the level's sound file, CRIMSON1.ADL or CRIMSON1.SND (see the sound-effect table).1

This page covers every reachable script of the reference file: 70 cell bindings, 74 script entry points including four shared subroutines, and 717 instructions. The decoding finds no unknown operand layout; 7 bytes in three 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 party facing direction d sees side d + 2 (modulo 4) of the block ahead: for example, from [10:04] facing 0 it sees side 2 of [10:03].
  • Script offsets count from the start of the INF script_data field (decoded payload offset 1026 in the reference file). Message numbers index the level's 35 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 a monster goes through the checks of SCRIPT_SPAWN_MONSTER. Every monster type of this level has occupancy class 1, so a placement succeeds only on a block that holds no monster and is not the party's block. When all 30 monster slots are alive, a placement replaces the living monster farthest from the party.

Stairs​

Ten stair blocks share the pattern of the level 5 stairs: entering in the required direction prints a message (14 up, 7 down), plays sound 79 and takes the party on; entering in another direction prints message 8, plays sound 29 and moves the party back one block against the required direction. Items placed or flying into a stair block go to the destination. Two stairways lead to level 6 with SCRIPT_LOAD_LEVEL_OR_MONSTERS; the eight others stay on this level: they move the party with SCRIPT_MOVE_PARTY_OR_OBJECT and then set its direction with SCRIPT_SET.2

StairsWayRequired directionDestinationPushed back to
[02:16]down1Level 6, sublevel 0, [03:16], facing 1[01:16]
[02:22]down1Level 6, sublevel 0, [03:22], facing 1[01:22]
[04:03]up0[15:10], facing 0[04:04]
[15:11]down2[04:04], facing 2[15:10]
[20:10]up3[08:10], facing 3[21:10]
[09:10]down1[21:10], facing 1[08:10]
[19:15]up3[21:02], facing 3[20:15]
[22:02]down1[20:15], facing 1[21:02]
[21:23]up3[28:15], facing 3[22:23]
[28:15]down1[22:23], facing 1[27:15]

The eight stairs that stay on this level come in pairs, each pair joining two parts of the map that no corridor joins. The arrival blocks [01:16], [01:22], [04:04], [15:10], [08:10], [21:10], [21:02] and [20:15], the blocks in front of the stairways, have reference 25 on their four sides, which this level maps as an invisible face that the party and flying objects cross but monsters cannot: no monster can stand on them. [22:23] is one of the illusory blocks described below, and [27:15], in front of [28:15], has reference 25 too.1

The stairs up at [21:23] move the party onto [28:15], the stairway down of the same pair, instead of [27:15] in front of it; the seven other stairs that stay on this level put the party in front of the partner stairway. Moving the party runs the script of [28:15] for the arrival. The party still faces 3, while that stairway requires 1, so it shows message 8 with sound 29 and moves the party back to [27:15]; the script of [21:23] then sets the facing to 3. Every climb therefore ends at [27:15], facing 3, after message 14 and sound 79 followed by message 8 and sound 29. Items placed or thrown into [21:23] go to [28:15] itself, where they stay on the stairway block. A faithful reimplementation keeps the destination and the nested run of the arrival script.3

Levers and silent moves​

Three blocks of the western corridors move the party without a message or a sound while a lever is in its starting position, so that a corridor seems to loop back on itself:2

EnteringMoves the party toWhile
[01:18][01:14]side 1 of [03:15] holds reference 31 (the lever seen from [04:15] facing 3)
[06:15][06:12]side 3 of [09:16] holds reference 31 (the lever seen from [08:16] facing 1)
[03:18][03:12]the same lever of [09:16]

The level maps reference 31 to INF_WALL_SPECIAL_LEVER_INCREMENT and 32 to INF_WALL_SPECIAL_LEVER_DECREMENT (InfWallSpecialType), so activating a lever switches its face between the two, and the scripts of [03:15] and [09:16] only play sound 1 at the lever. Pulling a lever therefore stops the moves it controls; pulling it back restores them.

Entering [25:10], in the north-eastern part, always moves the party to [25:08], two blocks north beyond a solid block. Entering [00:14] sets the four sides of [00:12] to 0; they are already 0 in the reference map and no other script of the level changes them, so this has no visible effect.

The sphere niche​

The south face of [00:10] is a niche (reference 45, INF_WALL_SPECIAL_NICHE), seen from [00:11] facing 0. Putting an item into it sends BLOCK_EVENT_ITEM_PLACED to [00:10], whose script sorts the niche:4

  1. Items of seven types are set aside in [01:00], a solid block: rings (ITEM_TYPE_RING), keys (ITEM_TYPE_KEY), type 37 (the stone items of the portals), spell spheres (ITEM_TYPE_SPELL_SPHERE), spellbooks (ITEM_TYPE_SPELLBOOK), holy symbols (ITEM_TYPE_HOLY_SYMBOL) and type 28 (lock picks) (ItemType).
  2. Every other item of the niche goes to [02:00], another solid block.
  3. If [02:00] now holds any item, all its items are deleted, sound 25 plays, the set-aside items return to the niche and a Fire Sphere is created in the niche: template 48 (unidentified name Glass Sphere, type ITEM_TYPE_SPELL_SPHERE) with its value set to 13. Otherwise the set-aside items simply return.

Each item of another type put into the niche is therefore destroyed and replaced by one Fire Sphere, the item the central hall needs. Items of the seven protected types are never destroyed. Moved items keep their position, so they stay in the niche.

The mage of slot 1 starts beside the niche, at [00:11], and carries a Crimson Ring; every use of a ring at a carving places a new mage of the same type with a ring there.

Banners​

Six banners line the corridor of row 21: the south faces of [04:20], [06:20] and [08:20] and the north faces of [03:22], [05:22] and [07:22] (reference 63). Activating one shows message 9, a regal banner, with sound 79. The first activation of the banner of [08:20] instead plays sound 29, shows message 10, something falling from behind the banner, sets level flag 2 and creates a Crimson Ring (template 86, ITEM_TYPE_RING with value 10) on quarter 0 of [08:21], in front of it, with its flags set to ITEM_RUNTIME_MAGICAL, as in the template (ItemRuntimeFlags).2

Mages and teleporters​

Each time the party enters [06:23], the script sets global bit 19 and places two mages of type 3, at the centre of [07:24] and [05:24], facing 0. There is no flag: the room produces up to two mages at every entry, as long as their blocks are free.2

Six blocks south of the banners have WALL_REFERENCE_TELEPORTER on all four sides. Entering one plays sound 15 there, clears global bit 19 and moves the party; items placed or flying into one go to the same destination:

TeleporterDestination
[04:24][03:21]
[03:25][01:16], the arrival block of the first stairway from level 6
[04:26][08:25]
[08:24][04:23]
[08:26][04:25]
[09:25][04:25], once

[09:25] teleports only while its side 0 still holds the teleporter reference. After moving the party it sets its four sides to 0, so the block becomes an ordinary floor that leads east to the carving of [10:25]. Items reaching it before the party are teleported without changing it. [04:25] is where the level's Sticky Paper lies.

The flying rings​

Two Crimson Rings and a scroll lie in [12:23], at the start of a corridor that runs east to [15:23]. The four blocks of the corridor move the items ahead of the party:2

EnteringMoves every item ofTo
[12:23][12:23][13:23]
[13:23][13:23], then [12:23][14:23]
[14:23][14:23][15:23]
[15:23][15:23][12:23]

A block's items move only when it holds no item of type ITEM_TYPE_STICKY_PAPER, counting items in flight. The only Sticky Paper of the level lies at [04:25]; brought to a block of the corridor, it keeps the items of that block in place. A plaque on the south face of [16:22], at the end of the corridor, shows message 11, a ringmaster's boast that he flies.

The ring carvings​

Two pairs of blocks are separated by carved faces (reference 64): [10:25] and [11:25], whose carvings face each other across their common side, and [17:23] and [18:23] likewise. Their other sides hold reference 25, which the party crosses, so each block can be entered from its outer side; plain walls (reference 57) close them to the north and south. A carving stops the party; activating it with a Crimson Ring in hand moves the party into the block behind it. All four scripts work the same way:2

  1. Without a Crimson Ring in hand (ITEM_TYPE_RING with value 10), the carving shows message 12, an interesting carving.
  2. With one, the subroutine at offset 407 deletes the ring, plays sound 72, draws the four quarters of CRIMRING in turn with SCRIPT_DIALOGUE_BITMAP_KEEP_BACKGROUND, then shows message 4, the wall collapsing into a void, and asks whether to step in (messages 5 and 6).
  3. Whatever the answer, a mage of type 2 carrying a Crimson Ring is placed at the centre of [00:11], facing 2.
  4. The first answer moves the party into the block whose script runs, the one beyond the carving, and closes the dialogue screen. The second calls the subroutine at offset 534, which plays sound 62 and draws the four quarters in reverse order before closing the screen.
Carving activated fromBlock whose script runsParty moved to
[11:25], facing 3[10:25][10:25]
[10:25], facing 1[11:25][11:25]
[18:23], facing 3[17:23][17:23]
[17:23], facing 1[18:23][18:23]

Each crossing costs one ring, even when the party declines to step in. The mage placed at [00:11] replaces it, unless the placement is refused because a monster or the party is on that block, in which case no mage and no ring appear. The flying-ring corridor lies between the two pairs. A plaque on the west face of [20:23], beyond the second pair, shows message 13, about one ring that binds all.

Illusions and two quest items​

Eight blocks have WALL_REFERENCE_ILLUSION on all sides, which this level maps as faces the party and flying objects cross but monsters cannot: [22:05] and [24:09] in the north-east, and [23:22], [22:23], [23:23], [24:23], [25:23] and [23:24] in the south-east. They look like walls until True Seeing hides them. A Plate Mail lies in [23:22]; a Robe and a quest item of value 6 lie in [23:24]. On entering [22:04], a party member remarks once that many walls here may be illusions (message 21, sound 79, level flag 4).2

A quest item of value 5 (ITEM_TYPE_QUEST_ITEM) lies in [26:22]. Taking it from the floor sends BLOCK_EVENT_ITEM_REMOVED; the first time the item in hand is this one, the script shows the lower-right quarter of SOUT3, plays sound 63, waits 50 ticks and closes the screen (level flag 1). The two quest items are what the trapped creature wants.4

Shifting walls​

Six blocks of the south-eastern maze each toggle four other blocks between an open floor and solid rock when the party enters them, with SCRIPT_TOGGLE (SCRIPT_TOGGLE_BLOCK_WALLS, references 0 and 1): a block whose side 0 is 0 becomes solid, any other becomes open.2

EnteringTogglesThen
[26:15][25:15], [21:14], [24:17], [26:17]—
[23:14][23:13], [22:15], [24:17], [25:16]—
[23:17][22:15], [24:14], [22:17], [26:14]—
[25:14][24:14], [24:16], [22:17], [24:15]—
[25:17][26:16], [25:16], [21:14], [26:17]sets [24:17] open
[22:16][26:13], [23:13], [25:15], [24:16]—

At the start, [25:15], [23:13], [26:14], [24:16], [24:15] and [26:16] are open, and [21:14], [24:17], [26:17], [22:15], [25:16], [24:14], [22:17] and [26:13] are solid. The giant, the creature and Insal are reached through this maze, and its [28:15] stairs lead down to the south-eastern part.

The stone giant​

The first time the party enters [28:13], it is turned to face 1 and the dialogue screen shows the STONEGIA picture with sound 61 and text 116: a shrunken giant starts a rhyme about Dran and turns to stone before he can finish. The other three quarters of the picture follow, 20 ticks apart; after a last prompt, sound 5 plays, the four sides of [28:12], north of the party, become solid (reference 1), and the screen closes (level flag 6). A plaque on the east face of [20:13] (message 25) names a giant of the cold hillsides.5

The trapped creature​

Each time the party enters [21:12] before the trade below has happened (level flag 7), it is turned to face 3 and the dialogue screen shows the upper-right quarter of SOUT5 with sound 60 and text 118: a blinking creature, held by an unseen force, that seems able to reach the party. Two answers are offered, messages 26 and 27:5

  • Talk (answer 1): message 30, a small voice asking for coins.
  • Touch (answer 2): message 28, a tentacle searching the party. If one character carries the quest item of value 5, or one carries that of value 6 (SCRIPT_EXPR_PARTY_BLOCK_OR_ITEM_HOLDERS counts exactly one holder), the creature takes them: level flag 7 is set, SCRIPT_SPECIAL_EVENT_REMOVE_QUEST_ITEMS deletes every quest item of value 5 and 6 from the party, a Coin (template 94, ITEM_TYPE_QUEST_ITEM with its value set to 0) appears on quarter 0 of [21:12], message 29 warns the party to run lest it become a tree, the four sides of [20:12], where the creature stood, become solid and sound 5 plays.

The count looks at the 27 inventory slots of the present characters, so an item held by the mouse pointer does not count.

Insal​

[26:20] lies behind a temporary-wall face: side 0 of [26:19] holds WALL_REFERENCE_TEMPORARY_WALL, drawn like a Wall of Force, and no script of the level removes it. Unlike the walls of the spell, it has no temporary-wall entry, so walking into it does not remove it and the party cannot pass. Disintegrate, cast from [26:18] facing 2, clears the four sides of the block ahead when its front face is a temporary wall, and so opens the way.6

Entering [26:20] while SCRIPT_GLOBAL_FLAG_INSAL_JOINED and level flag 5 are clear turns the party to face 1 and opens the dialogue screen on the lower-left quarter of SOUT5, with sound 59 and text 117: Insal, trapped, says he cannot return what he took, but has kept a secret coin of Dran's for the party. The picture then alternates several times between the two lower quarters of SOUT5, and again after text 121, which tells that Insal tosses the coin through an unseen barrier and cannot be freed. Message 24 then announces that the wall in front changes. Level flag 5 is set, a Coin (template 94, ITEM_TYPE_QUEST_ITEM, value 0) appears on quarter 1 of [26:20], sound 5 plays and the four sides of [27:20], east of the party, become solid.5

The game sets SCRIPT_GLOBAL_FLAG_INSAL_JOINED when the player accepts Insal into the party (conversations with characters), and no script clears it, so the scene plays only for a party that never accepted him.

The coin doors​

Two doors without a switch (reference 8), [06:08] and [05:09], lead from the small area reached by the [20:10] stairs into the north-western rooms, which hold the [04:03] stairs up to the central hall. Each has a coin slot (reference 47): the south face of [07:08] for [06:08], seen from [07:09] facing 0, and the east face of [05:10] for [05:09], seen from [06:10] facing 3. Both scripts read the item in hand (item properties in conditions):2

  1. If the door is no longer closed (side 2 of [06:08], or side 1 of [05:09], is neither 8 nor 18), message 34: already unlocked.
  2. A Coin (ITEM_TYPE_QUEST_ITEM with value 0) plays sound 14, opens the door with SCRIPT_OPEN_DOOR and deletes the coin.
  3. With nothing in hand, the type read is 0, that of item entry 0: message 31, a coin slot.
  4. Any other item: message 32, the item does not fit, with sound 81.

The game creates only two Coins of value 0, Insal's and the creature's, both on this level. Each opens one door.

Both coin-slot scripts end with a branch for lock picks (type 28) used by a CHARACTER_CLASS_THIEF (CharacterClassMask), which would play sound 81 and show message 33, a failed attempt to pick the lock. The branch can never run: the test before it already ends the script for every item type above 0. Lock picks therefore get message 32 and sound 81, like any other item, and no character class is checked. A faithful reimplementation keeps the order of the tests.7

Behind the doors, three blocks, [02:05], [06:05] and [02:09], hold WALL_REFERENCE_CLEARED_ON_ENTRY on all sides, which keeps monsters out until the party walks into them. They are the only way out of the three small rooms where the mages of [01:04], [06:04] and [01:09] start. Entering four blocks clears them early, setting their four sides to 0, and so lets those mages out:

EnteringOpens
[06:07][06:05]
[04:09][02:09]
[02:07][02:05], [02:09]
[04:05][02:05], [02:09], [06:05]

The central hall​

The [04:03] stairs lead to [15:10], at the edge of a hall of rows 3 to 9. Three solid pillars, [13:04], [16:06] and [13:08], stand around a solid central block, [13:06]. Three alcoves, [13:02], [18:06] and [13:10], open off the hall; each is closed towards it by a temporary-wall face (reference 74) and holds a hole (reference 68) in its far wall:1

AlcoveClosed byEntered fromHoleMessage without a sphere
[13:02]its side 2[13:03], facing 0side 2 of [13:01]18, warm
[18:06]its side 3[17:06], facing 1side 3 of [19:06]19, lukewarm
[13:10]its side 0[13:09], facing 2side 0 of [13:11]20, too hot

As at Insal's room, walking into these faces does not remove them. They stop the party, monsters and flying objects until a disc combination or Disintegrate clears them.6

The discs​

Two discs, the south face of [10:03] (seen from [10:04] facing 0) and the north face of [10:09] (seen from [10:08] facing 2), each take four positions, references 59 to 62; both start at 59. Activating a disc moves it to the next position (59, 60, 61, 62, then 59 again) and calls the check at offset 2, which shows message 0, the disc spinning, plays sound 7 and compares the two discs:2

Both discs atConditionEffect (with sound 13 at the pillar)
59[13:04] still standsThe four sides of [13:04] and of [13:02] become 0: the pillar and the field of the north alcove vanish.
60[16:06] still standsThe same for [16:06] and [18:06], the east alcove.
61[13:08] still standsThe same for [13:08] and [13:10], the south alcove.
61[13:08] already openAll three pillars become solid again (reference 1) and the three fields return (reference 74 on the alcoves' faces).
other—Nothing.

The check runs only after a disc turns, so the matching start position opens nothing: a combination is opened by turning the discs back to it. Both discs at 59 or 60 again after their pair has opened do nothing, but both at 61 again close everything, including the alcoves opened by the other combinations; position 62 never opens anything. The pillar [13:04] carries a plaque on its south face (reference 40, message 16, naming the hall), and entering [13:05] while that face is there gives a one-time remark that the north wall feels warm (message 15, sound 79, level flag 0). Opening the pillar removes the plaque, and closing it again makes all four faces plain rock.

The spheres​

Activating a hole with an item of type ITEM_TYPE_SPELL_SPHERE in hand plays sound 7, deletes the item, sets the hole's face to reference 70, a face with another decoration, redraws the scene and calls the sphere check at offset 212. Without such an item the hole shows its message. Any item of that type is accepted, in any hole: a Fire Sphere, whatever its value, or magic dust. A filled hole can still be activated: another sphere in hand is then used up as well.2

The check at offset 212 acts when the three hole faces hold reference 70 and level flag 3 is clear. It sets the flag, turns the party round with two quarter turns to the right (SCRIPT_CHANGE_DIRECTION), each followed by a redraw and a short wait, and opens the dialogue screen: message 1 tells that the room comes alive and that bolts strike the central wall. After the player confirms, sound 62 plays and the four quarters of IMPLODE follow, 6 to 45 ticks apart; message 3 tells that light now shines from a hole in the ceiling where the wall stood. The screen closes and the four sides of [13:06] become 0.

The hole in the ceiling​

With [13:06] gone, the east face of [12:06], reference 71, faces the party standing in [13:06] and looking west. The level maps reference 71 to INF_WALL_SPECIAL_LEVER_INCREMENT: activating it turns the face into reference 72 and sends the activation to [12:06], whose script redraws the scene, plays sound 72, shows message 17, the party being sucked up through the hole, and loads level 16, sublevel 0, at [16:08], keeping the party's facing (SCRIPT_LEVEL_KEEP_DIRECTION, ScriptLevelDirection). See level 16.2

Bindings​

Blocks whose flags are zero still receive BLOCK_EVENT_WALL_DECORATION when one of their faces carries a wall with an interaction type; that is how the discs, holes, carvings, banners, plaques, levers and coin slots below are activated.1

PositionEnabled eventsScriptPurpose
[00:10]BLOCK_EVENT_ITEM_PLACED646The sphere niche
[01:18]BLOCK_EVENT_PARTY_ENTER773Levers and silent moves
[06:15]BLOCK_EVENT_PARTY_ENTER792Levers and silent moves
[03:18]BLOCK_EVENT_PARTY_ENTER811Levers and silent moves
[03:15]none (BLOCK_EVENT_WALL_DECORATION)830Levers and silent moves, lever
[09:16]none (BLOCK_EVENT_WALL_DECORATION)835Levers and silent moves, lever
[00:14]BLOCK_EVENT_PARTY_ENTER840Levers and silent moves
[02:16]BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_ITEM_PLACED, BLOCK_EVENT_FLYING_OBJECT846Stairs, down to level 6
[02:22]BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_ITEM_PLACED, BLOCK_EVENT_FLYING_OBJECT973Stairs, down to level 6
[06:23]BLOCK_EVENT_PARTY_ENTER1100Mages and teleporters
[09:23]BLOCK_EVENT_PARTY_ENTER1134Mages and teleporters
[03:23]BLOCK_EVENT_PARTY_ENTER1138Mages and teleporters
[08:22]BLOCK_EVENT_PARTY_ENTER1142Mages and teleporters
[04:24]BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_ITEM_PLACED, BLOCK_EVENT_FLYING_OBJECT1146Mages and teleporters, teleporter
[03:25]BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_ITEM_PLACED, BLOCK_EVENT_FLYING_OBJECT1180Mages and teleporters, teleporter
[04:26]BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_ITEM_PLACED, BLOCK_EVENT_FLYING_OBJECT1214Mages and teleporters, teleporter
[08:24]BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_ITEM_PLACED, BLOCK_EVENT_FLYING_OBJECT1248Mages and teleporters, teleporter
[08:26]BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_ITEM_PLACED, BLOCK_EVENT_FLYING_OBJECT1282Mages and teleporters, teleporter
[09:25]BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_ITEM_PLACED, BLOCK_EVENT_FLYING_OBJECT1316Mages and teleporters, single-use
[03:22]none (BLOCK_EVENT_WALL_DECORATION)1366Banners
[04:20]none (BLOCK_EVENT_WALL_DECORATION)1376Banners
[05:22]none (BLOCK_EVENT_WALL_DECORATION)1386Banners
[06:20]none (BLOCK_EVENT_WALL_DECORATION)1396Banners
[07:22]none (BLOCK_EVENT_WALL_DECORATION)1406Banners
[08:20]none (BLOCK_EVENT_WALL_DECORATION)1416Banners, hidden ring
[12:23]BLOCK_EVENT_PARTY_ENTER1459The flying rings
[13:23]BLOCK_EVENT_PARTY_ENTER1481The flying rings
[14:23]BLOCK_EVENT_PARTY_ENTER1524The flying rings
[15:23]BLOCK_EVENT_PARTY_ENTER1546The flying rings
[16:22]none (BLOCK_EVENT_WALL_DECORATION)1568The flying rings, plaque
[10:25]none (BLOCK_EVENT_WALL_DECORATION)1574The ring carvings
[11:25]none (BLOCK_EVENT_WALL_DECORATION)1641The ring carvings
[18:23]none (BLOCK_EVENT_WALL_DECORATION)1708The ring carvings
[17:23]none (BLOCK_EVENT_WALL_DECORATION)1775The ring carvings
[26:22]BLOCK_EVENT_ITEM_REMOVED1842Illusions and two quest items
[20:23]none (BLOCK_EVENT_WALL_DECORATION)1906The ring carvings, plaque
[21:23]BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_ITEM_PLACED, BLOCK_EVENT_FLYING_OBJECT1912Stairs, up
[15:11]BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_ITEM_PLACED, BLOCK_EVENT_FLYING_OBJECT2040Stairs, down
[13:05]BLOCK_EVENT_PARTY_ENTER2168The central hall, remark
[13:04]none (BLOCK_EVENT_WALL_DECORATION)2200The central hall, plaque
[10:03]none (BLOCK_EVENT_WALL_DECORATION)2206The central hall, disc
[10:09]none (BLOCK_EVENT_WALL_DECORATION)2279The central hall, disc
[12:06]none (BLOCK_EVENT_WALL_DECORATION)2352The central hall, hole to level 16
[13:01]none (BLOCK_EVENT_WALL_DECORATION)2370The central hall, sphere hole
[19:06]none (BLOCK_EVENT_WALL_DECORATION)2405The central hall, sphere hole
[13:11]none (BLOCK_EVENT_WALL_DECORATION)2459The central hall, sphere hole
[22:02]BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_ITEM_PLACED, BLOCK_EVENT_FLYING_OBJECT2494Stairs, down
[22:04]BLOCK_EVENT_PARTY_ENTER2622Illusions and two quest items
[25:10]BLOCK_EVENT_PARTY_ENTER2645Levers and silent moves
[20:10]BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_ITEM_PLACED, BLOCK_EVENT_FLYING_OBJECT2652Stairs, up
[09:10]BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_ITEM_PLACED, BLOCK_EVENT_FLYING_OBJECT2780Stairs, down
[04:03]BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_ITEM_PLACED, BLOCK_EVENT_FLYING_OBJECT2908Stairs, up
[06:07]BLOCK_EVENT_PARTY_ENTER3036The coin doors, released mages
[04:09]BLOCK_EVENT_PARTY_ENTER3042The coin doors, released mages
[02:07]BLOCK_EVENT_PARTY_ENTER3048The coin doors, released mages
[04:05]BLOCK_EVENT_PARTY_ENTER3059The coin doors, released mages
[26:15]BLOCK_EVENT_PARTY_ENTER3075Shifting walls
[23:14]BLOCK_EVENT_PARTY_ENTER3100Shifting walls
[23:17]BLOCK_EVENT_PARTY_ENTER3125Shifting walls
[25:14]BLOCK_EVENT_PARTY_ENTER3150Shifting walls
[25:17]BLOCK_EVENT_PARTY_ENTER3175Shifting walls
[22:16]BLOCK_EVENT_PARTY_ENTER3205Shifting walls
[28:15]BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_ITEM_PLACED, BLOCK_EVENT_FLYING_OBJECT3230Stairs, down
[19:15]BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_ITEM_PLACED, BLOCK_EVENT_FLYING_OBJECT3358Stairs, up
[26:20]BLOCK_EVENT_PARTY_ENTER3486Insal
[28:13]BLOCK_EVENT_PARTY_ENTER3984The stone giant
[20:13]none (BLOCK_EVENT_WALL_DECORATION)4130The stone giant, plaque
[21:12]BLOCK_EVENT_PARTY_ENTER4136The trapped creature
[07:08]none (BLOCK_EVENT_WALL_DECORATION)4291The coin doors, coin slot
[05:10]none (BLOCK_EVENT_WALL_DECORATION)4415The coin doors, coin slot

Four subroutines are reached only through SCRIPT_CALL: the disc check at offset 2, called by both discs; the sphere check at offset 212, called by the three holes; and the opening and closing of the void at offsets 407 and 534, called by the four carvings.

Level flags​

BitSet byCleared byMeaning (descriptive)
0[13:05]—The remark about the warm north wall has been made.
1[26:22]—The picture shown on taking the first quest item has run.
2The banner of [08:20]—That banner has dropped its ring.
3The sphere check—The three spheres are in place; the central wall is gone.
4[22:04]—The remark about illusory walls has been made.
5[26:20]—Insal's scene has run and his coin has been given.
6[28:13]—The giant's scene has run.
7[21:12]—The creature has taken the quest items.

The level also uses two global flags (ScriptGlobalFlags). Insal's scene tests SCRIPT_GLOBAL_FLAG_INSAL_JOINED, which the game sets when the player accepts Insal into the party. Bit 19 is set on entering [06:23] and cleared on entering [09:23], [03:23] and [08:22] and by every teleporter the party uses. It has no direct reader: no script tests it, and the executable's only other direct tests of the global flags are those of bits 20 and 31. The bit is otherwise saved and restored with the others.2

Monster types​

The level defines six monster types, 0 to 5, and two monster images: hellhnd (HELLHND.CPS, no decoration file) and mage (MAGE.CPS, with MAGE.DCR, which has one group). Every monster of type 0 is drawn with hellhnd and every monster of types 2 to 5 with mage; no monster of the level, placed at the start or by a script, uses type 1. The game stores no name for a monster type. All six types have one melee attack of 1d4 + 1, occupancy class 1, no type flag, turn resistance −1 and no evasion. Types 0 and 1 have MONSTER_CAP_ALT_FRAME_TABLE; types 2 to 5 add MONSTER_CAP_OPENS_DOORS (MonsterCapabilityFlags):8

Property (INF field)012345
Armour class (armor_class)772211
Hit chance (hit_chance)161619101010
Level for saving throws (level)55991112
Hit points (hit_points_dice)5d85d89d4 + 910d4 + 105d4 + 352d4 + 52
MonsterImmunityFlagsMONSTER_IMMUNE_FIREnonenonenonenonenone
Experience (experience)4254254 0004 5005 0005 500
Attack and step sounds (sound_1, sound_2)37, 3637, 3639, 3839, 3839, 3839, 38
Ranged attacks: count, weapon orderWithout limitWithout limit8, in turn10, in turn13, at random15, at random
Decoration groups (decoration_indices)nonenone11nonenone

The ranged weapons are monster spells. Types 0 and 1 launch flying-object type 9, which deals 18 points to each present character, halved by a saving throw. Types 2 and 3 cast Magic Missile, Fireball and Hold Person in that order; types 4 and 5 pick among Magic Missile, Hold Person, Lightning Bolt and Fireball. On this level, the caster level of these four spells is 9.8

Monsters of update unit 0 (the hounds) are updated every 25 ticks and those of unit 1 (the mages) every 15 ticks (monster update cadence). The monsters present at the start, all in MONSTER_MODE_PURSUE (MonsterMode):1

PositionSlotsTypePositions in the blockFacingItems dropped on death
[00:11]1242a Crimson Ring always; a Robe one time in ten
[16:05]2042—
[12:05]3042—
[14:09]4042—
[27:04]5043—
[24:06]6, 730, 31Bracers of Protection (slot 6)
[01:04]8, 950, 11Bracers of Protection (slot 8)
[06:04]10, 1150, 12Ring of Protection (slot 10)
[01:09]12, 1340, 11Bracers of Protection (slot 12)

Sources​

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

Footnotes​

  1. The reference LEVEL15.INF and LEVEL14.MAZ, read with INF.ksy and MAZ.ksy: the sublevel record (maze, graphics, sound name, steps_until_script 0, no timer, monster graphics slots hellhnd and mage), the monster timers (unit 0: 25, unit 1: 15), the initial monster records, the wall mappings (27 references from 25 to 74) and the cell bindings. The arrival positions come from the decoded LEVEL6.INF scripts at offsets 2127 and 2269. Event gating follows BlockEventMask and LevelBlockStateFlags; wall properties follow WallRuntimeFlags. ↩ ↩2 ↩3 ↩4 ↩5

  2. Reachability decoding of the reference LEVEL15.INF with script_decoder.py and the layouts of the virtual machine reference; wall references from LEVEL14.MAZ and the level's wall mappings. The global flags were searched in the decoded scripts of the 16 reference levels; their direct accesses in the executable are listed under the global script flags. ↩ ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10 ↩11 ↩12 ↩13 ↩14

  3. The decoded scripts at offsets 1912–2039 ([21:23]; the party move to [28:15] is at offset 1939) and 3230–3357 ([28:15]) of the reference LEVEL15.INF, compared with the seven other stairs that stay on the level (offsets 2040, 2494, 2652, 2780, 2908, 3230 and 3358); the walls of [27:15] and [28:15] in LEVEL14.MAZ. Script runs nest through the block event dispatcher called by move the party. ↩

  4. The decoded scripts at offsets 646–772 and 1842–1905; the reference ITEM.DAT records 2, 48, 53, 86, 89 and 94 (templates) and 424–431 (the items placed on this level); the item moves of Move the party, monsters or items. ↩ ↩2

  5. Texts 116, 117, 118 and 121 of the reference TEXT.DAT and the level's messages, summarized; the decoded scripts at offsets 3486–3983, 3984–4129 and 4136–4290. ↩ ↩2 ↩3

  6. The step test, which removes only the temporary walls recorded in its slots for the target block and otherwise keeps the face's properties; the temporary walls; the Disintegrate start. Reference 74 is mapped by LEVEL15.INF with no passage property. ↩ ↩2

  7. The decoded scripts at offsets 4291–4414 ([07:08]) and 4415–4538 ([05:10]) of the reference LEVEL15.INF: the test for an item type above 0 (offsets 4357 and 4481) ends the script before the lock-pick test (offsets 4377 and 4501). The tests are made by the expression evaluator. ↩

  8. The monster graphics slots and monster type entries of the reference LEVEL15.INF (INF.ksy), copied into the monster type properties by the type loader; the group count of the reference MAGE.DCR (DCR.ksy); the flying-object types of the magic flight properties. ↩ ↩2