I've been working on putting together an item data base and I've been having a difficult time structuring it. Some basic tests databases I have made work fine. But when I try to tie everything together I end up with a database file that has nothing in it, not even the structure. I also don't end up with any errors. Attempts to display the database result in 'nil'. Could someone point out where I am going wrong?
Code: Select all
db:create("items",{item={
names = {"inventoryName", "equippedName", "floorDescription", "Keyword"},
values = {
rentCost = 0,
purchaseCost = 0,
sellValue = 0
},
location = {
droppedBy ="",
zoneID = 0
},
requirements = {
minimumLevel = 0,
weight = 0,
alignment ="",
size =""
},
purpose = {"itemType", "equipPosition"},
effectTable = {"type", "value"},
notes = ""
}
})
Thank you!