GetAchievementRewardTitle
ESO Lua API function — used by 54 of the 3,030 addons we indexed (combined 6,003,687 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.
Official signature
GetAchievementRewardTitle(integer achievementId)Returns: bool hasRewardOfType, string titleName
Real usage — from RaidNotifier Updated
elseif type(override) == "number" then --get override title from achievementId
local hasRewardOfType, titleName = GetAchievementRewardTitle(override, playerGender) --gender is 1 or 2
if hasRewardOfType and titleName thenShort excerpt from the shipping addon RaidNotifier Updated — 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 |
|---|---|
| RaidNotifier Updated | 2,789,746 |
| WPamA (What Pledges at my Alts) | 735,283 |
| Caro's Skill Point Saver (Respec Skill Lines, Champion Points, Gear, Quickslots, Appearances) | 364,055 |
| Votan's Achievements Overview | 330,065 |
| FCM Quest Tracker | 199,980 |
| SuperStar - Seasonal Update | 178,124 |