WoW:API GetTalentPrereqs: Difference between revisions

m
Move page script moved page API GetTalentPrereqs to WoW:API GetTalentPrereqs without leaving a redirect
No edit summary
m (Move page script moved page API GetTalentPrereqs to WoW:API GetTalentPrereqs without leaving a redirect)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{wowapi}} __NOTOC__
{{wowapi}}


<!-- Describe the purpose of the function, exhausting detail can be saved for a later section -->
Returns the tier and column of a talent's prerequisite, and if the talent is learnable.
Returns the tier and column of a talent's prerequisite, and if the talent is learnable.
<!-- List return values and arguments as well as function name, follow Blizzard usage convention for args -->
tier, column, isLearnable = GetTalentPrereqs( tabIndex , talentIndex[, inspect] );
{{Code/Begin}}
tier, column, isLearnable = GetTalentPrereqs( tabIndex , talentIndex );
{{Code/End}}
 


== Parameters ==
== Parameters ==
Line 19: Line 13:
:;talentIndex : Integer - Specifies which talent to check
:;talentIndex : Integer - Specifies which talent to check


Note: The talentIndex is counted as if it where a tree, meaning that the left most talent in the top most row is number 1 followed by the one immediate to the right is number 2, if there are no more talents to the right then it continues from the left most talent on the next row.
::: Note: The talentIndex is counted as if it where a tree, meaning that the left most talent in the top most row is number 1 followed by the one immediate to the right is number 2, if there are no more talents to the right then it continues from the left most talent on the next row.
 
:;inspect : [[Boolean]] - If true returns the information for the inspected unit instead of  the player. New with 2.3.


<big>'''Returns'''</big>
<big>'''Returns'''</big>
Anonymous user