Prev: A8AB Up: Map Next: A8F6
A8D2: Gollum asks the player his riddle
One of Gollum's script routines. Only where the player is, and only if the player can be seen: the riddle NEW_GAME_CHOICES chose is said, and RIDDLE_ASKED set so that the answer is expected.
GOLLUM_ASKS A8D2 LD A,(GOLLUM_WHERE) Gollum not where the player is? Nothing
A8D5 LD HL,PLAYER_AT
A8D8 CP (HL)
A8D9 RET NZ
A8DA LD HL,PLAYER_FLAGS The player not to be seen? Nothing
A8DD BIT 7,(HL)
A8DF RET Z
A8E0 CALL FOR_REAL Ask the riddle
A8E3 LD HL,(RIDDLE)
A8E6 INC HL
A8E7 INC HL
A8E8 LD E,(HL)
A8E9 INC HL
A8EA LD D,(HL)
A8EB PUSH DE
A8EC POP HL
A8ED CALL SAYS
A8F0 LD A,$01 An answer is expected
A8F2 LD (RIDDLE_ASKED),A
A8F5 RET
Prev: A8AB Up: Map Next: A8F6