API UnitCharacterPoints
From WoW Classic Wiki
More actions
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.