lua
Weapons = {
sword = {
name = "mastersword",
cost = 100,
power = 50,
mana = 0
},
malet = {
cost = 200,
power = 25,
mana = 0
}
}
DBPro
sync on
sync rate 60
cost = lua array int ("Weapons->sword->cost")
name$ = lua array string("Weapons->sword->name")
do
text 0,0,(name$) + " " + "costs "+ str$(cost) + " gold"
sync
loop
I know that is very simple. But imagine you go into a shop and select a weapon. You can get the name,cost,power, and if it uses mana.Test it and just edit the script file for changes. Lua tables are cool
AMD Athlon 64 x2 Dual Core Processor 3800+,MMX 3DNOW (2CPUs)
1024 MB RAM
GeForce 7300 GT 512 MB