Modding:Giving Creatures Inventory Items: Difference between revisions
Modding:Giving Creatures Inventory Items (view source)
Revision as of 15:57, 23 May 2019
, 15:57, 23 May 2019no edit summary
imported>CaptainTechnicality54384 (Created page with "Category:Modding == Preset Inventory == Add an inventoryobject to the object <inventoryobject Blueprint="Lives1"></inventoryobject> == Random Inventory == The best mode...") |
imported>CaptainTechnicality54384 No edit summary |
||
Line 3: | Line 3: | ||
Add an inventoryobject to the object | Add an inventoryobject to the object | ||
<syntaxhighlight lang="xml"> | |||
<inventoryobject Blueprint="Lives1"></inventoryobject> | <inventoryobject Blueprint="Lives1"></inventoryobject> | ||
</syntaxhighlight> | |||
== Random Inventory == | == Random Inventory == | ||
The best modern way is to add a tag: | The best modern way is to add a tag: | ||
<syntaxhighlight lang="xml"> | |||
<tag Name="InventoryPopulationTable" Value="MyNewSnapjawPopulationTableWhatever"></tag> | <tag Name="InventoryPopulationTable" Value="MyNewSnapjawPopulationTableWhatever"></tag> | ||
</syntaxhighlight> | |||
...and add the matching population table via a populationtables.xml file in your mod. | ...and add the matching population table via a populationtables.xml file in your mod. | ||
Line 16: | Line 20: | ||
Builder classes directly on the inventory part: | Builder classes directly on the inventory part: | ||
<syntaxhighlight lang="xml"> | |||
<part Name="Inventory" Builder="InventoryChestJunk3or4"></part> | <part Name="Inventory" Builder="InventoryChestJunk3or4"></part> | ||
</syntaxhighlight> |