Prev: 44408 Up: Map Next: 44449
44409: Change Room
Used by the routines at MovePlayer, Action_GoToRoom and GameStart.
Input
A Destination room ID
ChangeRoom 44409 LD (44408),A Store the room ID in *TemporaryRoom.
44412 PUSH IX Stash IX on the stack.
44414 LD IX,48088 IX=Data_ArrivalScript.
44418 CALL Handler_RunScript Call Handler_RunScript.
44421 LD A,0 A=0.
44423 CALL TestFlag Call TestFlag.
44426 JR NZ,ChangeRoom_0 Do not enter the room when the player is dead.
44428 LD A,(44408) Restore the destination room ID from *TemporaryRoom.
44431 CALL MovePlayerToRoom Call MovePlayerToRoom.
44434 LD E,0 E=0.
44436 CALL Handler_RoomExits Call Handler_RoomExits.
44439 LD IX,48204 IX=Data_RoomSetupScript.
44443 CALL Handler_RunScript Call Handler_RunScript.
ChangeRoom_0 44446 POP IX Restore IX from the stack.
44448 RET Return.
Prev: 44408 Up: Map Next: 44449