• 0

    posted a message on Table browsing
    I'm new to this whole addon thing myself so I wouldn't take my answer further then you could throw it, but logically this seems to make more sense for structure. I don't know for processing how quick this method would be.

    local factions = { "Ironforge", "Stormwind", "Darnassus", ... }
    local characters = {
    	"Toon 1" = { "Ironforge" = 1000, "Darnassus" = 2000 },
    	"Toon 2" = { "Stormwind" = 2000 },
    	"Toon 3" = { "Ironforge" = 2000, "Stormwind" = 2000, "Darnassus" = 2000 },
    }


    You now have a list of factions you can sort or do whatever you want to.
    And you can either list all of your toons or loop through them and either display all faction rep levels or just the specific one selected from the factions list.
    Posted in: Lua Code Discussion
  • To post a comment, please or register a new account.