Ok, the worldmap uses this for actually getting the amounts for each zone completion type:
https://github.com/esoui/esoui/blob/...yboard.lua#L57
Code:
/script local id = GetNextZoneStoryZoneId()
local t, c = 0, 0
while id ~= nil do
local c2, t2 = ZONE_STORIES_MANAGER.GetActivityCompletionProgressValuesAndText(id, ZONE_COMPLETION_TYPE_SKYSHARDS)
id = GetNextZoneStoryZoneId(id)
t = t + t2
c = c + c2
end
df("%d/%d", c,t)
Gives me: 452/452
Seems for skyshards it just gets achievement ids and then check their criteria completion:
https://github.com/esoui/esoui/blob/...nager.lua#L104
Still good to use that method since it'll keep working when new zones/skyshards are added.