Lootables are chests or other containers that generate their contents based on custom rules and probabilities.
They can optionally refill themselves on a schedule or in response to dynamic filters.
Element | Description |
---|
<lootables> </lootables> | A procedural list of loot. |
Sub-elements | | Value/Children |
---|
<loot> </loot> | A generated set of items. | Loot Sub-elements |
<fill> </fill> | Configuration for filling containers with loot. | Fill Sub-elements |
Loot
The <loot>
element defines a generated set of items, using literal <item>
elements, and operations for choosing them.
Loot Element
Element | Description | Value/Children |
---|
<loot> | A generated set of items. | Loot Sub-elements |
Loot Attributes
Attribute | Description | Value |
---|
id | Unique identifier used to reference this loot from other places in the XML. | String |
Loot Sub-elements
Element | Description | Value |
---|
<item> | An item to include in the loot. This can be any type of item element, and can have any item attributes. | Item |
<any> | A random selection of children. | |
<maybe> | Include child conditionally based on a filter. | |
<all> | Include all children. | |
Random Selection
The <any>
element makes a random selection from any number of child elements.
Its children can be <option>
elements, or any other <loot>
sub-element.
Any Attributes
Attribute | Description | Value | Default |
---|
count | The number of child elements to choose. | Numeric Range | |
unique | Set to true if each child can only be chosen once. Set to false to allow a child to be chosen multiple times. | true/false | true |
Any Sub-elements