ESODecoded

GetAchievementNumCriteria

ESO Lua API function — used by 54 of the 3,030 addons we indexed (combined 22,172,464 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.

Official signature

GetAchievementNumCriteria(integer achievementId)

Returns: integer numCriteria

Real usage — from Destinations

      local collectibleCode = pinData[AchIndex.KEYCODE]
      local completedTotal, requiredTotal = 0, GetAchievementNumCriteria(collectibleID)
      local desc, completed, required = nil, 0, 0

Short excerpt from the shipping addon Destinationsits ESOUI page; the code belongs to its author. Shown because documentation without a working example is half a reference.

Most-downloaded addons using it

AddonTotal downloads
Destinations8,211,449
Map Pins8,061,548
Rare Fish Tracker1,177,082
Dungeon Tracker1,023,919
WPamA (What Pledges at my Alts)735,283
PersonalAssistant (Banking, Consume, Junk, Loot, Repair, Worker) [Masteroshi430's branch]487,232