Modding:Giving Creatures Inventory Items

From Caves of Qud Wiki
Revision as of 16:48, 21 May 2019 by imported>CaptainTechnicality54384 (Created page with "Category:Modding == Preset Inventory == Add an inventoryobject to the object <inventoryobject Blueprint="Lives1"></inventoryobject> == Random Inventory == The best mode...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Preset Inventory

Add an inventoryobject to the object

<inventoryobject Blueprint="Lives1"></inventoryobject>

Random Inventory

The best modern way is to add a tag:

<tag Name="InventoryPopulationTable" Value="MyNewSnapjawPopulationTableWhatever"></tag>

...and add the matching population table via a populationtables.xml file in your mod.

Legacy Methods

Legacy methods that we've most deprecated in favor of population tables:

Builder classes directly on the inventory part:

<part Name="Inventory" Builder="InventoryChestJunk3or4"></part>