GetAchievementCriterion
ESO Lua API function — used by 76 of the 3,030 addons we indexed (combined 41,494,617 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.
Official signature
GetAchievementCriterion(integer achievementId, luaindex criterionIndex)Returns: string description, integer numCompleted, integer numRequired
Real usage — from Dolgubon's Lazy Writ Crafter
for i = 1, 6 do
local _, isComplete = GetAchievementCriterion(1145, i)
buffer = buffer + isCompleteShort excerpt from the shipping addon Dolgubon's Lazy Writ Crafter — 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 |
|---|---|
| Dolgubon's Lazy Writ Crafter | 9,498,314 |
| Destinations | 8,211,449 |
| Map Pins | 8,061,548 |
| CraftStore | 5,176,147 |
| AI Research Grid | 1,195,942 |
| Rare Fish Tracker | 1,177,082 |