makes no sense to me.. HELLO outputs fine everytime.. HELLO 2 not even once ever. I even tried reversing the names and ID's like this.
Code:
function MyAddon.FindChampionSwapSkill()
--/script df(GetChampionSkillName(number))
df("HELLO")
local championSkills = {
[78] = "Master Gatherer",
[79] = "Treasure Hunter",
[92] = "Gifted Rider",
[91] = "Homemaker",
[90] = "Cutpurse's Art",
[77] = "Infamous",
[88] = "Reel Technique",
[89] = "Angler's Instincts",
[66] = "Steed's Blessing",
[65] = "Sustaining Shadows",
}
for skillID, skillName in ipairs(championSkills) do
df("HELLO 2")
if string.find(tostring(MyAddon.savedVariables.autoMetSwap), tostring(skillName), 1, true) ~= nil then
return tonumber(skillID)
end
end
end