Open main menu

Difference between revisions of "AGIWiki/Inventory items"

m
no edit summary
m
Line 1: Line 1:
{{AGIWiki}}
{{AGIWiki}}


The inventory item data type refers to the items that are listed in the game's [[AGIWiki/OBJECT file|OBJECT file]].
<code>Prefix: i, i0 - i255</code>
 
The inventory item data type refers to the items that are listed in the game's [[AGIWiki/OBJECT file|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.
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 [[AGIWiki/Sierra Made Games|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 [[AGIWiki/Fan Made Games|fan made games]] continue using the question mark for item 0 and any unused/undefined items.
The first inventory item (index 0) in all known [[AGIWiki/Sierra Made Games|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 [[AGIWiki/Fan Made Games|fan made games]] continue using the question mark for item 0 and any unused/undefined items.
== Related ==
* [[:Category:AGIWiki/Inventory_Item_Commands|Inventory Item commands]]


== Data types ==
== Data types ==


{{AGIWiki/Data types}}
{{AGIWiki/Data types}}
885

edits