Navigation menu

WoW:API GetBattlefieldWinner: Difference between revisions

Jump to navigation Jump to search
Forgot to change some things when changing this to another format
No edit summary
(Forgot to change some things when changing this to another format)
Line 1: Line 1:
{{wowapi}}
Get the winner of the battleground
 
<center>'''GetBattlefieldWinner()''' ''-Documentation by [[user:Klishu|Klishu]]-''</center>
 
<!-- Describe the purpose of the function, exhausting detail can be saved for a later section -->
Returns an integer value based on the winner of the Battleground.


<!-- List return values and arguments as well as function name, follow Blizzard usage convention for args -->
  battlefieldWinner = GetBattlefieldWinner()
  winnerCode = GetBattlefieldWinner()


== Parameters ==
== Parameters ==
=== Arguments ===
=== Arguments ===
<!-- List each argument, together with its type -->
None
None


=== Returns ===
=== Returns ===
<!-- List each return value, together with its type -->
:battlefieldWinner
:winnerCode


:;winnerCode : integer - A code indicating if you've won the current battleground. (nil for no; 1 for yes)
:;battlefieldWinner: Integer - A code indicating the battleground winner. (nil for no one; 0 for Horde; 1 for Alliance)


==Details==
==Details==
<!-- Details not appropriate for the main description can go here -->


: Returns an interger value which can be nil or 1 indicating whether the player has won the current battleground he is in. Returns nil if the player is not in a battleground or the battle still hasn't ended yet.
: Gets the winner of the current battleground that the player is inside.


----
----
__NOTOC__
__NOTOC__
{{wowapi}}
Anonymous user