WoW:API GetFactionInfo
Get's information for Factions, also known as Reputation.
name, description, standingID, barValue, atWarWith, canToggleAtWar, isHeader, isCollapsed = GetFactionInfo(factionIndex);
- this info is current as of the 1.4 patch, thanks goes to Saien of Hyjal on the official forums for discovering the new values and order.
Parameters
Arguments
- (factionIndex)
- factionIndex
- Integer - the row which you wish to request info
Returns
- Returns
- name, description, standingID, barValue, atWarWith, canToggleAtWar, isHeader, isCollapsed
- name
- String - Name of the Faction or Grouping
- description
- String?? - I have a decent number of factions on my main, this always returns nil
- standingID
- Number - A numeric value that can be associated to a string for displaying the Standing text
- 0 = "Unknown"
- 1 = "Hated"
- 2 = "Hostile"
- 3 = "Unfriendly"
- 4 = "Neutral"
- 5 = "Friendly"
- 6 = "Honored"
- 7 = "Revered"
- 8 = "Exalted"
- barValue
- Number - the fractional number representing the how long to draw the bar
- atWarWith
- Boolean - true, is at war
- canToggleAtWar
- Boolean - true, can toggle at war status
- isHeader
- Boolean - true, is a header entry
- isCollapsed
- Boolean - true, is collapsed