WoW:API GetNumSkillLines

Revision as of 12:30, 23 February 2005 by WoWWiki>Chevalric
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
GetNumSkillLines -Documentation by Chevalric-

Returns the number of skill lines in the skill list. This includes headers.

GetNumSkillLines();

Arguments
none

Returns
numSkills(Number)
The line count for the skills window, including headers.

Example
local numSkills = GetNumSkillLines();
for i=1, numSkills do
  local skillName = getSkillLineInfo(i);
end
Result
"Armor"

Example from SkillFrame.lua
local numSkills = GetNumSkillLines();

Description
Returns the number of lines in the skill window, including headers. This number can be used to loop through all skill lines and retrieving the info using getSkillLineInfo

Template:WoW API