Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
Taking a stab does this mean if/when that item is lucky enough to be selected from the list then it automatically places X (item prob="X") of said item in the container?
But what if said item is part of a group, then does that mean a prob greater than zero ignores subsequent prob values in its subtree, or perhaps it means it rolls again that many times? Cornfused on this.
<item prob="2" group="junk"/>
<item prob="1" group="militaryguns+ammo"/>
<item prob="0.3" group="rocketLauncher+ammo"/>
<item prob="1" group="militaryArmor"/>
<item name="nightvisionGoggles" prob="0.3"/>
</lootcontainer>
What this code says is that the container (in this case zombie) will drop between 1-3 items in the list.
Probability just means what are the odds of that specific item or group being chosen. Default is "1", far as I know. But its a bit of a mess to figure out the "real" probability since everything gets factored together to form a sum total of 100%, from my understanding. The easiest way to do it, in my experience, is to add a prob value to all of them and have the sum total of all values combined equal 1.
Example:
<lootgroup name="lockerGood">
<item group="ammo" prob="0.6"/>
<item group="pumpshotgun+ammo" prob="0.1"/>
<item group="medicine" prob="0.3"/>
</lootgroup>
In this group when it is called on it will have a 60% chance to spawn ammo group, a 10% chance to spawn from the pumpshotgun+ammo group and a 30% chance to spawn medicine group. I can be certain of these values because if I combine the values all together they add up to 1. This makes it easier to manage and make precise settings.
Even if all the probs are set to 0 the container will still choose one of them if the container has a count of minimum 1. If that makes sense.
As I described, I think the list of items all have an equal chance of coming up, this is to say the first "item check" roll doesnt look at prob values, it just randomly picks one of the listed items, all with an equal chance of popping. Above example would be every item has a 1 in 5 chance.
Then if the randomly chosen item happens to have a prob value, then and only then it performs a secondary roll, against the prob value, to see if that (usually rarer) item actually pops up.
This is how a lot of pen and paper RPG's handle treasure lists. They want rare items to be on general treasure lists but they want them to have an even rarer chance of actually appearing, hence the secondary roll if its selected.
And again the "count" is an intially generated random amount of times the list is checked for that container.
Of course feel free to call me completely crazy on this.
https://7daystodie.com/forums/showthread.php?37658-Loot-Probability-Viewer&highlight=loot
Yeah I definitely don't claim to know how to figure the mathmetical percentage chances of an item popping, especially, as the creator noted, when it chooses groups from the list that are in groups that are in group each with their own lists and items with further subset prob values. That is a noble effort, wow.
Pretty sure I am grasping how it it is rolling/functioning though.
My assesment is still chugging along on the placement of the loot containers blocks as well, like these sections:
Note the values don't add up to 1 as usual. I think as a spot is marked (a separate random "map" gen i'm sure) to have a "possible" lootPlains placeholder on the map it triggers this. Then this rolls 1d16 for it's item list.
When it lands on 1 of the 16 choices (all having a 1 in 16 chance) then it reads the prob value of it's selection and rolls an additional/separate roll, a percintile check, against it. If the percintle is <= the prob value then that item appears. Or if initial item selected was a group, and the prob passes, then it sends it to that group for a further check (with possibly further prob values to consider if selected)
If the 1 thru 16 choice doesnt pass a prob check (all items in the example have a prob check), then it places nothing. Which is why an area may seems sparse.
So applied to this one, my guess is that if you do get lucky enough to discover rareOre (I'm sure a low prob in itself) you will find far more silverNuggets and Nothings/Empty Slots than you would ever see gold or diamond. Because even though they all have an equal chance of being found (1d3) at first, if it lands on the gold or diamond an additional roll is happening with only a 30% chance for gold and 10% chance for diamond to appear instead of nothing appearing at all for that item (aka percentil check fails against that items prob value).
In general the process is a way to have different types of loot equally "in the running" for a container (thematically appropriate item appear in/on appropriate containers/bodies) but still control the rarity of certian (or in loot placeholders case "all") items within that list to a much finer degree than it's initial selection odds.
...I think.
The way I read that:
If your container rolls the rareOre group you have a 30% chance ot get gold, 10% chance to get diamond and 60% chance to get silver. You will never get nothing - you will always get one of those - unless the count of that group in the container is manually set to have a minimum of 0.
I have this as two separate and distinct rolls on the items.
First roll is just equally random chance between all items listed, 1d3, ignores prob value all together.
Once it selects an item then it looks to see if that item has a prob value. If it does then it performs a secondary roll... if that roll is a hit the item pops, if not that selected item, with the secondary prob (rarity) value is not there after all.
We see containers with a minimum of 1 produce zero results all the time. The prob value percentages rarely add up to 1/100% even with non-prob value items absorbing the remainder. This would be (is in pen&paper games) a good way to have a rare item or rare item group have an equal chance of being a possibility in a container, but then if it is selected a still further chance you didn't find it anyway. A more refined loot frequency control.
Just a theory.
But remember, as i posted earlier on this, my "if the secondary roll fails its a zero" is a theoritcal part of my theory. :) While I truly believe how i describe the item checker flow is probable, I am not sure what happens if that secondary prob value roll fails. I assumed zero because of all the empty containers I find (especially cars). But it might not work that way, if it fails it may immediately roll again until it gets a hit or something, but that doesnt explain all the empties. And I see alot.
Also remember I am testing this with no perks or modified skills and typically on day 1.
Also per my original post while "working this out" I'm still baffled (as are most based on response) by what a prob value of more than "1" would to my (anyone's) theory.
<!-- lootcontainer 19 cars-->
<lootcontainer id="19" count="1" size="7,4" sound_open="UseActions/open_vehicle" sound_close="UseActions/close_vehicle" open_time="4" loot_quality_template="baseTemplate">
<item group="automotive+tools+junk"/>
<item name="miningHelmet" prob="0.035"/>
</lootcontainer>
Now you see that and you think "okay, it will never be empty". But that isnt true because you have to look at the group it can all on. Check out automotive tools and junk.
<lootgroup name="automotive+tools+junk" count="0,2">
<item group="junk" prob="1"/>
<item group="automotive" prob="0.21"/>
<item group="tools" prob="0.21"/>
</lootgroup>
As you can see the group itself can be told to drop nothing. So even though the container will always grab it or the mining helmet, even if it does pull from the automotive group that group itself does not always reward an item as its minimum is 0.
Are you sure those others can actually be empty?
For what its worth my mod relies on a minimum count of 1 always being 1 and I have NEVER had the class cases spawn nothing - which would be impossible if it is as you say and it doesn't adhere to the count number.
Its is my experience that if a container has a minimum count of 1 then it will never, ever be empty unless it calls on a group that can be empty.
I completely understand that is one way the car results in an empty. I believe it is additionally happening as i described. For example it picks automotive from the list, doing its secondary prob check, rolls percentiles, gets a 22% or higher and renders the automotive group a zero without ever leaving the initial list to check its sub group. I find a lot of empty cars.
Constantly under the game level circumstances I mentioned.
I think you may have meant "impossible", otherwise I am misunderstanding, regardless I am saying it surely adheres to the count number, but that that count number just means how many times to check the list, not how many items mandatorily appear. To me count "1" means check your list one time, with many opportunities for that 1 check to result in zero items, depending on everything from prob value to sub group counts and their subsequent prob values.
If your findings are more accurate than mine, I again may be wrong on what the script does after a failed "secondary" prob value check. It may be a re-roll until you get a hit.
However that doesn't explain my plethora of empty backpacks and night stands.... or why "1.5" would ever be a valid prob value.
Good stuff by the way. :)
Just wanted to show you how closely I was following along.
In the loot file is this block and comments:
I believe the fact that they say "If you get a hit" indicates I was on the right track.
Looking at this list, you wouldn't say "if" you get a hit if those prob values affected the first roll, you would simply definitley get a hit period, no ifs ands or buts. And most likely the "1,100", but if it landed on a 301,600 by chance then you would get that one. A hit no matter what. You cant miss. No ifs.
However, if I'm right, then you could indeed get a miss. You would roll through this list with a 1d4, all line items having an equal chance, completely ignoring the prob value. Then if you landed on say "loot quality="301,600" - you would then and only then perform your probability roll, percentiles, and if you did not meet .01 then its a fail, not a hit, which means you got nothing on the list. Which means you can rightly look at this list and say "if" you get a hit, because you could get a miss if you land on a line with a prob value and fail its separate and distinct probability roll.
I don't see how you idea can be consistant with that observation.