Grue
Refugee
Say you want to add some uber-rare loot to the game.
Maybe you want to add it as a rare drop to the Hero chests are found at the end of most POI's
Take rareOres for example, assuming that "0.05" is a percentage, then you have a 1/20 chance of something from Rare Ores being found in any chest that pulls from the HeroChest loots above.
But then within rareOres, there are more potential items, 1-5 Silver Nuggets have a 100% chance anytime rareOres comes up for loot, but then you have a smaller chance of getting Gold Nuggets or Diamonds. For example, a 1/10 chance for 1-3 Diamonds.
The question is, how does the game handle nested probabilities on loot tables?
What is the total probability of getting the 1-3 diamonds possible in a hero loot container?
Is it 1/20 to get Silver Nuggets and 1/20 * 1/10 = 1/200 for Diamonds?
Maybe you want to add it as a rare drop to the Hero chests are found at the end of most POI's
Code:
<lootgroup name="groupHeroChestLootSub">
<item group="groupWeaponsAllScaledTPlus" prob="0.4"/>
<item group="groupArmorScaledTPlus" prob="0.4"/>
<item group="groupModAllScaled" prob=".2"/>
<item group="rareOres" count="2,5" prob="0.05"/>
<item group="booksRareOnlyScaled" count="1,2" prob="0.015"/>
<item group="perkBooks" count="1,2" prob="0.015"/>
</lootgroup>
Take rareOres for example, assuming that "0.05" is a percentage, then you have a 1/20 chance of something from Rare Ores being found in any chest that pulls from the HeroChest loots above.
But then within rareOres, there are more potential items, 1-5 Silver Nuggets have a 100% chance anytime rareOres comes up for loot, but then you have a smaller chance of getting Gold Nuggets or Diamonds. For example, a 1/10 chance for 1-3 Diamonds.
Code:
<lootgroup name="rareOres"> <!-- 907 average -->
<item name="resourceSilverNugget" count="1,5"/> <!-- 250 -->
<item name="resourceGoldNugget" count="1,4" prob="0.3"/> <!-- 700 -->
<item name="resourceRawDiamond" count="1,3" prob="0.1"/> <!-- 1500 -->
</lootgroup>
The question is, how does the game handle nested probabilities on loot tables?
What is the total probability of getting the 1-3 diamonds possible in a hero loot container?
Is it 1/20 to get Silver Nuggets and 1/20 * 1/10 = 1/200 for Diamonds?
Last edited by a moderator: