Jass documentation Database

JASS Documentation Database REFORGED


Results for the query "MeleeGetAllyKeyStructureCount" as a "function"

The search keyword must be a single word (no spaces).

Function MeleeGetAllyKeyStructureCount

Line: 9189
Location: blizzard.j
Constant? no
Type: function
Arguments: player whichPlayer
Returns: integer

Preview

Extra spaces may have been removed from the original file to show the function in a comfortable way.
  1. function MeleeGetAllyKeyStructureCount takes player whichPlayer returns integer
  2.     local integer    playerIndex
  3.     local player     indexPlayer
  4.     local integer    keyStructs
  5.  
  6.     // Count the number of buildings controlled by all not-yet-defeated co-allies.
  7.     set keyStructs = 0
  8.     set playerIndex = 0
  9.     loop
  10.         set indexPlayer = Player(playerIndex)
  11.         if (PlayersAreCoAllied(whichPlayer, indexPlayer)) then
  12.             set keyStructs = keyStructs + BlzGetPlayerTownHallCount(indexPlayer)
  13.         endif
  14.            
  15.         set playerIndex = playerIndex + 1
  16.         exitwhen playerIndex == bj_MAX_PLAYERS
  17.     endloop
  18.  
  19.     return keyStructs
  20. endfunction
"You have ten seconds to comply!" Hmmm... there's no info about this keyword... be the first one in contribute with the keyword MeleeGetAllyKeyStructureCount. You must be logged into the site in order to give us a hand in keeping updated the information. If you don't have an account, you can create one here.
Page loaded in 0.0867 seconds.
Vivir aprendiendo.co - A place for learning stuff, in Spanish   Chaos Realm - The world of Game modders and wc3 addicts   Diplo, a gaming community   Power of Corruption, an altered melee featuring Naga and Demon. Play it now!!!   WC3JASS.com - The JASS Vault + vJASS and Zinc   Jetcraft - A Starcraft II mod   WormTastic Clan (wTc)   Warcraft RESOURCES Reforged: Modelos, mapas, proyectos y mas...