I have a Lua module that is arranged like this
return {
player = {
inventory = {
items = {
--items
},
}
},
}
How would I access ‘items’ this is for a defsave save file.
So I can access inventory with
defsave.get("player", "inventory")
but I don’t know how to get a layer deeper. I think I’m being a bit stupid, but I can’t figure out what I’m doing wrong. I appreciate any help you can provide. Thanks