Here's a look at where I left off with that idea once I realized that some points weren't counting correctly.
Lua Code:
local function USPF_SetFoliumDiscognitumPoints()
local skillPoints = GetAvailableSkillPoints()
for skillType = 1, GetNumSkillTypes() do
for skillLine = 1, GetNumSkillLines(skillType) do
for ability = 1, GetNumSkillAbilities(skillType, skillLine) do
if GetSkillAbilityUpgradeInfo(skillType, skillLine, ability) ~= nil then
skillPoints = skillPoints + GetSkillAbilityUpgradeInfo(skillType, skillLine, ability)
else
_, _, _, _, _, purchased = GetSkillAbilityInfo(skillType, skillLine, ability)
skillPoints = (purchased and skillPoints + 1 or skillPoints)
end
end
end
end
local skillPointsDiff = USPF.pointsData.ptsLevel + USPF.pointsData.ptsMainQuest + USPF.pointsData.ptsMorrowindCharacter +
USPF.pointsData.ptsAvALevel + USPF.pointsData.ptsMaelstrom + USPF.pointsData.ptsQuestTotal +
USPF.pointsData.ptsSkyshardTotal + USPF.pointsData.ptsGroupDungeonTotal + USPF.pointsData.ptsPDGBTotal
USPF.pointsData.ptsFoliumDiscognitum = (skillPoints == skillPointsDiff - 2 and 2 or 0)
end
end