Skip to reading
PCA Script Programming

Designer: Inventory

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView PDF page

Earlier edition reference / Current 0.86.4.0 property paths > p. 329

An inventory definition describes an item. It does not itself say how many the player owns. Use inventory_count, has_inventory and the inventory actions to change bags.

Reference shape: inventory.key.property_path.

The example ID is illustrative. Choose an existing record in your own project; direct camera, spawn and objective lookups must be unambiguous.

Source table from Designer: Inventory, page 252
Property pathType / accessPurpose and limits
idtext R / DefinitionStable inventory item ID. Rename with the editor so references can be updated.
nametext W / DefinitionInventory item display name.
descriptiontext W / DefinitionInventory item description.
categorytext W / DefinitionInventory category.
enabledboolean W / DefinitionWhether this inventory item is enabled.
iconAssetIdrecord W / DefinitionInventory icon asset. Reference kind: assets.
icontext W / DefinitionLegacy/direct icon path.
iconAnimatedboolean W / DefinitionUse animated inventory icon frames.
iconFpsnumber W / DefinitionAnimated icon frames per second.
iconLoopboolean W / DefinitionLoop animated icon frames.
stackableboolean W / DefinitionWhether item amounts stack.
maxStackinteger W / DefinitionMaximum amount in one stack.
consumeOnUseboolean W / DefinitionRemove the item after a successful use.
valuenumber W / DefinitionGame-defined item value.
weightnumber W / DefinitionGame-defined item weight.
raritytext W / DefinitionGame-defined rarity label.
Page 252 of 357Permalink
Go to page