Jump to content

Adding Items to a Loot Table


RegularX

Recommended Posts

So is there any convenience method for adding items to a loot table?  I'm just guessing from my first day on the job but it looks like it is currently a matter of a) overwritting a script txt or b) overriding a SuburbsDistribution.lua ... neither which seems like it would survive long across mods.

 

Am I missing something?  (which is ... likely)

Link to comment
Share on other sites

So is there any convenience method for adding items to a loot table?  I'm just guessing from my first day on the job but it looks like it is currently a matter of a) overwritting a script txt or B) overriding a SuburbsDistribution.lua ... neither which seems like it would survive long across mods.

 

Am I missing something?  (which is ... likely)

This thread wasn't meant for questions about modding, it's for requesting new features for the lua scripting.

 

What you are looking for is answered in this thread:

http://theindiestone.com/forums/index.php/topic/170-

 

Basically all you need to do is make a file which inserts values in the suburbsdistributions table:

table.insert(SuburbsDistributions["Kitten"]["counter"].items, "NotEnoughBags.PaperBag");table.insert(SuburbsDistributions["Kitten"]["counter"].items, 5);
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...