WoW:API GetFactionInfo: Difference between revisions
Jump to navigation
Jump to search
GetFactionInfo - Documentation by Ulic
mNo edit summary |
m (Reformatted, moved StandingId to its own page.) |
||
Line 1: | Line 1: | ||
<center>'''GetFactionInfo''' '' | <center>'''GetFactionInfo''' - ''Documentation by [[User:Ulic|Ulic]]''</center> | ||
Get's details for a specific faction/faction header. | |||
Get's | |||
name, description, standingId, barValue, atWarWith, canToggleAtWar, isHeader, isCollapsed = GetFactionInfo(factionIndex) | |||
== Parameters == | == Parameters == | ||
=== Arguments === | === Arguments === | ||
:(factionIndex) | :(factionIndex) | ||
:;factionIndex : Integer - the | :;factionIndex : Integer - The row of the faction display to request information from. | ||
=== Returns === | === Returns === | ||
:name, description, standingId, barValue, atWarWith, canToggleAtWar, isHeader, isCollapsed | |||
:name, description, | |||
:;name : String - The display name/label for this row. | |||
:;description : String - Not currently used (always returns "") | |||
:;standingId : Integer [[API TYPE StandingId|StandingId]] - Numeric representation of standing with faction (present for header rows, though its significance is unknown) | |||
:;barValue : Number - Floating point value between 0 and 1 representing how much of the standing bar should be filled in (Present for header rows, but significance of value is unknown). | |||
:;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. | |||
---- | ---- | ||
__NOTOC__ | __NOTOC__ | ||
{{Template:WoW API}} | {{Template:WoW API}} | ||
[[Category:API Faction Functions|GetFactionInfo]] | [[Category:API Faction Functions|GetFactionInfo]] |
Revision as of 20:28, 11 September 2005
Get's details for a specific faction/faction header.
name, description, standingId, barValue, atWarWith, canToggleAtWar, isHeader, isCollapsed = GetFactionInfo(factionIndex)
Parameters
Arguments
- (factionIndex)
- factionIndex
- Integer - The row of the faction display to request information from.
Returns
- name, description, standingId, barValue, atWarWith, canToggleAtWar, isHeader, isCollapsed
- name
- String - The display name/label for this row.
- description
- String - Not currently used (always returns "")
- standingId
- Integer StandingId - Numeric representation of standing with faction (present for header rows, though its significance is unknown)
- barValue
- Number - Floating point value between 0 and 1 representing how much of the standing bar should be filled in (Present for header rows, but significance of value is unknown).
- 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.