Prev: 63517 Up: Map Next: 63593
63524: Action: Tie
Tie the rope to the rock above the volcano.
Action_Tie 63524 CALL Parser_ValidateInputTokens Return if the words after the verb are not valid for this command.
63527 RET C
63528 LD HL,59659 Jump to Action_Tie_YouCant unless the player named the demons.
63531 CALL Parser_AdvanceToSeparator
63534 JR NZ,Action_Tie_YouCant
63536 LD A,35 Jump to Action_Tie_Next if object 35 (the rope on the overhang) is not here.
63538 CALL IsObjectInCurrentRoom
63541 JR NZ,Action_Tie_Next
Reply with "The rope is already tied.".
63543 LD HL,58096 Print "The rope is already tied." and return to the game loop.
63546 JP PrintResponse
Action_Tie_Next 63549 LD A,(47771) Jump to Response_IDontSeeThePoint unless the player is in room 71 (The Top of the Volcano).
63552 CP 71
63554 JP NZ,Response_IDontSeeThePoint
63557 LD A,8 Jump to Action_Tie_DestroyRope if the player is not carrying object 8 (the rope).
63559 CALL IsObjectCarried
63562 JR NZ,Action_Tie_DestroyRope
63564 LD HL,47720 Count one fewer thing carried and put the rope down here.
63567 DEC (HL)
63568 LD A,8
63570 CALL Handler_UpdateItemForTheCurrentRoom
Action_Tie_DestroyRope 63573 LD A,8 Destroy object 8 (the rope).
63575 CALL Handler_DestroyItem
63578 LD BC,8739 Replace object 34 (the rock overhang) with object 35 (the rope on the overhang).
63581 CALL TransformItem
Reply with "O.K. The rope dangles down, into the volcano.".
63584 LD HL,58050 Print "O.K. The rope dangles down, into the volcano." and return to the game loop.
63587 JP PrintResponse
Action_Tie_YouCant 63590 JP Response_YouCant_GameLoop Tell the player the command is impossible.
Prev: 63517 Up: Map Next: 63593