Prev: F715 Up: Map Next: F773
F756: Action: Inventory
Carry out the "Inventory" command.
Action_Inventory F756 CALL ParserValidateNoDirectObject Call ParserValidateNoDirectObject.
The "INVENTORY" command can only be called on its own.
F759 RET C Return if the direct object is malformed.
F75A LD A,($AE9A) Jump to Response_YoureNotCarryingAnything if *Count_InventoryItems is zero (the player isn't holding any items).
F75D AND A
F75E JP Z,Response_YoureNotCarryingAnything
Clear the screen and display the players inventory.
F761 CALL ClearScreen Call ClearScreen.
F764 CALL SetScreenPosition Call SetScreenPosition.
Print "You are carrying:-".
F767 LD HL,$B131 Print "You are carrying:-" and start a new line.
F76A CALL PrintStringAndNewline
F76D LD A,$01 Call PrintObjects with a room ID of 01 which is the players inventory.
F76F CALL PrintObjects
F772 RET Return.
Prev: F715 Up: Map Next: F773