eva08maicy02 Posted May 5, 2022 Share Posted May 5, 2022 (edited) 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 May 6, 2022 by eva08maicy02 (SOLVED) Link to comment Share on other sites More sharing options...
Hugo Qwerty Posted May 6, 2022 Share Posted May 6, 2022 I think you just want: SuburbsDistributions["Paperbag_Jays"], without the ["all"]. If that doesn't fix it, post the error message you're getting. eva08maicy02 1 Link to comment Share on other sites More sharing options...
eva08maicy02 Posted May 6, 2022 Author Share Posted May 6, 2022 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 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