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, 0Short excerpt from the shipping addon Destinations — its ESOUI page; the code belongs to its author. Shown because documentation without a working example is half a reference.
Most-downloaded addons using it
| Addon | Total downloads |
|---|---|
| Destinations | 8,211,449 |
| Map Pins | 8,061,548 |
| Rare Fish Tracker | 1,177,082 |
| Dungeon Tracker | 1,023,919 |
| WPamA (What Pledges at my Alts) | 735,283 |
| PersonalAssistant (Banking, Consume, Junk, Loot, Repair, Worker) [Masteroshi430's branch] | 487,232 |