GetCurrentZoneDungeonDifficulty
ESO Lua API function — used by 66 of the 3,030 addons we indexed (combined 16,427,764 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.
Official signature
GetCurrentZoneDungeonDifficulty()Returns: isVeteranDifficulty
Real usage — from Code's Combat Alerts
CombatAlerts.zoneId = LCA.GetZoneId()
CombatAlerts.isVet = GetCurrentZoneDungeonDifficulty() == DUNGEON_DIFFICULTY_VETERAN
Short excerpt from the shipping addon Code's Combat Alerts — 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 |
|---|---|
| Code's Combat Alerts | 4,445,158 |
| RaidNotifier Updated | 2,789,746 |
| Item Set Browser | 1,893,031 |
| LibCharacterKnowledge | 1,771,857 |
| Loot Log | 1,608,502 |
| Character Knowledge (Research, Motif, Recipe, Furnishing Plan and Scribing Tracker) | 733,709 |