![]() |
Routines |
| Prev: 42540 | Up: Map | Next: 42555 |
|
Used by the routines at Condition_ItemIsCarried, Condition_ItemIsNotCarried, Handler_CanTakeItem and Handler_IsCarryingItem.
Checks if a given item is in the players inventory or not.
|
||||||||||||
|
The ItemLocator routine returns with A containing the room ID of the requested object, 0 for when the item is disabled or 1 for the players inventory.
|
||||||||||||
| CheckObjectInInventory | 42549 | CALL ItemLocator | Call ItemLocator. | |||||||||
| 42552 | CP 1 | Set the zero flag if that location is the inventory (1). | ||||||||||
| 42554 | RET | Return. | ||||||||||
|
View the equivalent code in;
|
||||||||||||
| Prev: 42540 | Up: Map | Next: 42555 |