Ok, working.
His Dad [02-22-16 - 06:26]
diff --git a/AIResearchGrid.lua b/AIResearchGrid.lua
index 32932cc..d4bd36f 100644
--- a/AIResearchGrid.lua
+++ b/AIResearchGrid.lua
@@ -565,9 +565,9 @@ function AIRG.PopulateStyleData()
local desc, numCompleted = GetAchievementCriterion(Style[4], Chapter)
if numCompleted == 1 then
- d(ChapterIndex .. " " .. Chapter .. ": Completed: " .. desc)
+ -- d(ChapterIndex .. " " .. Chapter .. ": Completed: " .. desc)
end
- AIRG.vars.StyleChapter[AIRG.curCharacter][StyleIndex][ChapterIndex] = numCompleted == 1 -- Note we save the Chapter Index, so the table will be an array. (can use ipairs)
+ AIRG.vars.StyleChapter[AIRG.curCharacter][StyleIndex][Chapter] = numCompleted == 1
end
end
@@ -989,6 +989,6 @@ function AIRGslash(extra)
end -- AIRGslash
SLASH_COMMANDS["/airg"] = AIRGslash
-SLASH_COMMANDS["/test"] = AIRG.DisplayStyles
+--SLASH_COMMANDS["/test"] = AIRG.DisplayStyles
EVENT_MANAGER:RegisterForEvent("AIRG", EVENT_ADD_ON_LOADED, AIRG.Initialise)
-- EOF