AGIWiki/Inventory items

From ScummVM :: Wiki
Jump to navigation Jump to search
AGIWiki


Prefix: i, i0 - i255

The inventory item data type refers to the items that are listed in the game's OBJECT file. These items are things that the player can carry around with them. Their names are stored in the OBJECT file. A game contain up to 256 objects (numbered from 0-255). Each object used by the game must be present in the OBJECT file.

Every object has a room number which is a value from 0-255. If the room number is 255, it is in the player’s inventory.

Inventory items are referenced in logics by an unsigned eight bit number that corresponds to the index of the item in the OBJECT file.

The first inventory item (index 0) in all known Sierra games is the single character '?'. Other item indices that aren't used by the game are also set to this single question mark character. Setting the first item to a single question mark does not appear to be required. Most fan made games continue using the question mark for item 0 and any unused/undefined items.

Fly wings in AGI Studio's Object Editor.

Related

Data types