Hi slooper.
You forgot to add commas in lots of places in your code.
You should seperate members of a list with commas. Like so: {a,b,c,d}
This is also true if one of the members is also a list of members. For example {a,b,c,{e,f,g},h,i,{k,{l,m,n,o,p}},Z}
I recommend using an ide for LUA that can check your code for you. I like LUAEDIT. You can find it on
http://luaedit.luaforge.net/index.html
--This is the config file for TD Ultimate
-- Feel free to change the settings here to make the game more of your choice
--Here you have to set the amount of waves
Settings = {
NumOfWaves = 2
}
--Here you can edit different tower stats
Tower ={
Basic1 = {
Name = "",
Cost = 10,
Attack = 50,
ARange = 50,
ASpeed = 10,
BSpeed = 10,
},
Fire1 = {
Name = "",
Cost = 25,
Attack = 125,
ARange = 50,
ASpeed = 12,
BSpeed = 15
},
Poison1 = {
Name = "",
Cost = 25,
Attack = 125,
ARange = 50,
ASpeed = 12,
BSpeed = 15
}
}
--Here you can add/remove or edit different enemy stats
Enemies = {
Wasp1 = {
Name = "Slumber Wisp",
Model = "Wasp1.x",
HitPoints = 200,
Speed = 100,
FireRes = 50,
IceRes = 50,
LightRes = 50,
PoisRes = 50,
DemonRes = 50
},
Wasp2 = {
Name = "Stingers",
HitPoints = 350,
Speed = 120,
FireRes = 65,
IceRes = 65,
LightRes = 50,
PoisRes = 50,
DemonRes = 65
},
Wasp3 = {
Name = "Whot",
HitPoints = 350,
Speed = 120,
FireRes = 65,
IceRes = 65,
LightRes = 75,
PoisRes = 75,
DemonRes = 65
}
}
-- Change the waves to get another amount of enemies each wave and what type of enemy you prefer. ( The enemy stats are set up in the Enemies array )
Wave = {
Wave1 = {
Amount = 15,
EnemyType = "Wasp1"
},
Wave2 = {
Amount = 15,
EnemyType = "Wasp3"
}
}
Cheers,
Paranoid Android.