ESODecoded

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}
  end

Short excerpt from the shipping addon CraftStoreits 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
CraftStore5,176,147
PerfectPixel1,399,987
AI Research Grid1,195,942
Dustman1,178,205
CookeryWiz239,380
Enchant Maker149,478