Hello Folks.
I am creating an addon and I have run into a little issue. What I am trying to do is access the data in my saved file and display it on which ever character is logged in. I can access my current characters data fine but I am unsure how to load up the values from my other characters. Here is a simple example..
Lua Code:
MyAddonSavedVariables =
{
["Default"] =
{
["@Tarlac"] =
{
["Tarlac Sorc"] =
{
["OffsetX"] = 1274,
["OffsetY"] = 378,
["name"] = "Tarlac Sorc",
["gold"] = 337,
["version"] = 2,
},
["Tarlac Night"] =
{
["OffsetX"] = 1354,
["OffsetY"] = 155,
["name"] = "Tarlac Night",
["gold"] = 9400,
["version"] = 8,
},
["Tarlac Ramos"] =
{
["OffsetX"] = 483,
["OffsetY"] = 675,
["version"] = 2,
["gold"] = 21853,
["name"] = "Tarlac Ramos",
},
},
},
}
What I am trying to do is just create a string from this data that I can display on screen.
The string would be something like
Tarlac Sorc = 337
Tarlac Night = 9400
Tarlac Ramos = 21853
The I would display this data in my addon. I can access my current character, but I have not figured out how to access the other characters. Does anyone have any suggestions on where I would begin?
Thanks. Tarlac.