Prev: 43186 Up: Map Next: 43224
43215: Condition: Inventory Count Equals
Succeeds when Count_InventoryItems equals the operand.
Output
F The zero flag is set when the counts match
IX Pointer to the script entry
Does the player hold the given number of items?
Condition_InventoryCountEquals 43215 LD A,(41170) Fetch the inventory count from *Count_InventoryItems into A.
43218 CP (IX+1) Set the zero flag when it equals the operand.
43221 JP RunScript_SkipCondition_TwoBytes Jump to RunScript_SkipCondition_TwoBytes.
Prev: 43186 Up: Map Next: 43224