Difference between revisions of "AGIWiki/Inventory items"

From ScummVM :: Wiki
Jump to navigation Jump to search
m
Line 9: Line 9:
== Data types ==
== Data types ==


* Data types
{{AGIWiki/Data types}}
** [[AGIWiki/Number|Numbers]]
** [[AGIWiki/Variable|Variables]]
*** [[AGIWiki/Special variables|Special variables]]
** [[AGIWiki/Flag|Flags]]
*** [[AGIWiki/Special flags|Special flags]]
** [[AGIWiki/Message|Messages]]
** [[AGIWiki/Animated object|Animated objects]]
** [[AGIWiki/Inventory items|Inventory items]]
** [[AGIWiki/String|Strings]]
** [[AGIWiki/index.php/Word|Words]]
** [[AGIWiki/Controller|Controllers]]

Revision as of 14:28, 31 March 2013

AGIWiki


The inventory item data type refers to the items that are listed in the game's 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 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.

Data types