Well, I had modified it to check for ADDON_LOADED, and that's what I'm going to be doing with my own project. I just posted the original because it was directly from a tutorial that had always worked for me anyway. And no, even with checking for ADDON_LOADED it didn't work. It doesn't matter anyway, the update seems to have fixed things, though I don't know why.
Something analogous to what I modified it to:
Lua Code:
local EventFrame = CreateFrame("Frame")
EventFrame:RegisterEvent("ADDON_LOADED")
EventFrame:SetScript("OnEvent", function(self,event,name,...)
if name == "WhyHelloThar" then
if type(charVar) ~= "number" then
charVar = 1
ChatFrame1:AddMessage('WhyHelloThar ' .. UnitName("Player") .. ". I do believe this is the first time we've met. Nice to meet you!")
else
if charVar == 1 then
ChatFrame1:AddMessage('WhyHelloThar ' .. UnitName("Player") .. ". How nice to see you again! I do believe I've seen you once before.")
else
ChatFrame1:AddMessage('WhyHelloThar ' .. UnitName("Player") .. ". How nice to see you again! I do believe I've seen you " .. charVar .. " times before.")
end
charVar = charVar + 1
end
end
end)