Fandom

WoWWiki

API UnitCharacterPoints

104,671pages on
this wiki
Add New Page
Talk0 Share
WoW API < UnitCharacterPoints

Returns the number of unspent talent points of the specified unit and the number of learned professions.

  local unspentTalentPoints, learnedProfessions = UnitCharacterPoints("player")

Arguments
(unitId)
arg1 
The unit to query ("player" -- "target", and the like, does not work and always returns 0)

Returns
Unspent Talent points viewable by the player and the number of currently learned professions.


unspentTalentPoints 
Number - The quantity of unspent talent points the unit has available.
learnedProfessions 
Number - The number of professions the unit already knows.



Example
DEFAULT_CHAT_FRAME:AddMessage( "You have " .. UnitCharacterPoints("player") .. " unspent Talent Points.")
Result

Prints the how many talent points the player has unspent.

You have 0 unspent Talent Points.

Description
Returns unspent talent points a player has or always 0 if an invalid unit type is specified.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

Also on Fandom

Random Wiki