Body Builder Posted January 22, 2015 Share Posted January 22, 2015 Hi Pz community!!!!i'd like increase the number of Torches in game. (Torch)But I have some doubts..... 1)The directory is: Pz/Media/scripts/suburbsdistribution.txt Right? Example: ( If i want to add a Torch to a container, i have to write the string "Torch"?) containeritemdistribution { Containers = counter/sidetable/crate/fridge, WhiskeyFull = 15, Chocolate = 10, Torch = 30,} 2) How does it work the value "30"?? It's a spawn value, right? (example, 100 is better then 30, for the spawn item??) Thanks in advance, friends Link to comment Share on other sites More sharing options...
SiderisAnon Posted January 23, 2015 Share Posted January 23, 2015 To add items to the distribution, create a LUA file in your mod's "\media\lua\server\Items\" directory. You will need to require the main distribution file. Then just put in pairs of inserts to the table.require "Items/SuburbsDistributions"table.insert(SuburbsDistributions.all.crate.items, Base.Torch");table.insert(SuburbsDistributions.all.crate.items, 1);If you look at ItemPicker.rollItem() in ItemPicker.lua, the higher the number, the better the chance that this item will be in the container. For a comparison of scale, the Lucky trait only adds 1 to the number, and the Unlucky trait subtracts 1 (minimum 0.1). Zombie density also plays a part. More zombies in the area increase the chance of loot. Body Builder 1 Link to comment Share on other sites More sharing options...
Body Builder Posted January 23, 2015 Author Share Posted January 23, 2015 To add items to the distribution, create a LUA file in your mod's "\media\lua\server\Items\" directory. You will need to require the main distribution file. Then just put in pairs of inserts to the table.require "Items/SuburbsDistributions"table.insert(SuburbsDistributions.all.crate.items, Base.Torch");table.insert(SuburbsDistributions.all.crate.items, 1);If you look at ItemPicker.rollItem() in ItemPicker.lua, the higher the number, the better the chance that this item will be in the container. For a comparison of scale, the Lucky trait only adds 1 to the number, and the Unlucky trait subtracts 1 (minimum 0.1). Zombie density also plays a part. More zombies in the area increase the chance of loot.Thank you so much for the precious information, friend! You are very kind 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