Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API GetPrimaryTalentTree

Last wiki revision 2020-04-01

Returns the index of your primary talent tree. primaryTabId = GetPrimaryTalentTree([isInspect[, isPet[, talentGroup]]])

  • isInspect : Boolean (Optional) - If true returns the information for the inspected unit instead of the player.
  • isPet : Boolean (Optional) - If true returns the information for the inspected pet.
  • talentGroup : Number (Optional) - The number of the talentgroup you want to look at. i.e. 1 for Primary, 2 for Secondary.
  • primaryTabId : Number - Returns the index of the tab with the most number of talents in it, i.e. the primary talent tree (1, 2, or 3), or nil if no primary tree has been selected.
  • Talent information is not available until has fired.

Source

https://warcraft.wiki.gg/wiki/API_GetPrimaryTalentTree · 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.