Jump to content

Probabilities Example

Pending 1.2.2

andremelo90
andremelo90

Posted (edited)

  "AlwaysSpawnList": [
    "scrap"
  ],
  "Spawn_Vanilla_Scrap": false,
  "Categories": {
    "Ammunition": {
      "probability": 50,
      "allowBlueprints": true
    },
    "Attire": {
      "probability": 1,
      "allowBlueprints": true
    },
    "Component": {
      "probability": 1,
      "allowBlueprints": true
    },
    "Construction": {
      "probability": 1,
      "allowBlueprints": true
    },
    "Electrical": {
      "probability": 1,
      "allowBlueprints": true
    },
    "Food": {
      "probability": 100,
      "allowBlueprints": true
    },
    "Fun": {
      "probability": 1,
      "allowBlueprints": true
    },
    "Items": {
      "probability": 1,
      "allowBlueprints": true
    },
    "Medical": {
      "probability": 60,
      "allowBlueprints": true
    },
    "Misc": {
      "probability": 1,
      "allowBlueprints": true
    },
    "Resources": {
      "probability": 1,
      "allowBlueprints": true
    },
    "Tool": {
      "probability": 30,
      "allowBlueprints": true
    },
    "Traps": {
      "probability": 1,
      "allowBlueprints": true
    },
    "Weapon": {
      "probability": 10,
      "allowBlueprints": true
    }

Hi, in this example above i want to set the category Food to always drop, is it correct? using it for NPCs

Also below, inside Food category:

    "Food": {
      "apple": {
        "probability": 3,
        "minStack": 1,
        "maxStack": 5
      },
      "apple.spoiled": {
        "probability": 10,
        "minStack": 1,
        "maxStack": 5
      },

lets say i want to have spoiled apple to always drop, do i have to use the same interval i used on Categories probabilities (0-100) or can i use other like 1-10?

thanks!

Edited by andremelo90
cosmetic
  • Administrator
Steenamaroo

Posted

Hi,
There isn't really a way to make a category always be chosen, other than having it as the only category set with probability over zero.


If you want a specific item to always be included in the loot then it's best to use the "AlwaysSpawnList" at the top for that.

  • Love 1
andremelo90

Posted (edited)

nice! one more question, can i use decimals? for example:

    "Food": {
      "apple": {
        "probability": 0.1,
        "minStack": 1,
        "maxStack": 5
      },
      "apple.spoiled": {
        "probability": 0.75,
        "minStack": 1,
        "maxStack": 5
      },

 

Edited by andremelo90
none
  • Administrator
Steenamaroo

Posted

No, you can't use decimals but probabilities are relative so there's no need.
Two items with 0.1 and 0.9 would be the same as two items with 1 and 9, or 10 and 90, or 10000 and 90000.
 

  • Love 1
1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.2k

Files Sold

Total number of files sold.

2m

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.