Files
kq4-decompile/rooms/kq4-080-lolottes-castle-entrance/kq4-080-lolottes-castle-entrance.md
2026-02-20 14:00:40 -08:00

3.2 KiB

Room 80: Lolotte's Castle Entrance

This is the exterior of Lolotte's dark castle, situated on a rocky ledge of a steep mountain. The player can see the castle, a stable, mountains, and a path leading down. There is a door that can be opened to enter the castle (leading to Room 92). Players must be careful near the cliff edge, as stepping too close will cause them to fall. There is also a hazard area that triggers a falling animation.

Look Description

"You are standing before Lolotte's dark castle on the edge of the rocky mountain. There is a small stable next to it."

Interactions

Status Behavior Type Command Response
TODO Look look room / look around / look "You are standing before Lolotte's dark castle on the edge of the rocky mountain. There is a small stable next to it."
TODO Look look boulder "Lolotte's sinister castle is situated on a rocky ledge of the steep craggy mountain. A small stable is located beside it."
TODO Look look castle "Lolotte's sinister castle is situated on a rocky ledge of the steep craggy mountain. A small stable is located beside it."
TODO Look look barn / look stable "The crude thatch-roofed stable is located near the dark castle, on the edge of a cliff."
TODO Look look cliff / look mountain "The mountains are rocky and steep. The castle perches precariously upon a large ledge."
TODO Look look path "The narrow path leads down the mountain."
TODO Look look door "The door has hideous carvings."
TODO Action open door (when close enough) Opens door, plays animation, enters Room 92
TODO Action open door (when not close enough) "You're not close enough."

Scripts

Status Behavior Type Name Trigger Behavior
TODO Interaction doDoor Player opens door Door opens with animation (603), plays door sound (300), then transports player to Room 92
TODO Background falling Player steps on control area $0004 Player plays falling animation (view 17, loop 3), falls toward bottom of screen, screen shakes, sets global127 = 1, music plays during fall

Technical Notes

  • Room Number: 80
  • Picture: 80
  • Exits:
    • West→79 (via control area $1000)
    • East/Cliff→94 (via control area $0010 - falls off cliff)
    • Through door→92 (via doDoor script)
  • Music: Falling music (sound #52)

State Variables

Variable Values Description
global101 0 Set to 0 in room init
global127 0, 1 Set to 1 when player completes falling animation

Additional Technical Details

  • Door prop (newProp) uses view 603 at position 288, 116
  • Door can only be opened when player is within distance 25 of the door
  • Entry positions vary by previous room:
    • From Room 79 or start: position 279, 166
    • From Room 92: position 266, 122
    • From Room 94: position 185, 134
  • Control areas:
    • $0010 - Cliff edge (triggers fall to Room 94)
    • $1000 - West exit to Room 79
    • $0004 - Falling hazard zone
  • When player falls, view changes to 17 (falling animation), steps change to 5,6, loop 3
  • Door sound uses sound 300