so i'm trying to build a defup table that tracks my defs and puts them up...so far what I have isn't working and the more I try fixing it the more problems that occure.
32:my_defup = {
33: ["free"] = php:Table(),
34: ["balance"] = php:Table(),
35: ["herb"] = php:Table(),
36: ["elixir"] = php:Table()
37:
38: my_defup["free"]["insomnia"] = "insomnia"
39 : }
then to populate these tables I have the following...
my_defup["free"]["insomnia"] = "insomnia"
my_defup["free"]["nightsight"] = "nightsight"
my_defup["balance"]["deathsight"] = "deathsight"
my_defup["elixir"]["speed"] = "sip speed"
my_defup["herb"]["kola"] = "eat kola"
and so on and so forth...
now my problem comes in when I try to populate the tables I get the following error
Compile error
World: shauno
Immediate execution
[string "Script file"]:38: '}' expected (to close '{' at line 32) near 'my_defup'
Error context in script:
34 : ["balance"] = php:Table(),
35 : ["herb"] = php:Table(),
36 : ["elixir"] = php:Table()
37 :
38*: my_defup["free"]["insomnia"] = "insomnia"
39 : }
to me it seems like it can't or it doesn't recognize the } on line 39 and I can't see why. This only happens when I try to populate the tables. The tables themselves don't seem to be the issue as when I save and run it I just get a nil error which is what I make out to be from the unpopulated tables.
Does anyone know what I might be doing wrong here?
32:my_defup = {
33: ["free"] = php:Table(),
34: ["balance"] = php:Table(),
35: ["herb"] = php:Table(),
36: ["elixir"] = php:Table()
37:
38: my_defup["free"]["insomnia"] = "insomnia"
39 : }
then to populate these tables I have the following...
my_defup["free"]["insomnia"] = "insomnia"
my_defup["free"]["nightsight"] = "nightsight"
my_defup["balance"]["deathsight"] = "deathsight"
my_defup["elixir"]["speed"] = "sip speed"
my_defup["herb"]["kola"] = "eat kola"
and so on and so forth...
now my problem comes in when I try to populate the tables I get the following error
Compile error
World: shauno
Immediate execution
[string "Script file"]:38: '}' expected (to close '{' at line 32) near 'my_defup'
Error context in script:
34 : ["balance"] = php:Table(),
35 : ["herb"] = php:Table(),
36 : ["elixir"] = php:Table()
37 :
38*: my_defup["free"]["insomnia"] = "insomnia"
39 : }
to me it seems like it can't or it doesn't recognize the } on line 39 and I can't see why. This only happens when I try to populate the tables. The tables themselves don't seem to be the issue as when I save and run it I just get a nil error which is what I make out to be from the unpopulated tables.
Does anyone know what I might be doing wrong here?