![]() |
Routines |
| Prev: EDC3 | Up: Map | Next: EE05 |
|
List everything the player is carrying.
|
||||
| Action_Inventory | EDE8 | CALL Parser_ValidateNoDirectObject | Call Parser_ValidateNoDirectObject. | |
|
The "INVENTORY" command can only be called on its own.
|
||||
| EDEB | RET C | Return if there's any token set in UserInput_SecondToken. | ||
| EDEC | LD A,($BA68) | Jump to Response_YoureNotCarryingAnything if *Count_InventoryItems is zero (the player isn't holding any items). | ||
| EDEF | AND A | |||
| EDF0 | JP Z,Response_YoureNotCarryingAnything | |||
|
Clear the screen and display the players inventory.
|
||||
| EDF3 | CALL ClearScreen | Call ClearScreen. | ||
| EDF6 | CALL SetScreenPosition | Call SetScreenPosition. | ||
|
Print "You are carrying:-".
|
||||
| EDF9 | LD HL,$BD1F | HL=Messaging_YouAreCarrying. | ||
| EDFC | CALL PrintStringAndNewline | Call PrintStringAndNewline. | ||
| EDFF | LD A,$01 | Call PrintObjects with a room ID of 01 which is the players inventory. | ||
| EE01 | CALL PrintObjects | |||
| EE04 | RET | Return. | ||
|
View the equivalent code in;
|
||||
| Prev: EDC3 | Up: Map | Next: EE05 |