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
XXand the rowYY, counting from00; the block index used by the files and the instructions isYY × 32 + XX. - Directions and sides. Directions are 0 = north (decreasing row),
1 = east, 2 = south and 3 = west, and side
sof a block is its face turned towards directions(Direction). A party facing directiondsees sided + 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_datafield (decoded payload offset 1026 in the reference file). Message numbers index the level's 35 strings and text numbersTEXT.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
| Stairs | Way | Required direction | Destination | Pushed back to |
|---|---|---|---|---|
| [02:16] | down | 1 | Level 6, sublevel 0, [03:16], facing 1 | [01:16] |
| [02:22] | down | 1 | Level 6, sublevel 0, [03:22], facing 1 | [01:22] |
| [04:03] | up | 0 | [15:10], facing 0 | [04:04] |
| [15:11] | down | 2 | [04:04], facing 2 | [15:10] |
| [20:10] | up | 3 | [08:10], facing 3 | [21:10] |
| [09:10] | down | 1 | [21:10], facing 1 | [08:10] |
| [19:15] | up | 3 | [21:02], facing 3 | [20:15] |
| [22:02] | down | 1 | [20:15], facing 1 | [21:02] |
| [21:23] | up | 3 | [28:15], facing 3 | [22:23] |
| [28:15] | down | 1 | [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
| Entering | Moves the party to | While |
|---|---|---|
| [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
- 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). - Every other item of the niche goes to [02:00], another solid block.
- 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:
| Teleporter | Destination |
|---|---|
| [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
| Entering | Moves every item of | To |
|---|---|---|
| [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
- Without a Crimson Ring in hand (
ITEM_TYPE_RINGwith value 10), the carving shows message 12, an interesting carving. - With one, the subroutine at offset 407 deletes the ring, plays sound 72,
draws the four quarters of
CRIMRINGin turn withSCRIPT_DIALOGUE_BITMAP_KEEP_BACKGROUND, then shows message 4, the wall collapsing into a void, and asks whether to step in (messages 5 and 6). - Whatever the answer, a mage of type 2 carrying a Crimson Ring is placed at the centre of [00:11], facing 2.
- 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 from | Block whose script runs | Party 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
| Entering | Toggles | Then |
|---|---|---|
| [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_HOLDERScounts exactly one holder), the creature takes them: level flag 7 is set,SCRIPT_SPECIAL_EVENT_REMOVE_QUEST_ITEMSdeletes every quest item of value 5 and 6 from the party, a Coin (template 94,ITEM_TYPE_QUEST_ITEMwith 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
- 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.
- A Coin (
ITEM_TYPE_QUEST_ITEMwith value 0) plays sound 14, opens the door withSCRIPT_OPEN_DOORand deletes the coin. - With nothing in hand, the type read is 0, that of item entry 0: message 31, a coin slot.
- 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:
| Entering | Opens |
|---|---|
| [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
| Alcove | Closed by | Entered from | Hole | Message without a sphere |
|---|---|---|---|---|
| [13:02] | its side 2 | [13:03], facing 0 | side 2 of [13:01] | 18, warm |
| [18:06] | its side 3 | [17:06], facing 1 | side 3 of [19:06] | 19, lukewarm |
| [13:10] | its side 0 | [13:09], facing 2 | side 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 at | Condition | Effect (with sound 13 at the pillar) |
|---|---|---|
| 59 | [13:04] still stands | The 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 stands | The same for [16:06] and [18:06], the east alcove. |
| 61 | [13:08] still stands | The same for [13:08] and [13:10], the south alcove. |
| 61 | [13:08] already open | All 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
| Position | Enabled events | Script | Purpose |
|---|---|---|---|
| [00:10] | BLOCK_EVENT_ITEM_PLACED | 646 | The sphere niche |
| [01:18] | BLOCK_EVENT_PARTY_ENTER | 773 | Levers and silent moves |
| [06:15] | BLOCK_EVENT_PARTY_ENTER | 792 | Levers and silent moves |
| [03:18] | BLOCK_EVENT_PARTY_ENTER | 811 | Levers and silent moves |
| [03:15] | none (BLOCK_EVENT_WALL_DECORATION) | 830 | Levers and silent moves, lever |
| [09:16] | none (BLOCK_EVENT_WALL_DECORATION) | 835 | Levers and silent moves, lever |
| [00:14] | BLOCK_EVENT_PARTY_ENTER | 840 | Levers and silent moves |
| [02:16] | BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_ITEM_PLACED, BLOCK_EVENT_FLYING_OBJECT | 846 | Stairs, down to level 6 |
| [02:22] | BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_ITEM_PLACED, BLOCK_EVENT_FLYING_OBJECT | 973 | Stairs, down to level 6 |
| [06:23] | BLOCK_EVENT_PARTY_ENTER | 1100 | Mages and teleporters |
| [09:23] | BLOCK_EVENT_PARTY_ENTER | 1134 | Mages and teleporters |
| [03:23] | BLOCK_EVENT_PARTY_ENTER | 1138 | Mages and teleporters |
| [08:22] | BLOCK_EVENT_PARTY_ENTER | 1142 | Mages and teleporters |
| [04:24] | BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_ITEM_PLACED, BLOCK_EVENT_FLYING_OBJECT | 1146 | Mages and teleporters, teleporter |
| [03:25] | BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_ITEM_PLACED, BLOCK_EVENT_FLYING_OBJECT | 1180 | Mages and teleporters, teleporter |
| [04:26] | BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_ITEM_PLACED, BLOCK_EVENT_FLYING_OBJECT | 1214 | Mages and teleporters, teleporter |
| [08:24] | BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_ITEM_PLACED, BLOCK_EVENT_FLYING_OBJECT | 1248 | Mages and teleporters, teleporter |
| [08:26] | BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_ITEM_PLACED, BLOCK_EVENT_FLYING_OBJECT | 1282 | Mages and teleporters, teleporter |
| [09:25] | BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_ITEM_PLACED, BLOCK_EVENT_FLYING_OBJECT | 1316 | Mages and teleporters, single-use |
| [03:22] | none (BLOCK_EVENT_WALL_DECORATION) | 1366 | Banners |
| [04:20] | none (BLOCK_EVENT_WALL_DECORATION) | 1376 | Banners |
| [05:22] | none (BLOCK_EVENT_WALL_DECORATION) | 1386 | Banners |
| [06:20] | none (BLOCK_EVENT_WALL_DECORATION) | 1396 | Banners |
| [07:22] | none (BLOCK_EVENT_WALL_DECORATION) | 1406 | Banners |
| [08:20] | none (BLOCK_EVENT_WALL_DECORATION) | 1416 | Banners, hidden ring |
| [12:23] | BLOCK_EVENT_PARTY_ENTER | 1459 | The flying rings |
| [13:23] | BLOCK_EVENT_PARTY_ENTER | 1481 | The flying rings |
| [14:23] | BLOCK_EVENT_PARTY_ENTER | 1524 | The flying rings |
| [15:23] | BLOCK_EVENT_PARTY_ENTER | 1546 | The flying rings |
| [16:22] | none (BLOCK_EVENT_WALL_DECORATION) | 1568 | The flying rings, plaque |
| [10:25] | none (BLOCK_EVENT_WALL_DECORATION) | 1574 | The ring carvings |
| [11:25] | none (BLOCK_EVENT_WALL_DECORATION) | 1641 | The ring carvings |
| [18:23] | none (BLOCK_EVENT_WALL_DECORATION) | 1708 | The ring carvings |
| [17:23] | none (BLOCK_EVENT_WALL_DECORATION) | 1775 | The ring carvings |
| [26:22] | BLOCK_EVENT_ITEM_REMOVED | 1842 | Illusions and two quest items |
| [20:23] | none (BLOCK_EVENT_WALL_DECORATION) | 1906 | The ring carvings, plaque |
| [21:23] | BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_ITEM_PLACED, BLOCK_EVENT_FLYING_OBJECT | 1912 | Stairs, up |
| [15:11] | BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_ITEM_PLACED, BLOCK_EVENT_FLYING_OBJECT | 2040 | Stairs, down |
| [13:05] | BLOCK_EVENT_PARTY_ENTER | 2168 | The central hall, remark |
| [13:04] | none (BLOCK_EVENT_WALL_DECORATION) | 2200 | The central hall, plaque |
| [10:03] | none (BLOCK_EVENT_WALL_DECORATION) | 2206 | The central hall, disc |
| [10:09] | none (BLOCK_EVENT_WALL_DECORATION) | 2279 | The central hall, disc |
| [12:06] | none (BLOCK_EVENT_WALL_DECORATION) | 2352 | The central hall, hole to level 16 |
| [13:01] | none (BLOCK_EVENT_WALL_DECORATION) | 2370 | The central hall, sphere hole |
| [19:06] | none (BLOCK_EVENT_WALL_DECORATION) | 2405 | The central hall, sphere hole |
| [13:11] | none (BLOCK_EVENT_WALL_DECORATION) | 2459 | The central hall, sphere hole |
| [22:02] | BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_ITEM_PLACED, BLOCK_EVENT_FLYING_OBJECT | 2494 | Stairs, down |
| [22:04] | BLOCK_EVENT_PARTY_ENTER | 2622 | Illusions and two quest items |
| [25:10] | BLOCK_EVENT_PARTY_ENTER | 2645 | Levers and silent moves |
| [20:10] | BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_ITEM_PLACED, BLOCK_EVENT_FLYING_OBJECT | 2652 | Stairs, up |
| [09:10] | BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_ITEM_PLACED, BLOCK_EVENT_FLYING_OBJECT | 2780 | Stairs, down |
| [04:03] | BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_ITEM_PLACED, BLOCK_EVENT_FLYING_OBJECT | 2908 | Stairs, up |
| [06:07] | BLOCK_EVENT_PARTY_ENTER | 3036 | The coin doors, released mages |
| [04:09] | BLOCK_EVENT_PARTY_ENTER | 3042 | The coin doors, released mages |
| [02:07] | BLOCK_EVENT_PARTY_ENTER | 3048 | The coin doors, released mages |
| [04:05] | BLOCK_EVENT_PARTY_ENTER | 3059 | The coin doors, released mages |
| [26:15] | BLOCK_EVENT_PARTY_ENTER | 3075 | Shifting walls |
| [23:14] | BLOCK_EVENT_PARTY_ENTER | 3100 | Shifting walls |
| [23:17] | BLOCK_EVENT_PARTY_ENTER | 3125 | Shifting walls |
| [25:14] | BLOCK_EVENT_PARTY_ENTER | 3150 | Shifting walls |
| [25:17] | BLOCK_EVENT_PARTY_ENTER | 3175 | Shifting walls |
| [22:16] | BLOCK_EVENT_PARTY_ENTER | 3205 | Shifting walls |
| [28:15] | BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_ITEM_PLACED, BLOCK_EVENT_FLYING_OBJECT | 3230 | Stairs, down |
| [19:15] | BLOCK_EVENT_PARTY_ENTER, BLOCK_EVENT_ITEM_PLACED, BLOCK_EVENT_FLYING_OBJECT | 3358 | Stairs, up |
| [26:20] | BLOCK_EVENT_PARTY_ENTER | 3486 | Insal |
| [28:13] | BLOCK_EVENT_PARTY_ENTER | 3984 | The stone giant |
| [20:13] | none (BLOCK_EVENT_WALL_DECORATION) | 4130 | The stone giant, plaque |
| [21:12] | BLOCK_EVENT_PARTY_ENTER | 4136 | The trapped creature |
| [07:08] | none (BLOCK_EVENT_WALL_DECORATION) | 4291 | The coin doors, coin slot |
| [05:10] | none (BLOCK_EVENT_WALL_DECORATION) | 4415 | The 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
| Bit | Set by | Cleared by | Meaning (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. |
| 2 | The banner of [08:20] | — | That banner has dropped its ring. |
| 3 | The 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) | 0 | 1 | 2 | 3 | 4 | 5 |
|---|---|---|---|---|---|---|
Armour class (armor_class) | 7 | 7 | 2 | 2 | 1 | 1 |
Hit chance (hit_chance) | 16 | 16 | 19 | 10 | 10 | 10 |
Level for saving throws (level) | 5 | 5 | 9 | 9 | 11 | 12 |
Hit points (hit_points_dice) | 5d8 | 5d8 | 9d4 + 9 | 10d4 + 10 | 5d4 + 35 | 2d4 + 52 |
MonsterImmunityFlags | MONSTER_IMMUNE_FIRE | none | none | none | none | none |
Experience (experience) | 425 | 425 | 4 000 | 4 500 | 5 000 | 5 500 |
Attack and step sounds (sound_1, sound_2) | 37, 36 | 37, 36 | 39, 38 | 39, 38 | 39, 38 | 39, 38 |
| Ranged attacks: count, weapon order | Without limit | Without limit | 8, in turn | 10, in turn | 13, at random | 15, at random |
Decoration groups (decoration_indices) | none | none | 1 | 1 | none | none |
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
| Position | Slots | Type | Positions in the block | Facing | Items dropped on death |
|---|---|---|---|---|---|
| [00:11] | 1 | 2 | 4 | 2 | a Crimson Ring always; a Robe one time in ten |
| [16:05] | 2 | 0 | 4 | 2 | — |
| [12:05] | 3 | 0 | 4 | 2 | — |
| [14:09] | 4 | 0 | 4 | 2 | — |
| [27:04] | 5 | 0 | 4 | 3 | — |
| [24:06] | 6, 7 | 3 | 0, 3 | 1 | Bracers of Protection (slot 6) |
| [01:04] | 8, 9 | 5 | 0, 1 | 1 | Bracers of Protection (slot 8) |
| [06:04] | 10, 11 | 5 | 0, 1 | 2 | Ring of Protection (slot 10) |
| [01:09] | 12, 13 | 4 | 0, 1 | 1 | Bracers of Protection (slot 12) |
Sources
Locations refer to the game executable reference; the reference files are identified in the file inventory.