GetUnitAttributeVisualizerEffectInfo
ESO Lua API function — used by 30 of the 3,030 addons we indexed (combined 7,511,139 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.
Official signature
GetUnitAttributeVisualizerEffectInfo(string unitTag, [UnitAttributeVisual|#UnitAttributeVisual] unitAttributeVisual, [DerivedStats|#DerivedStats] statType, [Attributes|#Attributes] attributeType, [CombatMechanicFlags|#CombatMechanicFlags] powerType)Returns: number:nilable value, number:nilable maxValue, integer:nilable sequenceId
Real usage — from Code's Combat Alerts
})
local immune = GetUnitAttributeVisualizerEffectInfo("boss1", ATTRIBUTE_VISUAL_UNWAVERING_POWER, STAT_MITIGATION, ATTRIBUTE_HEALTH, COMBAT_MECHANIC_FLAGS_HEALTH)
if (immune and immune > 0) thenShort 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 |
| Azurah - Interface Enhanced | 1,462,318 |
| Foundry Tactical Combat (FTC) | 1,097,601 |
| Bandits Companions and Pets | 192,393 |
| Pet Health | 67,714 |
| JoGroup Quick Update | 38,677 |