• Mods are now organized as resources. Use the Mods link above to browse for or submit a mod, tool, or prefab.

    The TFP Official Modding Forum Policy establishes the rules and guidelines for mod creators and mod users.

Guarenteed Loot Item

Dryzler

Refugee
Hello,

if i write a lootcontainer like this:

<lootcontainer name="birdNest" count="1" ...>
<item name="foodEgg" loot_prob_template="guaranteed"/>
<item name="resourceFeather" count="1,5" loot_prob_template="guaranteed"/>
</lootcontainer>




I do get either an egg or some feathers.

How to always get an egg AND always get some feathers?

Thanks.

 
meganoth is correct.  Count = 1 means you have a chance of getting either feathers or eggs.  Count = 2 would be two picks, which can be 2 groups of feathers, 2 groups of eggs, or one of each.  Count all would mean that each loot group would have a chance of procc'ing.

For an example of count="all", check the Hardened Chests in the loot file.  The T4 chest would pull an item from 9 different loot groups.

 
Last edited by a moderator:
Back
Top