Prev: 8E18 Up: Map Next: 8EBC
8E8D: Action: Help
Print the 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 08 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.
8E9E LD HL,$7794 Print "Try rephrasing commands and examining things." and start a new line.
8EA1 JR ActionHelp_Loop3
ActionHelp_Loop2 8EA3 LD HL,$77C2 Print "You don't really need it." and start a new line.
ActionHelp_Loop3 8EA6 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
8EB5 LD HL,$7765 Print "I wouldn't stand there when this lot goes off." and start a new line.
8EB8 JR ActionHelp_Loop3
ActionHelp_Step3 8EBA JR ActionHelp_Loop2 Continue at ActionHelp_Loop2 to print the general hint.
Prev: 8E18 Up: Map Next: 8EBC