Skip to reading
GDScript Programming & Godot

Designer: Inventory definitions

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. 350

Inventory item definitions.

Native record route: Inventory.Get("key").

Append .Get("property.path", fallback) for a read or .Set("property.path", value) for a write. Replace the example record ID with one from your own project.

Source table from Designer: Inventory definitions, page 258
Stored 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. Record 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.
sortOrderinteger W / DefinitionInventory sorting order.
Page 258 of 378Permalink
Go to page