ESODecoded

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) then

Short excerpt from the shipping addon Code's Combat Alertsits ESOUI page; the code belongs to its author. Shown because documentation without a working example is half a reference.

Most-downloaded addons using it

AddonTotal downloads
Code's Combat Alerts4,445,158
Azurah - Interface Enhanced1,462,318
Foundry Tactical Combat (FTC)1,097,601
Bandits Companions and Pets192,393
Pet Health67,714
JoGroup Quick Update38,677