Jump to content

Probabilities

Pending 1.1.0

I have Ammunition set to 10 and Attire set to 1

The specific attire I have set to spawn 1

I'd like the Ammunition to spawn 100% of the time, and the Attire to spawn 1% of the time. 

The Attire spawns 100% of the time. 

Is there a way that these can be entered where it works more like a percentage? I don't understand what it means by "relative" 

Edited by jonnymiskatonic

Share this comment


Link to comment

Hi,

No, there's no way to do that. That's not how it's set up.

Every time an item is spawned a category is chosen based on category probabilities,
then an item is chosen from the category, based on that categories item probabilities.
It's two stages.

"I have Ammunition set to 10 and Attire set to 1"
With it set like that, every time an item is spawned theres a ten in eleven chance it will be Ammo, and a one in eleven chance it'll be Attire,
assuming both of those categories have items in them with probability > 0.

 

It's not realistic to 'follow' the maths. I just set everything to 5 then turn things up and down until it seems good.
If that doesn't allow enough room then set everything to 10 and adjust around that..

Share this comment


Link to comment

But the attire is spawning every time, not 1 in 11. 

This is how I have it set

  "Categories": {
    "Ammunition": {
      "probability": 10,
      "allowBlueprints": false
    },
    "Attire": {
      "probability": 1,
      "allowBlueprints": false

For the Ammo

      "ammo.pistol": {
        "probability": 10,
        "minStack": 1,
        "maxStack": 10,
        "blueprintChancePercent": 0

For the Attire

      "metal.facemask": {
        "probability": 1,
        "minStack": 1,
        "maxStack": 1,
        "blueprintChancePercent": 0,
        "skins": [],
        "IncludeAllApprovedSkins": false,
        "MinConditionPercent": 90,
        "MaxConditionPercent": 100

Everytime the loot drops it contains the facemask

Share this comment


Link to comment

So far it's just these two items. I'm adding them slowly so I can get an understanding of how this works, but so far I'm failing with the numbers. My goal is to have it drop ammo all the time. Sometimes drop food and very rarely drop the metal facemask. 

Edited by jonnymiskatonic

Share this comment


Link to comment

The easiest solution is probably to set the profile (in config) so it's asking for min/max 1 item,

Then set the three items to probability 1. (That's pistol ammo, facemask, and the food...set multiple foods to 1 if you want),
Then balance the categories.

Ammo probability 10
Food probability 5
Attire probability 1

 

Adjust that balance to your tastes but that would mean each crate gets one item,
and that item is very likely to be ammo, less likely to be food, and unlikely to be a facemask.

 

 

Just thinking back to your original query, if you have Ammo probability 10 and Attire probability 1 and always get the facemask,
then your profile is asking for more than one item (in config...), and 'AllowDuplicates' is false.

Either tell it you want 1 item, or tell it to allow duplicates. 🙂

* Note - Allowing duplicates will result in larger stacks of stackables.
Getting 10 ammo twice will show in your inventory as 20 ammo.

Edited by Steenamaroo

Share this comment


Link to comment

Thanks one last question, is there a limit on the probability number? I'm just still trying to wrap my head around it. For instance if I wanted the ammo to regularly drop could I set it to 100 and then have the face mask be 1 and have various other items sprinkled at other numbers or is it a 1-10 scale?

Share this comment


Link to comment
290.3k

Downloads

Total number of downloads.

1.4k

Customers

Total customers served.

17.9k

Files Sold

Total number of files sold.

277.7k

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.