GetNonCombatBonus
ESO Lua API function — used by 38 of the 3,030 addons we indexed (combined 10,274,584 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.
Official signature
GetNonCombatBonus([NonCombatBonusType|#NonCombatBonusType] nonCombatBonus)Returns: integer bonusValue
Real usage — from CraftStore
local _, rank = GetSkillLineInfo(skillType,skillId)
return {level = GetNonCombatBonus(bonus) or 1, rank = rank, maxsim = GetMaxSimultaneousSmithingResearch(craft) or 1}
endShort excerpt from the shipping addon CraftStore — 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 |
|---|---|
| CraftStore | 5,176,147 |
| PerfectPixel | 1,399,987 |
| AI Research Grid | 1,195,942 |
| Dustman | 1,178,205 |
| CookeryWiz | 239,380 |
| Enchant Maker | 149,478 |