Wowpedia
Advertisement
Wowpedia
240,503
pages
For the WoW Icon update.png WoW Classic version, see API GetTalentInfo/Classic.
Shadowlands-Icon-Inline.png
Bc icon.gif
GetTalentInfo
+ 1.1.0 / 1.13.2   Townlong-Yak Globe.png  Wowprogramming.png
Shadowlands-Icon-Inline.png GetTalentInfoByID
+ 6.0.2   Townlong-Yak Globe.png
Shadowlands-Icon-Inline.png GetTalentInfoBySpecialization
+ 6.0.2   Townlong-Yak Globe.png
talentID, name, texture, selected, available, spellID, unknown, row, column, known, grantedByAura
   = GetTalentInfo(tier, column, specGroupIndex [, isInspect, inspectUnit])
   = GetTalentInfoByID(talentID, specGroupIndex [, isInspect, inspectUnit])
   = GetTalentInfoBySpecialization(specIndex, tier, column)

Arguments

GetTalentInfo

tier 
number - Talent tier from 1 to MAX_TALENT_TIERS
column 
number - Talent column from 1 to NUM_TALENT_COLUMNS
specGroupIndex 
number - Index of active specialization group (GetActiveSpecGroup)
isInspect 
boolean? - If non-nil, returns information based on inspectedUnit/classId.
inspectedUnit 
string? - Inspected unitId; if nil, the selected/available return values will always be false.

GetTalentInfoByID

talentID 
number - Talent ID.
specGroupIndex 
number
isInspect 
boolean?
inspectedUnit 
string?

GetTalentInfoBySpecialization

specIndex
number - Index of the specialization, ascending from 1 to GetNumSpecializations().
tier 
number
column 
number

Returns

1. talentID 
number - Talent ID.
2. name 
string - Talent name.
3. texture 
number - FileID
4. selected 
boolean - true if the talent is chosen, false otherwise.
5. available 
boolean - true if the talent tier is chosen, or if it is level-appropriate for the player and the player has no talents selected in that tier, false otherwise.
6. spellID 
number - Spell ID that is added to the spellbook.
7. unknown 
Always appears to be nil.
8. row 
number - The row the talent is from. This will be the same as the tier argument given.
9. column 
number - The column the talent is from. This will be the same as the column argument given.
10. known
boolean - true if the talent is active, false otherwise.
11. grantedByAura 
boolean - true if the talent is granted by an aura (i.e., an effect on an item), false otherwise. Legion's Class Soul rings used this rather than selected.

Patch changes

Advertisement