Prev: EE25 Up: Map Next: EE81
EE3D: Action: Examine
Describe the single object the player named.
Action_Examine EE3D CALL Parser_ValidateDirectObject Call Parser_ValidateDirectObject.
EE40 RET C Return if the direct object is malformed.
EE41 CP $01 Jump to Response_OneAtATimePlease if A is not equal to 01.
EE43 JP NZ,Response_OneAtATimePlease
Was the player trying to examine ... Mara's body?
EE46 LD HL,$E812 Call Parser_AdvanceToSeparator with E812.
EE49 CALL Parser_AdvanceToSeparator
EE4C JR NZ,Examine_CheckWitch Jump to Examine_CheckWitch if the token isn't for Mara's body.
Print "There are curious runic symbols along its entire length.".
EE4E LD HL,$DCB7 HL=Messaging_ThereAreCuriousRunicSymbols.
EE51 JP PrintResponse Jump to PrintResponse.
Was the player trying to examine ... the witch?
Examine_CheckWitch EE54 LD HL,$E814 Call Parser_AdvanceToSeparator with E814.
EE57 CALL Parser_AdvanceToSeparator
EE5A JR NZ,Examine_CheckWitchClosedChest Jump to Examine_CheckWitchClosedChest if the token isn't for the witch.
EE5C LD A,$0B Jump to Examine_CheckWitchClosedChest if ValidateItemPresent reports that "A chest" isn't in the current room.
EE5E CALL ValidateItemPresent
EE61 JR NZ,Examine_CheckWitchClosedChest
Print "It is locked.".
EE63 LD HL,$DCF0 HL=Messaging_ItIsLocked.
EE66 JP PrintResponse Jump to PrintResponse.
Was the player trying to examine ... the witch (closed chest)?
Examine_CheckWitchClosedChest EE69 LD HL,$E814 Call Parser_AdvanceToSeparator with E814.
EE6C CALL Parser_AdvanceToSeparator
EE6F JR NZ,Examine_Invalid Jump to Examine_Invalid if the token isn't for the witch.
EE71 LD A,$0C Jump to Examine_Invalid if ValidateItemPresent reports that "A closed chest" isn't in the current room.
EE73 CALL ValidateItemPresent
EE76 JR NZ,Examine_Invalid
Print "It is unlocked.".
EE78 LD HL,$DC7B HL=Messaging_ItIsUnlocked.
EE7B JP PrintResponse Jump to PrintResponse.
Nothing else is valid.
Examine_Invalid EE7E JP Response_IDontSeeThePoint Jump to Response_IDontSeeThePoint.
Prev: EE25 Up: Map Next: EE81