Jump to content
Toggle menu
  • 17.3K articles
  • 8.2K files
  • 5 users
  • 280.7K edits
WoW Classic Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

API UnitCharacterPoints

From WoW Classic Wiki

Returns the number of unspent talent points of the specificed unit.

  local unspentTalentPoints = UnitCharacterPoints("player")

Arguments
(number)
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.


unspentTalentPoints
The quantity of unspent talent points a target has available.



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.

Template:WoW API