![]()  | 
Routines | 
| Prev: F09C | Up: Map | Next: F14B | 
| 
 | 
||||
| Action_Inventory | F12E | CALL Parser_ValidateNoDirectObject | Call Parser_ValidateNoDirectObject. | |
| 
 
The "INVENTORY" command can only be called on its own.
 
 | 
||||
| F131 | RET C | Return if there's any token set in UserInput_Token_2. | ||
| F132 | LD A,($BC98) | Jump to Response_YoureNotCarryingAnything if *Count_InventoryItems is zero (the player isn't holding any items). | ||
| F135 | AND A | |||
| F136 | JP Z,Response_YoureNotCarryingAnything | |||
| 
 
Clear the screen and display the players inventory.
 
 | 
||||
| F139 | CALL ClearScreen | Call ClearScreen. | ||
| F13C | CALL SetScreenPosition | Call SetScreenPosition. | ||
| 
 
Print "You are carrying:-".
 
 | 
||||
| F13F | LD HL,$BF4F | HL=Messaging_YouAreCarrying. | ||
| F142 | CALL PrintStringAndNewline | Call PrintStringAndNewline. | ||
| F145 | LD A,$01 | Call PrintObjects with a room ID of 01 which is the players inventory. | ||
| F147 | CALL PrintObjects | |||
| F14A | RET | Return. | ||
| Prev: F09C | Up: Map | Next: F14B |