![]() |
Routines |
| Prev: 63253 | Up: Map | Next: 63347 |
|
Carry out the "Inventory" command.
|
||||
| Action_Inventory | 63318 | CALL ParserValidateNoDirectObject | Call ParserValidateNoDirectObject to check that the command has no object. | |
|
The "INVENTORY" command can only be called on its own.
|
||||
| 63321 | RET C | Return if there's any token set in 44847. | ||
| 63322 | LD A,(44698) | Jump to Messaging_YoureNotCarryingAnything_Reply if *Count_CarriedItems is zero (the player isn't holding any items). | ||
| 63325 | AND A | |||
| 63326 | JP Z,Messaging_YoureNotCarryingAnything_Reply | |||
|
Clear the screen and display the players inventory.
|
||||
| 63329 | CALL ClearScreen | Call ClearScreen. | ||
| 63332 | CALL SetScreenPosition | Call SetScreenPosition to park the cursor on the current screen line. | ||
| 63335 | LD HL,45361 | Print "You are carrying:-" and start a new line. | ||
| 63338 | CALL PrintStringAndANewline | |||
| 63341 | LD A,1 | Call PrintObjects with a room ID of 1 which is the players inventory. | ||
| 63343 | CALL PrintObjects | |||
| 63346 | RET | Return. | ||
|
View the equivalent code in;
|
||||
| Prev: 63253 | Up: Map | Next: 63347 |