# Room 85: Dark Tower Stairs

This is the interior of a dark stone tower with a spiral staircase. The room serves as a vertical passage connecting different levels of a tower. The player can navigate the stairs but must be careful not to fall. The stairs lead to Room 90 (above) and Room 81 (below). When the player enters from above or starts fresh, they begin at the bottom. When entering from below, they start at the top with special climbing parameters.

## Look Description

"These stone tower steps could be very treacherous!"

## Interactions

| Status | Behavior Type | Command | Response |
|--------|--------------|---------|----------|
| TODO | Look | `look` / `look around` / `look room` | "These stone tower steps could be very treacherous!" |
| TODO | Look | `look tower` / `look castle` | "These stone tower steps could be very treacherous!" |
| TODO | Look | `look dirt` / `look down` | "There is no floor here; only stone steps." |
| TODO | Look | `look sky` / `look up` | "You look up, but see nothing special." |
| TODO | Look | `look stair` | "The stone stairs spiral up the dark tower." / "Watch your step on these narrow stairs!" |

## Scripts

| Status | Behavior Type | Name | Trigger | Behavior |
|--------|--------------|------|---------|----------|
| TODO | Interaction | fallStairs | Player steps on control area $0004 (hazardous stair area) | Plays falling animation, player slides down the stairs, screen shakes, player recovers at bottom and is returned to Room 90 |
| TODO | Background | myLooper | Continuous while player is in room | Adjusts player facing direction based on heading: north (2), south (3), east (0), west (1) |

## Technical Notes

- **Room Number**: 85
- **Picture**: 85
- **Region**: 604 (no region script found)
- **Exits**: Up→90 (control $0040), Down→81 (control $0020)
- **Music**: Fall music (sound #52)

### State Variables

| Variable | Values | Description |
|----------|--------|-------------|
| `global105` | 16 | Set during fall animation |
| `global127` | 1 | Set after fall sequence completes |
| `global169` | 0/1 | Checked during fall - displays additional element if true |

### Additional Technical Details

- Entry from Room 90 or game start: Player spawns at position (117, 169) at bottom of stairs
- Entry from Room 81: Player spawns at position (131, 35) at top of stairs, uses myLooper for climbing animation
- Player view changes to 4 (walking) when entering
- baseSetter ScriptID 0 1 is applied to customize ego movement
- Control areas:
  - $0040: Exit to Room 90 (top of stairs)
  - $0020: Exit to Room 81 (bottom of stairs)
  - $0004: Triggers fallStairs script (hazard)
- When player heading is between 305-45 degrees (north), loop is set to 2
- When player heading is between 135-225 degrees (south), loop is set to 3
- When player heading is between 46-134 degrees (east), loop is set to 0
- When player heading is between 226-304 degrees (west), loop is set to 1
- Fall sequence: player enters view 44 (falling), plays animation, then transitions to view 42 at bottom
