Prev: AA48 Up: Map Next: AA6E
AA5F: Action: Destroy Item
Removes the item operand from the game.
Input
F The zero flag is set when the conditions hold
IX Pointer to the script entry
When the condition failed, skip this action.
Action_DestroyItem AA5F JP NZ,RunScript_SkipAction_TwoBytes Jump to RunScript_SkipAction_TwoBytes if the condition failed.
Remove the item operand from the game.
AA62 LD A,(IX+$01) Fetch the item ID (the operand) from *IX+01 into A.
AA65 CALL RunScript_ResolveMatchedItem Call RunScript_ResolveMatchedItem to substitute the matched item ID from ScriptMatchedItem when the operand is FF.
AA68 CALL Handler_DestroyItemEvent Call Handler_DestroyItemEvent to destroy that item.
AA6B JP RunScript_SkipAction_TwoBytes Jump to RunScript_SkipAction_TwoBytes.
Prev: AA48 Up: Map Next: AA6E