Prev: F79D Up: Map Next: F7EB
F7C2: Action: Touch
Touch the glowing rock and open the way east.
Action_Touch F7C2 CALL Parser_ValidateDirectObject Call Parser_ValidateDirectObject.
F7C5 RET C Return if the direct object is malformed.
Was the player trying to touch ... the glowing rock?
F7C6 LD HL,$E8F9 Call Parser_AdvanceToSeparator with E8F9.
F7C9 CALL Parser_AdvanceToSeparator
F7CC JR NZ,Touch_YouCant Jump to Touch_YouCant if the token isn't for the glowing rock.
F7CE LD A,$33 Jump to Response_ItHasNoApparentEffect if ValidateItemPresent reports that "A glowing rock" isn't in the current room.
F7D0 CALL ValidateItemPresent
F7D3 JP NZ,Response_ItHasNoApparentEffect
F7D6 LD A,($EAAA) Jump to Response_ItHasNoApparentEffect if *Exit_RockWallEast is not equal to 00.
F7D9 AND A
F7DA JP NZ,Response_ItHasNoApparentEffect
This action changes the map:
Open the way east.
F7DD LD A,$46 Write 46 to *Exit_RockWallEast to open up eastbound access to The Cavern of Silence from A Rock Wall.
F7DF LD ($EAAA),A
Print "As you touch the rock, a passage opens,leading east.".
F7E2 LD HL,$E1E7 HL=Messaging_AsYouTouchTheRock.
F7E5 JP PrintResponse Jump to PrintResponse.
Nothing else is valid.
Touch_YouCant F7E8 JP Response_ItHasNoApparentEffect Jump to Response_ItHasNoApparentEffect.
View the equivalent code in;
Prev: F79D Up: Map Next: F7EB