Modding:Giving Creatures Inventory Items

From Caves of Qud Wiki
Jump to: navigation, search
This page is about modding. See the modding overview for an abstract on modding.
This page is about modding. See the modding overview for an abstract on modding.
This article is a stub. You can help Caves of Qud Wiki by expanding it.
This article is a stub. You can help Caves of Qud Wiki by expanding it.

Preset Inventory[edit | edit source]

Add an inventoryobject to the object

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

Random Inventory[edit | edit source]

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[edit | edit source]

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>