WoW:API GetPrimaryTalentTree: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(Created page with "== Synopsis == Returns your primary talent tree talentTabId = GetPrimaryTalentTree() == Remarks == Returns 0 for talentTabId if you have no primary talent tree set yet.")
 
m (Move page script moved page API GetPrimaryTalentTree to API GetPrimaryTalentTree without leaving a redirect)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{wowapi}}
== Synopsis ==
== Synopsis ==
Returns your primary talent tree
Returns your primary talent tree


  talentTabId = GetPrimaryTalentTree()
  local talentTabId = GetPrimaryTalentTree(index)


== Remarks ==
== Details ==
Returns 0 for talentTabId if you have no primary talent tree set yet.
Returns 0 for talentTabId if you have no primary talent tree set yet.
Will otherwise return the number of your primary talent tree (1 to 3).
Index is 0 for primary spec, and any number greater than 0 for secondary spec.
== Patch changes ==
{{Patch 5.0.4|note=Replaced by {{api|GetSpecialization}}.}}
== See also ==
* {{api|GetActiveSpecGroup}}
* {{api|SetActiveSpecGroup}}
* {{api|GetNumSpecGroups}}
* {{api|GetSpecialization}}
* {{api|GetNumUnspentTalents}}
* {{api|GetNumSpecializations}}
* {{api|GetSpecializationInfo}}
* {{api|GetSpecializationRole}}
* {{api|t=e|ACTIVE_TALENT_GROUP_CHANGED}}

Latest revision as of 04:46, 15 August 2023

WoW API < GetPrimaryTalentTree

Synopsis[edit]

Returns your primary talent tree

local talentTabId = GetPrimaryTalentTree(index)

Details[edit]

Returns 0 for talentTabId if you have no primary talent tree set yet. Will otherwise return the number of your primary talent tree (1 to 3). Index is 0 for primary spec, and any number greater than 0 for secondary spec.

Patch changes[edit]

Template:Mists-inline <span style="" title="Patch 5.0.4">Patch 5.0.4</span> (patch date::28-August-2012): Replaced by GetSpecialization.

See also[edit]