Some more questions...
In this code
Weapons = {
sword = {
name = "mastersword",
cost = 100,
power = 50,
mana = 0
},
malet = {
cost = 200,
power = 25,
mana = 0
}
}
If I were designing a fresh lua file and writing from within DBPro, can I just use the Tab (chr$(9)) once, twice or three times etc to get the structure on each line you see above? Does it make a difference?
Also, could the following also be valid LUA script (for tables)?-
Weapons = {
types = "Longsword, Greatsword, Shortsword"
sword = {
name = "mastersword",
cost = 100,
power = 50,
mana = 0
},
malet = {
cost = 200,
power = 25,
mana = 0
}
}
(and again, believe me, my script is going to be a helluva lot more complicated than this.... )
Also, I have Unity LUA (which seems newer, but...). Is Barnski's LUA plugin better or Unity or are they pretty much similar?
[edit]
Sorry about these questions - just dawning on me how very much I've been making my life difficult in programming in the past....
[edit]
P.S. I also get Chris Tate's point about horses for courses ie. perhaps a different combination might be better depending on the use of the database. I am not planning a multi player - just a traditional (and almost certainly 2D) CRPG...
[edit] - I had some further questions - but have figured them out! Should have been using LUA ARRAY commands... Doh!
a long time dabbler with DBC and DBPro with no actual talent but lots of enthusiasm...