API GetNumTalentTabs

From Wowpedia
Jump to: navigation, search

Returns the total number of tabs of talents one has.

numTabs = GetNumTalentTabs([inspect[,pet]])

Arguments

inspect 
Boolean - If true returns the information for the inspected unit instead of the player.
pet 
Boolean - If true returns the information for the pet instead of the player.

Returns

numTabs 
Number - The number of talent tabs for the player/pet/inspected units.

Example

The following snippet lists all of the player's talents

for i=1, GetNumTalentTabs()
 for j=1, GetNumTalents(i) do
  print( (GetTalentInfo(i, j)) )
 end
end

Notes

Patch changes