Depending on how your going to setup your AIs and when they're going to become allies, you can use the Action "Set Alliance" to make 2 players/etc. allies, hostiles, or neutrals.
"Player -Make player (# Slot of the 1st AI) and player (# Slot of the 2nd AI) treat each other as Ally With Shared Vision"
If your doing multiple allies and enemies, I recommend adding them to their respective groups via "Add Player to Player Group" and then use "Set Alliance for Player Group" to reduce the painful process of spamming "Set Alliance" and keeping track of who are enemies and who are allies:
"Player -Make all players in (Player Group) treat each other as Ally With Shared Vision"
With both Player Groups ready, you can then use the "Set Alliance Between Two Player Groups" action in order to make them enemies or allies:
"Player -Make all players in (Player Group 1) treat all players in (Player Group 2) as Enemy"
Hi, I am absolutely new to Starcraft II map editing I do not know how to write
triggers AT ALL I was wondering please if anybody could show me how to write
a trigger that will make two or more AI players ally with each other I do not want
to set them as allies in the map editor I want the trigger to do it for me, any help
would be great thanks. I hope that I am posting this in the write place I am new
to this site so please excuse me if it is in the wrong place.
Depending on how your going to setup your AIs and when they're going to become allies, you can use the Action "Set Alliance" to make 2 players/etc. allies, hostiles, or neutrals.
"Player -Make player (# Slot of the 1st AI) and player (# Slot of the 2nd AI) treat each other as Ally With Shared Vision"
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
If your doing multiple allies and enemies, I recommend adding them to their respective groups via "Add Player to Player Group" and then use "Set Alliance for Player Group" to reduce the painful process of spamming "Set Alliance" and keeping track of who are enemies and who are allies:
"Player -Make all players in (Player Group) treat each other as Ally With Shared Vision"
With both Player Groups ready, you can then use the "Set Alliance Between Two Player Groups" action in order to make them enemies or allies:
"Player -Make all players in (Player Group 1) treat all players in (Player Group 2) as Enemy"
In reply to v3rmillius:
Awesome, thank you, I'll go try that out.
In reply to v3rmillius:
I went and tested it out and it all works great thank you I posted
a screenshot of my trigger below, thanks again, buy.