Chevalric9762@legacy41530921 (talk | contribs) No edit summary |
Chevalric9762@legacy41530921 (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
− | GetSkillLineInfo -Documentation by Chevalric- |
+ | GetSkillLineInfo ''-Documentation by Chevalric-'' |
Returns the name and other information which is associated with the specific skill or skill header in the game. |
Returns the name and other information which is associated with the specific skill or skill header in the game. |
||
Line 12: | Line 12: | ||
The linenumber for the skill or skill header |
The linenumber for the skill or skill header |
||
− | Returns |
||
− | local skillName, header, isExpanded, skillRank, numTempPoints, skillModifier, skillMaxRank, isAbandonable, stepCost, rankCost, minLevel, skillCostType = GetSkillLineInfo(skillIndex); |
||
skillName(String) |
skillName(String) |
||
The name of the skill/header |
The name of the skill/header |
Revision as of 12:13, 23 February 2005
GetSkillLineInfo -Documentation by Chevalric-
Returns the name and other information which is associated with the specific skill or skill header in the game.
GetSkillLineInfo(skillLine);
Arguments
(Number skillLine)
skillLine The linenumber for the skill or skill header
skillName(String) The name of the skill/header isHeader(Boolean) True if this skillLine is a header isExpanded(Boolean) True if the skillLine is expanded skillRank(Number) The current rank for the current skill numTempPoints(Number) Temporary points for the current skill skillModifier(Number) Skill modifier value for the current skill skillMaxRank(Number) The maximum rank for the current skill isAbandonable(Boolean) True if the skill can be unlearned stepCost(Boolean) True if skill can be learned rankCost(Boolean) True if skill can be trained up minLevel(Number) Minimum level required to learn this skill skillCostType(Number) Unknown, seems to be related to primary and secondary skills
Example
local skillTitle = GetSkillLineInfo(1);
Result
"Armor"
Example from SkillFrame.lua
local skillName, header, isExpanded, skillRank, numTempPoints, skillModifier, skillMaxRank, isAbandonable, stepCost, rankCost, minLevel, skillCostType = GetSkillLineInfo(skillIndex);
Description
Returns the string which is associated with the specific Skill Line in the game. Also returns other information about a given skill such as its current rank, its maximum rank, if it's a header and if so, if it's collapsed.
This is part of the World of Warcraft API