Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
Advertisement

Shows the tooltip for the specified talent.

GameTooltip:SetTalent(talentIndex [, isInspect, talentGroup, inspectedUnit, classId])

Arguments[]

talentIndex
number - Index of the talent to display the tooltip of, ascending from 1.
isInspect
boolean - If true, respect the classId argument; otherwise, display the player's talentIndex talent.
talentGroup
number?Optional. Could be nil. - Ignored; supply nil.
inspectedUnit
string?Optional. Could be nil. - Ignored (UnitId); supply nil.
classId
number?Optional. Could be nil. - ClassId the talentIndex belongs to.

Examples[]

Display the player's first talent:

GameTooltip_SetDefaultAnchor(GameTooltip, UIParent)
GameTooltip:SetTalent(1)
GameTooltip:Show()

Display the first Monk talent (using classId 10):

GameTooltip_SetDefaultAnchor(GameTooltip, UIParent)
GameTooltip:SetTalent(1, true, nil, nil, 10)
GameTooltip:Show()

Patch history[]

  • Mists of Pandaria Patch 5.0.4 (2012-08-28): Arguments changed; talent tabs no longer exist.
Advertisement