![]() |
Routines |
| Prev: F715 | Up: Map | Next: F773 |
|
Carry out the "Inventory" command.
|
||||
| Action_Inventory | F756 | CALL ParserValidateNoDirectObject | Call ParserValidateNoDirectObject to check that the command has no object. | |
|
The "INVENTORY" command can only be called on its own.
|
||||
| F759 | RET C | Return if there's any token set in AF2F. | ||
| F75A | LD A,($AE9A) | Jump to Messaging_YoureNotCarryingAnything_Reply if *Count_CarriedItems is zero (the player isn't holding any items). | ||
| F75D | AND A | |||
| F75E | JP Z,Messaging_YoureNotCarryingAnything_Reply | |||
|
Clear the screen and display the players inventory.
|
||||
| F761 | CALL ClearScreen | Call ClearScreen. | ||
| F764 | CALL SetScreenPosition | Call SetScreenPosition to park the cursor on the current screen line. | ||
| F767 | LD HL,$B131 | Print "You are carrying:-" and start a new line. | ||
| F76A | CALL PrintStringAndANewline | |||
| F76D | LD A,$01 | Call PrintObjects with a room ID of 01 which is the players inventory. | ||
| F76F | CALL PrintObjects | |||
| F772 | RET | Return. | ||
|
View the equivalent code in;
|
||||
| Prev: F715 | Up: Map | Next: F773 |