WoW:API GetFactionInfo: Difference between revisions
Jump to navigation
Jump to search
GetFactionInfo -Documentation by Ulic-
No edit summary |
mNo edit summary |
||
Line 43: | Line 43: | ||
{{Template:WoW API}} | {{Template:WoW API}} | ||
<!-- Update the category to the appropriate subsection, and be sure to put the function name as the label for the category link. Multiple subcategories are okay if appropriate, please dont link functions to the API Functions category directly. --> | <!-- Update the category to the appropriate subsection, and be sure to put the function name as the label for the category link. Multiple subcategories are okay if appropriate, please dont link functions to the API Functions category directly. --> | ||
[[Category:API Functions| | [[Category:API Functions|GetFactionInfo]] | ||
[[Category:API Faction Functions|GetFactionInfo]] |
Revision as of 18:09, 29 August 2005
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