View Single Post
02-09-18, 09:44 AM   #1
doofus
A Chromatic Dragonspawn
Join Date: Feb 2018
Posts: 158
Static initialising a table

Can I do the following? Do you spot any obvious mistakes? The values below maybe fictitious - but is the syntax/concept correct?

Many thanks


local lSpellNamesAndIds = {
["PALADIN"] =
{
["Retribution"] =
{
["Judgment"] = { 231663, "Judgment", },
["Templars-verdict"] = { 85256, "templars-verdict", },
["crusader-strike"] = { 231667, "crusader-strike", },
},
},
["DRUID"] =
{
["Balance"] =
{
["Starfall"] = { 231663, "Starfall", },
["Sunrise"] = { 85256, "Sunrise", },
},
},
};
  Reply With Quote