![]() |
Routines |
| Prev: 8E18 | Up: Map | Next: 8EBC |
|
Offer a hint for this room, or a general hint.
|
||||
| ActionHelp | 8E8D | CALL Parser_ValidateNoDirectObject | Return if the command names an object: the player is told to rephrase it. | |
| 8E90 | RET C | |||
| 8E91 | LD A,($6223) | Fetch the current room. | ||
| ActionHelp_Step1 | 8E94 | LD HL,$8EBC | Point at the rooms that have a hint of their own. | |
| 8E97 | LD BC,$0008 | 0008 rooms have a hint of their own. | ||
| 8E9A | CPIR | Find this room among the rooms that have a hint. | ||
| ActionHelp_Loop1 | 8E9C | JR NZ,ActionHelp_Step2 | This room has no hint of its own. | |
|
Print "Try rephrasing commands
and examining things.".
|
||||
| 8E9E | LD HL,$7794 | HL=Messaging_TryRephrasingCommandsAndExaminingThings. | ||
| 8EA1 | JR ActionHelp_Loop3 | Jump to ActionHelp_Loop3. | ||
|
Print "You don't really need it.".
|
||||
| ActionHelp_Loop2 | 8EA3 | LD HL,$77C2 | HL=Messaging_YouDonTReallyNeedIt. | |
| ActionHelp_Loop3 | 8EA6 | CALL PrintStringAndANewline | Call PrintStringAndANewline. | |
| 8EA9 | RET | Return. | ||
| ActionHelp_Step2 | 8EAA | CP $19 | The special hint applies only in The eastern end of a Long Cavern. | |
| 8EAC | JR NZ,ActionHelp_Step3 | |||
| 8EAE | LD A,$0B | Jump back to ActionHelp_Loop1 when Some explosives. (0B) is not here or being carried. | ||
| 8EB0 | CALL IsObjectInCurrentRoom | |||
| 8EB3 | JR NZ,ActionHelp_Loop1 | |||
|
Print "I wouldn't stand there
when this lot goes off.".
|
||||
| 8EB5 | LD HL,$7765 | HL=Messaging_IWouldnTStandThereWhenThisLotGoesOff. | ||
| 8EB8 | JR ActionHelp_Loop3 | Jump to ActionHelp_Loop3. | ||
| ActionHelp_Step3 | 8EBA | JR ActionHelp_Loop2 | Continue at ActionHelp_Loop2 to print the general hint. | |
|
View the equivalent code in;
|
||||
| Prev: 8E18 | Up: Map | Next: 8EBC |