Prev: 62531 Up: Map Next: 62593
62557: Take: Parrot
Used by the routine at Validate_Take_Spear.
Was the player trying to take the parrot?
Validate_Take_Parrot 62557 LD HL,59912 Call MatchPhraseTokens with PhraseTokens_Parrot.
62560 CALL MatchPhraseTokens
62563 JR NZ,Take_Invalid Jump to Take_Invalid if the token isn't for the parrot.
Which parrot is present?
62565 LD HL,59580 Call CheckActiveScenicEvents with Data_ItemGroup_Parrot.
62568 CALL CheckActiveScenicEvents
62571 CALL Take_IsPlayerHoldingItem Call Take_IsPlayerHoldingItem.
62574 LD A,B Copy the object ID back into A.
62575 CP 40 Compare A with "A dead parrot".
62577 JP Z,TakeItem Jump to TakeItem if this is "A dead parrot".
Bad luck!
62580 LD HL,60887 Switch GameOver onto the stack so the next return actions a "game over".
62583 EX (SP),HL
Print "As you start to move, the parrot squawks... The pirate wakes and quickly shoots you.".
62584 LD HL,56268 HL=Messaging_ParrotSquawks.
62587 JP PrintStringAndNewline_Alias Jump to PrintStringAndNewline_Alias.
Nothing else is valid.
Take_Invalid 62590 JP Response_YouCant_Duplicate Jump to Response_YouCant_Duplicate.
Prev: 62531 Up: Map Next: 62593