How to insert a table inside a table?

include the rest of the function with teh changed tables, test the print on this one


-w-

above I did post the changed tables. It just broke into random stuff

Try using:

inventory[itemType][rarity][item] = findItem

Instead of:

table.insert(inventory[itemType][rarity], {findItem})
4 Likes

then the name will be used as a key instead of those 1’s if that’s what you want me to try to fix

1 Like

Thank you > o < this makes me realised how dumb I am. Does using “=” would add it.

Now left with this (works now ty)
image

1 Like