Prev: $4440 Up: Map Next: $4468
$4454: Staircase endpoint data table 2
Used by the routine at $12B5 when the region identifier for the character's current location (C) is greater than or equal to the destination region identifier. The first staircase endpoint data table is at $4440.
The first entry is unused (C cannot be 0).
$4454 .BYTE $00
$4455 .BYTE $00
$4456 .BYTE $00,$00
The second entry is used when C=1, which means the character is on the middle floor, to the left of the Exam Room wall.
$4458 .BYTE $13 x-coordinate of the bottom of the stairs leading up to the head's study.
$4459 .BYTE $00 Direction indicator: face left.
$445A .WORD $13FA Guide the character up the staircase.
The third entry is used when C=2, which means the character is on the bottom floor.
$445C .BYTE $13 x-coordinate of the bottom of the stairs leading up to the staff room.
$445D .BYTE $00 Direction indicator: face left.
$445E .WORD $13FA Guide the character up the staircase.
The fourth entry is used when C=3, which means the character is on the middle floor, to the right of the Exam Room wall.
$4460 .BYTE $4C x-coordinate of the top of the stairs leading down from the Exam Room.
$4461 .BYTE $00 Direction indicator: face left.
$4462 .WORD $13F3 Guide the character down the staircase.
The fifth entry is used when C=4, which means the character is on the top floor, to the right of the Map Room wall.
$4464 .BYTE $4C x-coordinate of the top of the stairs leading down to the Exam Room.
$4465 .BYTE $00 Direction indicator: face left.
$4466 .WORD $13F3 Guide the character down the staircase.
Prev: $4440 Up: Map Next: $4468