Jump to content

Get error in loot setting (SOLVED)


eva08maicy02

Recommended Posts

I added my item to the zombie loot and it worked fine. This is the function I use, referring to other people's modules:

table.insert(SuburbsDistributions["all"]["inventoryfemale"].items, "TWI.PillsHWJGreenOil");
table.insert(SuburbsDistributions["all"]["inventoryfemale"].items, 0.1);
table.insert(SuburbsDistributions["all"]["inventorymale"].items, "TWI.PillsHWJGreenOil");
table.insert(SuburbsDistributions["all"]["inventorymale"].items, 0.1);

 

However, when I try to spawn my items from paperbag, I get the error in debug mode. Here is my function:

table.insert(SuburbsDistributions["all"]["Paperbag_Jays"].items, "TWI.BobaStraw");
table.insert(SuburbsDistributions["all"]["Paperbag_Jays"].items, 50);
table.insert(SuburbsDistributions["all"]["Paperbag_Spiffos"].items, "TWI.BobaStraw");
table.insert(SuburbsDistributions["all"]["Paperbag_Spiffos"].items, 50);

 

I don't understand. They are all in the same format, why do I get error in paperbag? And how do I fix it?

 

Edited by eva08maicy02
(SOLVED)
Link to comment
Share on other sites

1 hour ago, Hugo Qwerty said:

I think you just want: SuburbsDistributions["Paperbag_Jays"], without the ["all"].

 

If that doesn't fix it, post the error message you're getting.

OMG! It's working!
Thank you so much for your help, I'm so happy :lol:

Link to comment
Share on other sites

  • eva08maicy02 changed the title to Get error in loot setting (SOLVED)

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...