- Joined
- Jul 29, 2010
- Messages
- 319
'ActivePlayerUnits' should be giving me a number equal to the number of units on the map owned by friendly players (including myself) but it always returns 0, what's exactly am I doing wrong? all help is appreciated
-
For each (Integer A) from 1 to ActivePlayers, do (Actions)
-
Loop - Actions
- Set U[4] = (U[4] + 1)
- Player Group - Add (Player(U[4])) to PlayersPlaying
-
Loop - Actions
-
Player Group - Pick every player in PlayersPlaying and do (Actions)
-
Loop - Actions
- Set ActivePlayerUnits = (Number of units in (Units owned by (Picked player)))
-
Loop - Actions
- Game - Display to (All players) the text: (Active Players = + (String(ActivePlayers)))
- Game - Display to (All players) the text: (Players Playing= + (String((Number of players in (All players controlled by a User player)))))
- Game - Display to (All players) the text: (Active Units = + (String(ActivePlayerUnits)))