![]() |
Routines |
| Prev: 60959 | Up: Map | Next: 60989 |
|
Try to leave downwards.
|
||||
| Action_Down | 60963 | LD C,5 | Choose the down exit and join the movement routine. | |
|
This entry point is used by the routines at Action_North, Action_South, Action_East, Action_West and Action_Up.
|
||||
| Action_TryExit | 60965 | CALL Parser_ValidateNoDirectObject | Call Parser_ValidateNoDirectObject to reject the command when a direct object was typed. Return if the comparison failed. | |
| 60968 | RET C | |||
| 60969 | LD B,0 | Call GetRoomPointer to fetch this room's six exits. | ||
| 60971 | CALL GetRoomPointer | |||
| 60974 | ADD HL,BC | Jump to Action_Down_Next when that way out is closed. | ||
| 60975 | LD A,(HL) | |||
| 60976 | OR A | |||
| 60977 | JR Z,Action_Down_Next | |||
| 60979 | CALL Handler_InjuryCheck | Call Handler_InjuryCheck to enter that room, unless the player is too badly hurt. | ||
| 60982 | RET | Return. | ||
|
Reply with "You can't go in that direction.".
|
||||
| Action_Down_Next | 60983 | LD HL,48434 | Print "You can't go in that direction." and return to the game loop. | |
| 60986 | JP PrintResponse | |||
|
View the equivalent code in;
|
||||
| Prev: 60959 | Up: Map | Next: 60989 |