For the sake of simplicity, just use "if iTeam != loopPlayer.getTeam()". Compare the integer team value for the player that is active to the integer team value of the players being looped over.
Thank you. I made that change and the Field seems to be working properly when I built it (tried it in a couple of games with WorldBuilder). Could someone let me know if there are any other errors that need fixing? This is the latest version of the .py file.




It is so painfully slow and hangs are so often and so long that I do give up on this game. There is something seriously wrong with automation of units. I have often situation when i get switched after the turn to one of my active units to do some action and than suddenly I am switched to the movie of some of my automated units fighting with sea creature. Shouldn't it be done already before i take control?
plenty of memory everywhere powered by 980X