Prev: 43592 Up: Map Next: 43630
43615: 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 43615 JP NZ,RunScript_SkipAction_TwoBytes Jump to RunScript_SkipAction_TwoBytes if the condition failed.
Remove the item operand from the game.
43618 LD A,(IX+1) Fetch the item ID (the operand) from *IX+1 into A.
43621 CALL RunScript_ResolveMatchedItem Call RunScript_ResolveMatchedItem to substitute the matched item ID from ScriptMatchedItem when the operand is 255.
43624 CALL Handler_DestroyItemEvent Call Handler_DestroyItemEvent to destroy that item.
43627 JP RunScript_SkipAction_TwoBytes Jump to RunScript_SkipAction_TwoBytes.
Prev: 43592 Up: Map Next: 43630