This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
You left before I could give you the code!
So here it is, anyone else can use it if needed, basically it just takes everyone, checks their races and sets alliances based on race ( Z v T v P )
Simple, but he needed it.
Set Player Alliances Events Game - Map initialization Local Variables Enemy Player = 0 <Integer> Terran Group = (Empty player group) <Player Group> Protoss Group = (Empty player group) <Player Group> Zerg Group = (Empty player group) <Player Group> Player = 0 <Integer> Conditions Actions Player Group - For each player Player in (Active Players) do (Actions) Actions General - If (Conditions) then do (Actions) else do (Actions) If (Race of player Player) == Protoss Then Player Group - Add player Player to Protoss Group Else General - If (Conditions) then do (Actions) else do (Actions) If (Race of player Player) == Terran Then Player Group - Add player Player to Terran Group Else General - If (Conditions) then do (Actions) else do (Actions) If (Race of player Player) == Zerg Then Player Group - Add player Player to Zerg Group Else Player Group - For each player Player in Protoss Group do (Actions) Actions Player - Make all players in Protoss Group treat each other as Ally With Shared Vision Player Group - For each player Enemy Player in Terran Group do (Actions) Actions Player - Make player Player and player Enemy Player treat each other as Enemy Player Group - For each player Enemy Player in Zerg Group do (Actions) Actions Player - Make player Player and player Enemy Player treat each other as Enemy Player Group - For each player Player in Terran Group do (Actions) Actions Player - Make all players in Terran Group treat each other as Ally With Shared Vision Player Group - For each player Enemy Player in Protoss Group do (Actions) Actions Player - Make player Player and player Enemy Player treat each other as Enemy Player Group - For each player Enemy Player in Zerg Group do (Actions) Actions Player - Make player Player and player Enemy Player treat each other as Enemy Player Group - For each player Player in Zerg Group do (Actions) Actions Player - Make all players in Zerg Group treat each other as Ally With Shared Vision Player Group - For each player Enemy Player in Protoss Group do (Actions) Actions Player - Make player Player and player Enemy Player treat each other as Enemy Player Group - For each player Enemy Player in Terran Group do (Actions) Actions Player - Make player Player and player Enemy Player treat each other as Enemy
@Dustin374: Go
It's redundant to do this action for each player in the player group. "Player - Make all players in Terran Group treat each other as Ally With Shared Vision"
@deathtorn: Go
I didn't even notice, ya those should be out of the for Each player loop.
Here's a revised version for efficiency.
Set Player Alliances Events Game - Map initialization Local Variables Terran Group = (Empty player group) <Player Group> Protoss Group = (Empty player group) <Player Group> Zerg Group = (Empty player group) <Player Group> Player = 0 <Integer> Conditions Actions Player - Make all players in (Active Players) treat each other as Enemy Player Group - For each player Player in (Active Players) do (Actions) Actions General - If (Conditions) then do (Actions) else do (Actions) If (Race of player Player) == Protoss Then Player Group - Add player Player to Protoss Group Else General - If (Conditions) then do (Actions) else do (Actions) If (Race of player Player) == Terran Then Player Group - Add player Player to Terran Group Else General - If (Conditions) then do (Actions) else do (Actions) If (Race of player Player) == Zerg Then Player Group - Add player Player to Zerg Group Else Player - Make all players in Protoss Group treat each other as Ally With Shared Vision Player - Make all players in Terran Group treat each other as Ally With Shared Vision Player - Make all players in Zerg Group treat each other as Ally With Shared Vision
You left before I could give you the code!
So here it is, anyone else can use it if needed, basically it just takes everyone, checks their races and sets alliances based on race ( Z v T v P )
Simple, but he needed it.
@Dustin374: Go
It's redundant to do this action for each player in the player group.
"Player - Make all players in Terran Group treat each other as Ally With Shared Vision"
@deathtorn: Go
I didn't even notice, ya those should be out of the for Each player loop.
@Dustin374: Go
Here's a revised version for efficiency.