![]()  | 
Routines | 
| Prev: 61596 | Up: Map | Next: 61771 | 
| 
 | 
||||
| Action_Inventory | 61742 | CALL Parser_ValidateNoDirectObject | Call Parser_ValidateNoDirectObject. | |
| 
 
The "INVENTORY" command can only be called on its own.
 
 | 
||||
| 61745 | RET C | Return if there's any token set in UserInput_Token_2. | ||
| 61746 | LD A,(48280) | Jump to Response_YoureNotCarryingAnything if *Count_InventoryItems is zero (the player isn't holding any items). | ||
| 61749 | AND A | |||
| 61750 | JP Z,Response_YoureNotCarryingAnything | |||
| 
 
Clear the screen and display the players inventory.
 
 | 
||||
| 61753 | CALL ClearScreen | Call ClearScreen. | ||
| 61756 | CALL SetScreenPosition | Call SetScreenPosition. | ||
| 
 
Print "You are carrying:-".
 
 | 
||||
| 61759 | LD HL,48975 | HL=Messaging_YouAreCarrying. | ||
| 61762 | CALL PrintStringAndNewline | Call PrintStringAndNewline. | ||
| 61765 | LD A,1 | Call PrintObjects with a room ID of 1 which is the players inventory. | ||
| 61767 | CALL PrintObjects | |||
| 61770 | RET | Return. | ||
| Prev: 61596 | Up: Map | Next: 61771 |