Modding:Giving Creatures Inventory Items: Difference between revisions
m (add navbox) |
mNo edit summary |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
[[Category:Modding]]{{Modding Info}} | [[Category:Modding]]{{Modding Info}}{{Stub}} | ||
The examples below require merging an XML tag into an existing object. For more information about how to merge tags, refer to [[Modding:Objects]]. | |||
== Preset Inventory == | == Preset Inventory == | ||
Add an inventoryobject to the object | Add an inventoryobject to the object. | ||
<syntaxhighlight lang="xml"> | <syntaxhighlight lang="xml"> |
Latest revision as of 15:41, 2 October 2023
This page is about modding. See the modding overview for an abstract on modding.
The examples below require merging an XML tag into an existing object. For more information about how to merge tags, refer to Modding:Objects.
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>