Prev: F975 Up: Map Next: F9E2
F9B3: Action: Give
Action_Give F9B3 CALL Parser_ValidateTwoDirectObjects Call Parser_ValidateTwoDirectObjects.
F9B6 RET C Return if there are not two direct objects in the user input (so the command is malformed).
F9B7 LD HL,$A825 HL=UserInput_Token_2.
F9BA LD BC,$0009 BC=0009.
F9BD LD A,$6D Load token 6D "TO" into A.
F9BF CPIR Search for the matching token.
F9C1 JP NZ,Response_PleaseRephraseThat_Duplicate Jump to Response_PleaseRephraseThat_Duplicate if .
F9C4 LD HL,$F9D2 HL=Table_ActionGive_TokenGroup.
F9C7 LD DE,$F9DA DE=Table_ActionGive.
F9CA LD BC,$0004 BC=0004.
F9CD CALL ActionRouting Call ActionRouting.
No phrase tokens matched the user input tokens.
F9D0 JR ActionJoint_GiveThrow Jump to ActionJoint_GiveThrow.
The token table for the action "give":
Table_ActionGive_TokenGroup F9D2 DEFW PhraseTokens_MeatToBear Token group 01.
F9D4 DEFW PhraseTokens_MeatToWolves Token group 02.
F9D6 DEFW PhraseTokens_FoodToBear Token group 03.
F9D8 DEFW PhraseTokens_FoodToWolves Token group 04.
The actions table for "give":
Table_ActionGive F9DA DEFW Process_GiveFoodToBear Action routine 01.
F9DC DEFW Process_GiveFoodToWolves Action routine 02.
F9DE DEFW Process_GiveFoodToBear Action routine 03.
F9E0 DEFW Process_GiveFoodToWolves Action routine 04.
Prev: F975 Up: Map Next: F9E2