![]()  | 
Routines | 
| Prev: 63485 | Up: Map | Next: 63553 | 
| 
 | 
||||
| Action_Inventory | 63524 | CALL Parser_ValidateNoDirectObject | Call Parser_ValidateNoDirectObject. | |
| 
 
The "INVENTORY" command can only be called on its own.
 
 | 
||||
| 63527 | RET C | Return if there's any token set in UserInput_Token_2. | ||
| 63528 | LD A,(42896) | Jump to Response_YoureNotCarryingAnything if *Count_InventoryItems is zero (the player isn't holding any items). | ||
| 63531 | AND A | |||
| 63532 | JP Z,Response_YoureNotCarryingAnything | |||
| 
 
Clear the screen and display the players inventory.
 
 | 
||||
| 63535 | CALL ClearScreen | Call ClearScreen. | ||
| 63538 | CALL SetScreenPosition | Call SetScreenPosition. | ||
| 
 
Print "You are carrying:-".
 
 | 
||||
| 63541 | LD HL,43579 | HL=Messaging_YouAreCarrying. | ||
| 63544 | CALL PrintStringAndNewline | Call PrintStringAndNewline. | ||
| 63547 | LD A,1 | Call PrintObjects with a room ID of 1 which is the players inventory. | ||
| 63549 | CALL PrintObjects | |||
| 63552 | RET | Return. | ||
| Prev: 63485 | Up: Map | Next: 63553 |