Nexa Posted March 9, 2023 Share Posted March 9, 2023 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 More sharing options...
Hugo Qwerty Posted March 9, 2023 Share Posted March 9, 2023 Rename the file so it won't replace the vanilla file. Then do something like: table.insert(ProceduralDistributions.list["WardrobeMan"].items, "Bag_DuffelBagTINT") table.insert(ProceduralDistributions.list["WardrobeMan"].items, 100) Modified from code in: https://steamcommunity.com/sharedfiles/filedetails/?id=2609939329 Link to comment Share on other sites More sharing options...
RingoD123 Posted March 9, 2023 Share Posted March 9, 2023 use this guide: Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now