Prev: AED1 Up: Map Next: AEE0
AEDA: Is Object In Inventory?
Input
A Object ID
Output
F The zero flag is set if the item is in the players inventory
The ItemLocator routine returns with A containing the room ID of the requested object, 00 for when the item is disabled or 01 for the players inventory.
CheckObjectInInventory AEDA CALL ItemLocator Call ItemLocator.
AEDD CP $01 Compare A with 01 (inventory).
AEDF RET Return.
View the equivalent code in The Jewels Of Babylon.
Prev: AED1 Up: Map Next: AEE0