Wikia

WoWWiki

Changes: API GetNumTalents

Edit

Back to page

m ([,pet] was missing from the arguments)
 
Line 2: Line 2:
 
Returns the total number of talents in a tab. '''Note:''' This includes learned and unlearned talents.
 
Returns the total number of talents in a tab. '''Note:''' This includes learned and unlearned talents.
   
numTalents = GetNumTalents(tabIndex[,inspect[,pet]]);
+
local numTalents = GetNumTalents(tabIndex);
   
 
----
 
----
Line 8: Line 8:
   
 
:;tabIndex : Integer - Specifies which tab to count the total number of talent points.
 
:;tabIndex : Integer - Specifies which tab to count the total number of talent points.
 
:;inspect : [[Boolean]] - If true returns the information for the inspected unit instead of the player. New with 2.3.
 
 
:;pet : [[Boolean]] - If true returns the information for the pet instead of the player.
 
   
 
----
 
----
Line 18: Line 14:
 
:;numTalents : Integer - The number of talents in that tab.
 
:;numTalents : Integer - The number of talents in that tab.
   
----
+
== Patch changes ==
;''Example''
+
{{Patch 5.0.4|note=Returns 18}}.
 
local i = 1
 
while i <= GetNumTalentTabs() do
 
local numTalents = GetNumTalents(i)
 
DEFAULT_CHAT_FRAME:AddMessage( numTalents .. ' ' .. GetTalentTabInfo(i) .. ' ' )
 
i = i+1
 
end
 
 
;''Results'' : Displays the number of talents for each tab followed by the name of the tab.
 

Latest revision as of 23:22, August 30, 2012

WoW API < GetNumTalents

Returns the total number of talents in a tab. Note: This includes learned and unlearned talents.

local numTalents = GetNumTalents(tabIndex);

Arguments
tabIndex 
Integer - Specifies which tab to count the total number of talent points.

Returns
numTalents 
Integer - The number of talents in that tab.

Patch changes Edit

Mists-Logo-Small Patch 5.0.4 (28 August 2012): Returns 18
.

Around Wikia's network

Random Wiki