m
Move page script moved page API GetFactionInfo to WoW:API GetFactionInfo without leaving a redirect
m (→Earned Value) |
m (Move page script moved page API GetFactionInfo to WoW:API GetFactionInfo without leaving a redirect) |
||
| (One intermediate revision by one other user not shown) | |||
| Line 12: | Line 12: | ||
:(factionIndex) | :(factionIndex) | ||
:;factionIndex : Integer - The row of the faction display to request information from. The rows start from the top of your reputation tab as 1 and move down, includes headers but not hidden reputations. | :;factionIndex | ||
:: Integer - The row of the faction display to request information from. The rows start from the top of your reputation tab as 1 and move down, includes headers but not hidden reputations. | |||
=== Returns === | === Returns === | ||
:name, description, standingId, bottomValue, topValue, earnedValue, atWarWith, canToggleAtWar, isHeader, isCollapsed, isWatched | :name, description, standingId, bottomValue, topValue, earnedValue, atWarWith, canToggleAtWar, isHeader, isCollapsed, isWatched | ||
:;name : String - The display name/label for this row. | :;name | ||
:;description : String - Returns the small description from the reputation tab. | :: String - The display name/label for this row. | ||
:;standingId : Integer [[API TYPE StandingId|StandingId]] - Numeric representation of standing(Neutral, friendly etc) with faction, is always between 0 and 8 (present for header rows, though its significance is unknown) | :;description | ||
:;bottomValue : Integer - Numeric representation of the minimum reputation earned with this faction at the current standing, ex. Neutral is 0, Friendly is 3000 (Present for header rows, but significance of value is unknown). | :: String - Returns the small description from the reputation tab. | ||
:;topValue : Integer - Numeric representation of the maximum reputation that can be earned with this faction at the current standing, ex. Neutral is 3000, Friendly is 9000 (Present for header rows, but significance of value is unknown). | :;standingId | ||
:;earnedValue : Integer - Numeric representation of the TOTAL reputation earned with this faction, ex. 1500/3000 Neutral is 1500, 2500/6000 Friendly is 5500 (Present for header rows, but significance of value is unknown). | :: Integer [[API TYPE StandingId|StandingId]] - Numeric representation of standing(Neutral, friendly etc) with faction, is always between 0 and 8 (present for header rows, though its significance is unknown) | ||
:;atWarWith : Flag - 1 if player is at war with the faction, nil otherwise. | :;bottomValue | ||
:;canToggleAtWar : Flag - 1 if player can toggle the 'At War' flag for this faction, nil otherwise. | :: Integer - Numeric representation of the minimum reputation earned with this faction at the current standing, ex. Neutral is 0, Friendly is 3000 (Present for header rows, but significance of value is unknown). | ||
:;isHeader : Flag - 1 if this row is a header row, nil otherwise. | :;topValue | ||
:;isCollapsed : Flag - 1 if this row is a collapsed header row, nil otherwise. | :: Integer - Numeric representation of the maximum reputation that can be earned with this faction at the current standing, ex. Neutral is 3000, Friendly is 9000 (Present for header rows, but significance of value is unknown). | ||
:;hasRep ''(New in 3.0.2)'' : Flag - 1 indicates when a faction that's otherwise a header should show its own reputation bar.(Currently used for Horde Expedition / Alliance Vanguard.) | :;earnedValue | ||
:;isWatched : Flag - 1 if this faction is being watched (Show as experience bar in default UI), nil otherwise. | :: Integer - Numeric representation of the TOTAL reputation earned with this faction, ex. 1500/3000 Neutral is 1500, 2500/6000 Friendly is 5500 (Present for header rows, but significance of value is unknown). | ||
:;isChild ''(New in 3.0.2)'': Flag - 1 is used in conjunction with isHeader to create the new 3-level faction tree structure. | :;atWarWith | ||
:: Flag - 1 if player is at war with the faction, nil otherwise. | |||
:;canToggleAtWar | |||
:: Flag - 1 if player can toggle the 'At War' flag for this faction, nil otherwise. | |||
:;isHeader | |||
:: Flag - 1 if this row is a header row, nil otherwise. | |||
:;isCollapsed | |||
:: Flag - 1 if this row is a collapsed header row, nil otherwise. | |||
:;hasRep ''(New in 3.0.2)'' | |||
:: Flag - 1 indicates when a faction that's otherwise a header should show its own reputation bar.(Currently used for Horde Expedition / Alliance Vanguard.) | |||
:;isWatched | |||
:: Flag - 1 if this faction is being watched (Show as experience bar in default UI), nil otherwise. | |||
:;isChild ''(New in 3.0.2)'' | |||
:: Flag - 1 is used in conjunction with isHeader to create the new 3-level faction tree structure. | |||
== Example == | == Example == | ||
| Line 68: | Line 82: | ||
{|class="darktable" | {|class="darktable" | ||
|- | |- | ||
! Game Value | ! Game Value | ||
| Line 105: | Line 119: | ||
=== Headers === | === Headers === | ||
*Headers (or Header Rows) are the titles presented on top of your reputation groups as titles, such as "Shattrath City", "Horde" and "Steamwheedle Cartel". If you do not wish to use these values, you can use isHeader to filter them out. | *Headers (or Header Rows) are the titles presented on top of your reputation groups as titles, such as "Shattrath City", "Horde" and "Steamwheedle Cartel". If you do not wish to use these values, you can use isHeader to filter them out. | ||
== See also == | |||
* {{api|GetFriendshipReputation}} | |||
* {{api|GetFriendshipReputationRanks}} | |||
[[Category:World of Warcraft API]] | [[Category:World of Warcraft API]] | ||