ESODecoded

GetNumPointsSpentOnChampionSkill

ESO Lua API function — used by 35 of the 3,030 addons we indexed (combined 7,109,216 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.

Official signature

GetNumPointsSpentOnChampionSkill(integer championSkillId)

Returns: integer numSpentPoints

Real usage — from LibCombat

local function CheckCPBonus()
	local martial = 1.5 * GetNumPointsSpentOnChampionSkill(18)
	local magic = 1.5 * GetNumPointsSpentOnChampionSkill(17)

Short excerpt from the shipping addon LibCombatits 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
LibCombat5,017,654
Wizard's Wardrobe481,038
Dynamic CP (Champion Points 2.0)319,248
Constellations277,088
Jack of all Trades - Automatic CP Respec194,328
ChampionPointsSlots137,217