Prev: F5F1 Up: Map Next: F68C
F665: Handler: Open The Chest
Used by the routine at Action_Open.
Open the chest when the player has already found it.
Handler_OpenTheChest F665 LD HL,$E814 Jump to Handler_OpenTheChest_Next unless the player named the witch.
F668 CALL Parser_AdvanceToSeparator
F66B JR NZ,Handler_OpenTheChest_Next
F66D LD A,$0B Jump to Response_YouCantItsLocked when object 0B (the chest) is here.
F66F CALL IsObjectInCurrentRoom
F672 JP Z,Response_YouCantItsLocked
F675 LD A,$0C Jump to Response_ItsAlreadyOpen if object 0C (the closed chest) is not here.
F677 CALL IsObjectInCurrentRoom
F67A JP NZ,Response_ItsAlreadyOpen
F67D LD BC,$0C0D Replace object 0C (the closed chest) with object 0D (the open chest).
F680 CALL TransformItem
Reply with "You open the chest,revealing the Crystals of Vulcan,within.".
F683 LD HL,$D608 Print "You open the chest,revealing the Crystals of Vulcan,within." and return to the game loop.
F686 JP PrintResponse
Handler_OpenTheChest_Next F689 JP Response_YouCant_GameLoop Tell the player the command is impossible.
Prev: F5F1 Up: Map Next: F68C