Jump to content

Help me mod distribution


Nexa

Recommended Posts

Hello, I am new to modding and have read the guide explaining how the loot distribution is handled here: https://theindiestone.com/forums/index.php?/topic/38165-quick-guide-how-to-mod-the-loot-distribution-system-distributionslua-proceduraldistributionslua/But when I create a `media\lua\server\items\ProceduralDistributions.lua` file in my mod and write this in it all loot disappears:
 

ProceduralDistributions = {};

ProceduralDistributions.list = {
  WardrobeMan = {
    rolls = 4,
    items = {
        "Bag_DuffelBagTINT", 100,
    },
    junk = {
        rolls = 1,
        items = {
            
        }
    }
  },
}


I presume the file gets overwritten.
How do I modify this file exactly in order to increase the `Bag_DuffelBagTINT` spawn rate lets say? I'm guessing I'm missing an `import` somewhere? Is the `ProceduralDistributions ={} and junk={...}` lines even necessary?

Thank you!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...