Prev: 43245 Up: Map Next: 43277
43257: Condition: Phrase Matches
Succeeds when the player input matches the phrase at Table_PhrasePointers indexed by the operand.
Input
IX Pointer to the script entry (opcode, phrase index)
Output
F The zero flag is set when the phrase matches
The operand selects a phrase from Table_PhrasePointers.
Condition_PhraseMatches 43257 LD E,(IX+1) Fetch the phrase number (the operand) from *IX+1 into E.
43260 PUSH IX Stash IX on the stack.
43262 LD IX,47165 Point IX at the phrase-pointer table at Table_PhrasePointers.
43266 CALL GetTableEntry Call GetTableEntry to fetch the address of the phrase from the table into HL.
43269 CALL MatchPhraseTokens Call MatchPhraseTokens to match the player's command against that phrase.
43272 POP IX Restore the script pointer from the stack.
43274 JP RunScript_SkipCondition_TwoBytes Jump to RunScript_SkipCondition_TwoBytes.
Prev: 43245 Up: Map Next: 43277