Skip to main content

Level 8: reference tables

Level 8 · The levels · Level data (INF)

In brief​

The details of level 8: 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, which share the maze LEVEL8.MAZ, the silver graphics and sound, one door record and a step threshold of 0 (no step-triggered script). The first record is used until the party attacks the dying adventurer; see sublevel records. 22 monsters are present at the start.1

This page covers every reachable script of the reference file: 60 cell bindings, 63 script entry points including three shared subroutines, and 842 instructions. The decoding finds no unknown operand layout; 14 bytes in five places are never executed, four of them after a level load and one after a return. Message colors are palette colors (Print a message). Sound numbers select entries of the level's sound file, SILVER.ADL or SILVER.SND (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).
  • Script offsets count from the start of the INF script_data field (decoded payload offset 1298 in the reference file). Message numbers index the level's 51 strings, of which message 10 is empty, and text numbers TEXT.DAT; both are summarized, not quoted.
  • Speakers are chosen as on the level 4 page.
  • A mouth is a wall face with reference 56, a hungry mouth, or 57, a satisfied one. Both are INF_WALL_SPECIAL_DECORATION_SCRIPT walls (InfWallSpecialType), so activating them runs the block's script.
  • The mouth animation is the subroutine at offset 119: sound 56, then 14 views of the four regions of MMOUTH2, five ticks apart, in the dialogue window.
  • An empty hand means a held item of type 0 and value 0: the values of item entry 0, which a condition reads when no item is held (anomaly); an axe of value 0 matches as well.
  • A placement is a SCRIPT_SPAWN_MONSTER instruction, which can be refused by its checks. Snakes and gas spores have occupancy class 2: each is placed only in a block that holds no monster and is not the party's block.
  • Level flags are bits of this level's flag word (SCRIPT_FLAG_TARGET_LEVEL); their names below are descriptive.

Arrival and stairs​

Four stairs blocks use the stairs pattern described on the level 5 page: entering in the required direction prints a message (1 going down, 3 going up) and plays sound 79; another direction prints message 2, plays sound 29 and moves the party back one block. Items placed or flying into the block go to the destination.2

StairsRequired directionDestinationPushed back to
[29:29]0Level 7, sublevel 1, [26:29], facing 0[29:30]
[27:29]0This level, [22:29], facing 0[27:30]
[22:30]2This level, [27:30], facing 2[22:29]
[00:10]3Level 9, sublevel 0, [02:04], facing 3[01:10]

[27:29] and [22:30] are stairs that do not change level: their scripts move the party with SCRIPT_MOVE_PARTY_OR_OBJECT and set its direction, after the same message and sound as real stairs.

The warning mouth​

The east face of [22:25] is a mouth. Entering [23:25], in front of it, once (level flag 12) turns the party to face 3 and shows text 44, in which the mouth says that the last children of Darkmoon ignored its warnings and are now dust, with the mouth animation. Activating the mouth shows message 12, which sends the party to find the mouth's brothers and to beware their fangs, with the animation.2

Entering [22:28] once (level flag 31), with a CHARACTER_CLASS_THIEF in the party (CharacterClassMask), makes that character say that someone is whistling in the distance (message 4, sound 79).

The three passages​

Around [18:25], plaques (reference 40) number the passages: activating one shows message 14, 15 or 16, the numerals one, two and three. [17:26] shows 14 and [19:26] 16. [17:24] and [19:24] carry two plaques each, and the script picks the numeral from the party's facing: at [17:24], 14 facing 0 and 15 otherwise; at [19:24], 15 facing 1 and 16 otherwise. The plaque on the east face of [17:28] shows message 13, a riddle about which passage to take.2

Entering [16:25], a door block west of the passages, once (level flag 1) redraws the scene and shows message 17, an unseen voice reproaching the party, then launches a Fireball from [15:25] eastwards, at the party; it deals 1d6 × 9 on this level. The east face of [14:25], the hole it comes from, shows message 18.

The choice of doors​

In the south-west of the level, the corridor that comes down from [05:24] through [05:25] meets at [05:26] an east–west corridor, at whose ends two doors lead south: [03:27] in the west and [07:27] in the east. [05:25] carries reference 25 at the start, which the party crosses and monsters do not.3

  • Greeting. Entering [05:26] once (level flag 29) shows three regions of SOUT3 with sound 54 and texts 46, 47 and 94: a voice welcomes the party, tells it to choose the right door and threatens it with its master's wrath if it chooses wrongly.

  • West door. Entering [03:27] once (level flag 28) changes the four sides of [06:26], [05:25] and [05:26] to the solid reference 1 and plays sound 13: the way back is closed. A Bone Key lies at [02:29]. Taking it, while side 2 of [05:26] still holds 1, opens [05:25] and [05:26] again with sound 13, sets level flag 6 and shows message 21, in which an unseen voice approves of the party's wisdom, with sound 91. Entering [05:24] afterwards closes [05:25] behind the party, with sound 13.

  • East door. Entering [07:27] closes [05:25] and [05:26] with sound 13, at every entry. Entering [08:28], beyond it, opens the dialogue screen with sound 58 and punishes the party, at every entry:

    • if bit 29 of the global flags is set, because the party has met the punishing teleporter of level 7: texts 48 and 49, a parable of the stray lamb and a warning not to stray again, then 6d6 to every character;
    • otherwise: text 50, in which a voice calls the party a silly lamb that has not learned, then 3d6 to every character.

    Neither damage allows a saving throw. A Bone Key is then created at [26:24], quarter 1, and after a delay of 15 the party is moved there, turned to face 1, and a party member suggests resting (message 23, sound 79). [26:24] is the block in front of the Bone Key lock of [27:24].

Locks​

Three keyholes follow the lock pattern of level 7, with this level's messages: 5 the key does not fit, 32 the lock is picked, 6 the attempt fails, 7 a thief is needed, 8 a key is needed, 9 the door is already open.2

Keyhole (face)DoorKeyPickable
[27:24] (west)[26:23]Bone Key (8)no
[28:11] (west)[27:10]Dark Moon Key (4)no
[21:09] (south)[20:10]Dark Moon Key (4)yes

A successful pick at [21:09] also deletes every key lying at [30:00], a closed block where no item lies. Two snakes always leave a Dark Moon Key when they die: the one at [05:23] at the start and the one placed at [14:01] by the ambush of [16:03].

The snake spawner​

Entering [12:21] sets level flag 4. From then on, each time record 0's second timer fires, every 20 × 18 = 360 ticks (about 20 seconds), the script of [12:23] changes the four sides of [12:23] to WALL_REFERENCE_TELEPORTER (SpecialWallReference), places a snake of type 1 there, redraws the scene and clears the sides again: a snake appears in a flash of sparkles whenever [12:23] is empty and the party is not on it. Two portions of rotten food lie at [12:23] at the start.2

The singing mouth​

The south face of [18:20] is a mouth, satisfied (reference 57) at the start. Entering [18:21], in front of it, once (level flag 13) turns the party to face 0 and shows text 45: the mouth sings praise when its brothers have fed and breathes pain when they hunger. The same script sets level flag 3.4

Record 0's first timer sends BLOCK_EVENT_TIMER to [30:00], a closed block, every 3 × 18 = 54 ticks, about 3 seconds. While the party stands on [18:21], flag 3 is set and flag 2 is clear, the script opens the mouth (reference 56), redraws the scene, launches a Fireball from [18:20] southwards, at the party, and closes the mouth again.

Activating the mouth shows, with the animation, message 19 while flag 2 is clear: the way will open when all its brothers sing. Message 20, which says that all the songs have been sung, is shown only when flag 2 is set.

The singing mouth never stops breathing fire. Level flag 2 is tested by the timer script of [30:00] and by the mouth of [18:20], but no instruction of the level sets it: the test of the seven mouths, which opens the door once they are all fed, does not set it either. The mouth therefore keeps launching a Fireball at a party standing on [18:21] every three seconds while record 0 is current, and message 20 is never shown (inferred from the scripts; not observed in play). A faithful reimplementation leaves flag 2 clear.

The seven mouths​

Seven mouths, hungry (reference 56) at the start, each ask for an item. Entering the block in front of a mouth once (one level flag each) turns the party towards it and recites its riddle with the mouth animation. Activating the mouth then reacts to the held item:5

  • An empty hand: the riddle again.
  • The item asked for: it is deleted, the mouth thanks the party (one message each, with a sound), its face becomes 57 and the test of the seven mouths runs.
  • Any other item: sound 52 and a refusal.

A satisfied mouth shows message 35, a description of the carving.

Mouth (face)Riddle fromFlagTextAsks forThanks (sound)Refusal
[18:06] (south)[18:07]1454ITEM_TYPE_RATIONS with value −1: rotten food33 (65)34
[18:14] (north)[18:13]1555Five rocks, ITEM_TYPE_ROCK36 (64)37
[14:07] (south)[14:08]1656ITEM_TYPE_QUEST_ITEM with value 1: the Mantis Idol or the Eye of Talon38–40 (9)41
[14:13] (north)[14:12]1760ITEM_TYPE_GEM with value 1: a Red Gem42 (66)41
[10:14] (north)[10:13]1957An item whose unidentified name contains hunger or leech, in any case44 (67)41
[06:07] (south)[06:08]2058ITEM_TYPE_POTION45 (64)46
[06:13] (north)[06:12]2159ITEM_TYPE_MAGE_SCROLL, ITEM_TYPE_CLERIC_SCROLL or item type 36 (parchments)47 (65)48

Item types are ItemType values. In the reference ITEM.DAT, the items named after hunger and leech are a long sword lying on level 7 and a polearm lying on this level at [10:15]; the Mantis Idol lies on level 7, a Red Gem at [01:21], and the rotten food at [12:23].

  • Rocks. Each rock given to [18:14] is deleted, sound 9 plays and a new rock is created at [30:03], a closed block. When [30:03] holds more than four rocks, the mouth thanks the party and is satisfied; until then, nothing else happens.
  • The Mantis Idol mouth. [14:07] answers with three messages and two pauses, and also opens the door of [02:21], behind which the Red Gem lies.
  • The test of the seven mouths (offset 40) checks that the seven faces hold 57; if so, a party member says that the door at the end of the hall has opened (message 0, sound 79), and the door of [05:10] opens.
  • After a refusal. The scripts of [18:06] and [18:14] stop after the refusal. The five others go on and also show message 35, the description of a satisfied mouth.
  • The potion niche. The niche of [03:02] holds a potion at the start. The script of [06:07] continues after message 35 — after a refusal, or when the mouth is already satisfied —: if the niche holds no item of ITEM_TYPE_POTION and level flag 23 is clear, it sets the flag and puts a copy of that potion in the niche, once.

The rock niche. An item put into the niche on the north face of [21:19] is turned into a rock: all the items of [21:19] are moved to the closed block [22:19], then those of ITEM_TYPE_ROCK, ITEM_TYPE_QUEST_ITEM, ITEM_TYPE_KEY, ITEM_TYPE_SPELLBOOK and ITEM_TYPE_HOLY_SYMBOL are moved back; if anything is left in [22:19], it is all deleted and one rock is created in the niche. The plaque on the north face of [20:19] shows message 24, a maxim about greed.

The dying adventurer​

In the middle of the level, a corridor leads west through the open door of [15:14] to [12:14]. Entering [14:14] once (level flag 7) shows message 25: a voice begs the party to turn back, for this is a trap.6

Entering [12:14] while level flag 27 is clear turns the party to face 2 and shows the lower-right region of SOUT2, with sound 59. The first time, a three-answer question, text 51, in which a dying adventurer says that he was left to die and warns the party (messages 26–28: inquire, kill, leave):

  • Kill (answer 2): see the switch below.
  • Leave (answer 3): the farewell subroutine (offset 2) sets level flag 8, turns the party to face 1, closes the dialogue screen and walks the party east to [13:14], [14:14] and [15:14], redrawing the scene and waiting 15 ticks between steps.
  • Inquire (answer 1): a second question, text 52, in which he says that he failed the test of the cloth and waits for the serpents, with two answers (messages 27 and 28): kill changes the four sides of [12:15] to reference 35, then makes the switch; leave runs the farewell.

After a farewell (flag 8 set), the question is text 53, in which he asks the party to leave him and go on, with the same two answers.

The switch. Each kill branch (the one of the first question also plays sound 2) sets level flag 27, closes the door of [15:14] with SCRIPT_CLOSE_DOOR, moves the monster of [11:17], a closed block, to [12:15], south of the party, with SCRIPT_MOVE_MONSTERS, and loads level 8, sublevel 1, at [12:14] facing 2. That monster is of type 0, placed at the start: in record 1 it is the cleric, and he attacks the party, which the closed door keeps in. Inferred from the code: as a monster placed with record 0, he has the hit points of a snake of type 0 (4d8 + 2) and no ranged attack left.

Entering [12:15] once (level flag 30) plays sound 16 there and changes its four sides to reference 36. A thief remarks that the trigger beneath the party broke (message 29); without a thief, a party member says that something metallic broke (message 30); sound 79.

The hidden snakes​

[10:12] lies between two solid blocks, [09:12] and [11:12]. Entering it while side 3 of [09:12] is not 0 plays sound 40, then, with a probability of 10 in 100 and while level flag 24 is clear, a party member says that something moves behind the wall (message 49); otherwise, with a new probability of 10 in 100, a CHARACTER_CLASS_FIGHTER offers to tear the place down (message 50). Both remarks play sound 79.7

Using a weapon (an item of kind ITEM_KIND_MELEE, ItemKind) in front of [09:12] while level flag 10 is clear:

  1. with a CHARACTER_CLASS_MAGE in the party, the mage says that the wall was an illusion but the monsters are not (message 43, sound 79) and flag 10 is set;
  2. the four sides of [09:12], [11:12] and [12:12] become 0;
  3. snakes of type 3 are placed at [08:12] facing 1, [11:12] facing 2 and [10:12] facing 3; the placement on the party's block is refused;
  4. a roll of 1 on 1d4 creates a scroll with value 26 at [09:12], quarter 2, which casts Disintegrate (mage scroll); otherwise a two-handed sword with value 3 and ITEM_RUNTIME_MAGICAL (ItemRuntimeFlags).

The illusory wall shares its flag with an ambush, and sets it only with a mage. Level flag 10 guards both this script and the ambush of [21:02], which sets it. Once the party has entered [21:02], the script of [09:12] never runs its effects, and the walls of [09:12], [11:12] and [12:12] stay. Conversely, a mage's remark at [09:12] prevents the ambush. Without a mage, nothing sets the flag at [09:12]: each further use of a weapon there places snakes again and creates another scroll or sword, until the party enters [21:02] (inferred from the script; not observed in play). A faithful reimplementation keeps the single shared flag.

The remark of [10:12] is never limited to once. Its condition includes level flag 24, which no instruction of the level sets, so the remark can recur at every entry while the wall stands. A faithful reimplementation leaves flag 24 clear.

Ambushes and tricks​

EnteringLevel flagMonsters placed
[16:03]9A snake of type 3 at [14:01] facing 2, always leaving a Dark Moon Key; a gas spore of type 5 at [12:00] facing 2, in MONSTER_MODE_WAIT
[21:02]10A snake of type 2 at [17:00] facing 1, in MONSTER_MODE_WAIT
[25:20] or [25:17]5Gas spores of type 4 at [24:18] and [26:18] and of type 5 at [24:19] and [26:19], facing the corridor between them

The others pursue the party (MONSTER_MODE_PURSUE). The two ambush blocks of the gas spores share one flag, so the spores are placed once.2

  • Spinner. Entering [12:04] turns the party around with SCRIPT_CHANGE_DIRECTION (adjustment 2), and a party member says that they feel dizzy (message 31, sound 79), at every entry.
  • Shortcut. While the lever on the south face of [20:04] is in its first position (reference 30), entering [16:05] moves the party to [20:05] at once. Activating the lever plays sound 7 at [20:05]; in its other position the shortcut stops.
  • Hidden lever. The lever on the west face of [07:16] removes the four walls of [07:16], with sound 13.

Dran Draggore​

The door of [05:10], west of the seven mouths, opens when they are all fed. Beyond it, entering [03:10] once (level flag 22) turns the party to face 3 and opens a dialogue with sound 55 and the regions of DRANSL2 shown in turn: Dran Draggore welcomes the party (text 95), introduces himself as high priest and overlord and complains of the party's deeds (text 96), says that he has sealed the door behind it (text 97) and bids it stay forever (text 98). The script then sets level flag 18, changes the south face of [10:06] to 56, a hungry mouth, and closes the door of [05:10].8

West of the door, only [01:10] to [04:10] and the stairs up to level 9 at [00:10] remain in reach (inferred from the map), and arriving from level 9 places the party at [01:10]. The door's reference, 8, belongs to the doors without a switch.

The way back east leads through other levels. The stairs at [00:10] go up to level 9, whose only other exit, the pedestal, brings the party to level 5 at [14:11]. From there the stairs at [14:06] lead to level 7, and its stairs at [26:30] to [29:30] of this level, east of the door (inferred from the maps). No other script of the game brings the party to this level, and nobody can force the door open: a click on it only shows "No one is able to pry this door open.". The doors of [26:23] and [20:10] on the way have no switch, and no script closes them, so they stay open once their locks have been opened.

East of the door, entering [10:07] while flag 18 is set clears it, turns the party to face 0 and shows text 122, in which the eighth mouth says that it will reopen the door that Dran closed; the mouth's face becomes 57 and the door of [05:10] opens. Activating that mouth, at [10:06], only shows message 35, whatever its state.

Sublevel records​

The two records name the same files and differ in their monsters, wall mappings, decorations and timers:1

Part of the recordRecord 0Record 1
Monster imagesfsnake (bank 0), gasspore (bank 1)cleric1 (bank 0), with CLERIC1.DCR; no bank 1
Monster types0 to 50
Wall mappings336: references 35, 36, 41, 53, 54 and 55, as in record 0
Decoration resourcessilver1, silver2silver1
Script timers[30:00], interval 3; [12:23], interval 20none

Both ways into the level, from level 7 and from level 9, select record 0; a saved game restores the record that was current. Only the dying adventurer's script selects record 1, with three instructions that load level 8, sublevel 1, at [12:14] facing 2; it then sets level flag 27, so this happens once. Record 1 stays current until the party leaves the level.6

Changing record is an ordinary level change: the walls, monster slots and temporary walls carry over, and the scripts and bindings are the same; see sublevels. The switch therefore changes:

  • Timers. The fire of the singing mouth and the snakes of [12:23] stop until the party comes back.
  • Walls. Record 1 maps only six references. The 27 others keep the mappings loaded with record 0 just before, so in ordinary play the walls keep their graphics and behave as before; they include reference 51, the stuck door of [12:20]. A game saved while record 1 is current comes back without them; see the anomaly of level 8 saved games.
  • Decorations. The kept references lose their decorations or show another reference's; see the anomaly below.
  • Monsters. The kept monsters now use record 1's type 0 and images. Monsters of type 0 take the cleric's properties; types 1 to 5, which record 1 does not define, keep record 0's properties. Every monster of bank 0, snakes of all four types, is drawn with cleric1. Bank 1 has no image any more: its shapes are released at the load, so the gas spores are not drawn one step ahead, and farther away they are drawn from released shapes (released shapes, anomaly). Hit points and ranged attacks left were set when each monster was placed and do not change.

Back on record 0, the same monsters return to record 0's types and images, and the walls to their decorations.

Anomaly

ANOMALY-157 — A change to record 1 breaks the decorations of the kept references. Reading a sublevel record releases the decoration shapes and restarts the level's decoration records at number 1, but only the references that the new record maps receive a new selector. The other references keep the selectors of the record before, which now name records that the new mappings may have overwritten and rectangles that may not be cut again.9

It happens when the dying adventurer's script selects record 1. Record 1's references 35, 36 and 41 fill records 1 to 6 and cut only their own seven rectangles. Selectors above 6, on the map those of references 40, 45, 47, 48, 56, 57 and 61, still name record 0's decorations, but none of their rectangles is cut again, so these walls lose their decorations (released shapes). Selectors 1 and 5, references 27 at [07:16] and 30 at [20:04], now name other decorations, those of references 35 and 41. The consequences are inferred from the loader and the files, not seen in play; they last until the party returns to record 0, whose load rebuilds every selector it maps.

A faithful reimplementation keeps the selectors of unmapped references across a change of record, and restarts the decoration records and releases the shapes at each record read.

Bindings​

Blocks whose flags are zero still receive the events that need no enabling bit: BLOCK_EVENT_WALL_DECORATION (activated walls) and the timer event (its target). Several blocks with the same purpose share a row; their scripts are listed in the same order as the positions.1

PositionsEnabled eventsScriptsPurpose
[29:29]BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_ITEM_PLACED, BLOCK_EVENT_FLYING_OBJECT471Stairs down to level 7
[27:29], [22:30]BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_ITEM_PLACED, BLOCK_EVENT_FLYING_OBJECT598, 726Stairs within the level
[00:10]BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_ITEM_PLACED, BLOCK_EVENT_FLYING_OBJECT4698Stairs up to level 9
[22:28]BLOCK_EVENT_PARTY_ENTER854The warning mouth, remark
[23:25]BLOCK_EVENT_PARTY_ENTER1010The warning mouth
[22:25]none (BLOCK_EVENT_WALL_DECORATION)1049The warning mouth
[17:28], [17:24], [17:26], [19:24], [19:26], [14:25]none (BLOCK_EVENT_WALL_DECORATION)1076, 1082, 1105, 1111, 1134, 1180The three passages, plaques
[16:25]BLOCK_EVENT_PARTY_ENTER1140The three passages, trap
[05:26], [03:27], [05:24], [07:27], [08:28]BLOCK_EVENT_PARTY_ENTER1364, 1474, 1576, 1599, 1614The choice of doors
[02:29]BLOCK_EVENT_ITEM_REMOVED1507The choice of doors, key
[27:24], [28:11], [21:09]none (BLOCK_EVENT_WALL_DECORATION)884, 2261, 2497Locks
[12:21]BLOCK_EVENT_PARTY_ENTER1323The snake spawner
[12:23]none (BLOCK_EVENT_TIMER)1327The snake spawner
[18:21]BLOCK_EVENT_PARTY_ENTER1186The singing mouth
[30:00]none (BLOCK_EVENT_TIMER)1231The singing mouth, fire
[18:20]none (BLOCK_EVENT_WALL_DECORATION)1280The singing mouth
[18:07], [18:13], [14:08], [14:12], [10:13], [06:08], [06:12]BLOCK_EVENT_PARTY_ENTER2658, 2834, 3027, 3225, 3593, 3783, 3983The seven mouths, riddles
[18:06], [18:14], [14:07], [14:13], [10:14], [06:07], [06:13]none (BLOCK_EVENT_WALL_DECORATION)2701, 2877, 3070, 3268, 3636, 3826, 4026The seven mouths
[21:19]BLOCK_EVENT_ITEM_PLACED1862The seven mouths, rock niche
[20:19]none (BLOCK_EVENT_WALL_DECORATION)1945The seven mouths, plaque
[14:14], [12:14], [12:15]BLOCK_EVENT_PARTY_ENTER1951, 1982, 2190The dying adventurer
[10:12]BLOCK_EVENT_PARTY_ENTER4622The hidden snakes
[09:12]BLOCK_EVENT_ITEM_USED3454The hidden snakes
[16:03], [21:02], [25:20], [25:17]BLOCK_EVENT_PARTY_ENTER2424, 2468, 1714, 1788Ambushes
[12:04], [16:05]BLOCK_EVENT_PARTY_ENTER2411, 2392Tricks
[20:04], [07:16]none (BLOCK_EVENT_WALL_DECORATION)2387, 1704Tricks, levers
[03:10], [10:07]BLOCK_EVENT_PARTY_ENTER4165, 3400Dran Draggore
[10:06]none (BLOCK_EVENT_WALL_DECORATION)3448Dran Draggore, eighth mouth

Three subroutines are reached only by SCRIPT_CALL: the dying adventurer's farewell at offset 2, the test of the seven mouths at offset 40 and the mouth animation at offset 119.

Level flags​

BitSet byCleared byMeaning (descriptive)
1[16:25]—The trap of the passages has fired.
2——Tested by the singing mouth; never set (see the singing mouth).
3[18:21]—The singing mouth has spoken; its fire is armed.
4[12:21]—The snake spawner is active.
5[25:20], [25:17]—The gas spores have been placed.
6Taking the key at [02:29]—The west door was chosen and its test passed.
7[14:14]—The adventurer's warning has been heard.
8The farewell subroutine—The party has left the adventurer once.
9[16:03]—The [16:03] ambush has happened.
10[21:02]; [09:12] with a mage—Shared by two scripts (see the illusory wall).
12[23:25]—The warning mouth has spoken.
13[18:21]—The singing mouth's riddle has been heard.
14–17, 19–21The approach blocks of the seven mouths—Each mouth's riddle has been heard.
18[03:10][10:07]Dran has closed the door.
22[03:10]—Dran has appeared.
23The potion niche's refill—The potion has been replaced.
24——Tested at [10:12]; never set (see the remark).
27Attacking the adventurer—The level has switched to record 1.
28[03:27]—The west part has been closed.
29[05:26]—The greeting before the doors has been given.
30[12:15]—The trigger remark has been made.
31[22:28]—The whistle remark has been made.

The choice of doors reads bit 29 of the global flags, which level 7's punishing teleporter sets.

Monster types​

The game stores no name for a monster type; the types are known by their number, their image and their properties.10

Record 0 defines types 0 to 3, drawn with fsnake (bank 0), and types 4 and 5, drawn with gasspore (bank 1). None has a decoration, an immunity or a ranged attack; all have the type flag that lets Hold Monster affect them, occupancy class 2, turn resistance −1 and evasion 0.

TypeImageArmour classHit chanceLevelHit pointsMeleeCapabilitiesExperienceSounds
0fsnake51554d8 + 21, 1d3ALT_FRAME_TABLE, POISONS42041, 40
1fsnake51453d8 + 101, 1d3ALT_FRAME_TABLE, POISONS42041, 40
2fsnake51351d8 + 261, 1d3ALT_FRAME_TABLE, POST_MOVE_ACTION, POISONS42041, 40
3fsnake5125341, 1d3ALT_FRAME_TABLE, POISONS42041, 40
4gasspore915111, 1ALT_FRAME_TABLE, POISONS, DIES_ON_HIT12043, 42
5gasspore913111, 1ALT_FRAME_TABLE, POST_MOVE_ACTION, POISONS, DIES_ON_HIT12043, 42

The capabilities are MonsterCapabilityFlags without their MONSTER_CAP_ prefix; "Melee" gives the number of attacks and their damage.

Record 1 defines type 0 only, drawn with cleric1 and group 3 of CLERIC1.DCR: armour class 2, hit chance 13, level 8, 8d8 hit points, one melee attack of 2d8, no capability, immunity or type flag, 975 experience, occupancy class 0, attack and step sounds −1 and −1, turn resistance −1 and evasion 0. It has four ranged attacks, chosen at random from Hold Person, Flame Strike, Flame Strike and Hold Person.

The monsters present at the start:1

BlocksTypeMode (MonsterMode)
[27:08], [27:05], [26:01], [28:01], [25:02], [29:02]3MONSTER_MODE_WAIT
[22:24]0MONSTER_MODE_WAIT
[08:03], [06:02]2MONSTER_MODE_WAIT
[21:25]4MONSTER_MODE_WAIT
[04:02]5MONSTER_MODE_PURSUE
[11:17]0MONSTER_MODE_PURSUE, in a closed block
[06:23], [05:24]0MONSTER_MODE_WANDER_LEFT
[06:24]1MONSTER_MODE_WANDER_LEFT
[08:18], [05:23]2MONSTER_MODE_WANDER_LEFT; the one at [05:23] always leaves a Dark Moon Key
[28:19], [28:16]0MONSTER_MODE_WANDER_RIGHT; the one at [28:19] always leaves a ring
[03:17], [05:17]1MONSTER_MODE_PEACEFUL
[04:18]5MONSTER_MODE_PEACEFUL

Sources​

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

Footnotes​

  1. The reference LEVEL8.INF and LEVEL8.MAZ, read with INF.ksy and MAZ.ksy: the two sublevel records (names, door record, steps_until_script 0, monster graphics slots, monster types, wall mappings, decoration resources, script timers), the initial monster records and the cell bindings. The event meanings follow BlockEventMask and LevelBlockStateFlags. Item names come from the reference ITEM.DAT: templates 16 (rock), 21 (scroll), 24 (potion), 30 (Dark Moon Key), 45 (ring), 61 (two-handed sword) and 64 (Bone Key). ↩ ↩2 ↩3 ↩4

  2. Reachability decoding of the reference LEVEL8.INF with script_decoder.py and the layouts of the virtual machine reference; wall references from LEVEL8.MAZ and the level's wall mappings. The placement checks are those of the monster spawn routine; the scripted fireball's damage is given under SCRIPT_LAUNCH_OBJECT. ↩ ↩2 ↩3 ↩4 ↩5 ↩6 ↩7

  3. The decoded scripts at offsets 1364–1703, texts 46–50 and 94 of the reference TEXT.DAT, summarized; reference 25 of record 0 (mapped with flags 7); the Bone Key at [02:29] in the reference ITEM.DAT. Global bit 29 is set only by the reference LEVEL7.INF, at offset 5760. ↩

  4. The decoded scripts at offsets 1186–1322 and the timer entries of record 0 (script timers, timed block scripts). Bit 2 is read at offsets 1231 and 1288; a scan of the 842 decoded instructions finds no SCRIPT_SET_FLAGS of level bit 2, and SCRIPT_FLAG_TARGET_LEVEL addresses the current level's flags only (ScriptFlagTarget). ↩

  5. The decoded scripts at offsets 40–470, 1862–1950 and 2658–4164; texts 54–60 of the reference TEXT.DAT, summarized; references 56 and 57 of record 0; the name test is described under item properties in conditions. ↩

  6. The decoded scripts at offsets 2–39 and 1951–2260. Record selection by the sublevel reader; what a switch keeps follows from the level record writer, the map reader, the initial monster reader, the type loader, which writes only the listed types into the monster type properties, and the release of monster shapes, called for all 36 monster shapes at each load. Hit points and ranged attacks are set by the slot initialization. The timers are read by the script timer loader. Decorations: the release of the decoration shapes and the wall mapping, applied to both records and the reference SILVER.DEC (DEC.ksy). ↩ ↩2

  7. The decoded scripts at offsets 2468–2496, 3454–3592 and 4622–4697. Bit 10 is set at offsets 2478 and 3497 and read at 2468, 3454 and 3471; bit 24 is read at 4638 and set nowhere. The scroll's spell is the definition numbered by its value. ↩

  8. The decoded scripts at offsets 3400–3453 and 4165–4621, texts 95–98 and 122 of the reference TEXT.DAT, summarized; the door references with and without a switch are those of walls and doors. The reach west of the closed door comes from a walk over LEVEL8.MAZ from [01:10] with that door closed: 9 blocks. The way back: the decoded scripts of LEVEL9.INF (3084–3201), LEVEL5.INF (1955) and LEVEL7.INF (5995); every level change into this level is listed from the 16 reference files; the no-force door handler and the built-in wall interaction types. ↩

  9. Release the decoration shapes and assign a wall mapping, applied to the mappings of LEVEL8.INF and the records of SILVER.DEC. ↩

  10. The monster graphics slots and monster type entries of both records of the reference LEVEL8.INF (INF.ksy), copied into the monster type properties by the type loader; the ranged weapon list (mode 2, weapons 3, 7, 7, 3) is read as described under ranged attacks. ↩