Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API GetUnspentTalentPoints

Last wiki revision 2022-09-11

Returns the number of unspent talent points the player, the player's pet or an inspected unit. talentPoints = GetUnspentTalentPoints(isInspected, isPet, talentGroup)

  • isInspected : Boolean - If true, returns the information for the inspected unit instead of the player.
  • isPet : Boolean - If true, returns the information for the pet instead of the player (only valid for hunter with a pet active)
  • talentGroup : Number - The index of the talent group (1 for primary / 2 for secondary)
  • talentPoints : Number - number of unspent talent points

-- Get the unspent talent points for player's active spec local talentGroup = GetActiveTalentGroup(false, false) local talentPoints = GetUnspentTalentPoints(false, false, talentGroup)

This function returns 0 if an invalid combination of parameters is used (asking for pet talent for a non-hunter, asking for isInspect when no unit was inspected).

Source

https://warcraft.wiki.gg/wiki/API_GetUnspentTalentPoints · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.