Heres my problem, I'm working on an intro cut-scene where units (four ghosts under the control of a computer) walk into posistion before being given to the players in the game (1-4).
The problem comes when there isn't a full house, the units supossed to be given to players who aren't there are given to a different computer and begin attacking the unit of those in the game.
How would I make the trigger so that the units ONLY go to players who are in the game?
Here is the trigger from trigedit:
CODE
Trigger("Player 8","Force 1"){
Conditions:
Bring("Player 8", "Terran Ghost", "Intro- Riders1", Exactly, 1);
Bring("Player 8", "Terran Ghost", "Intro- Riders2", Exactly, 1);
Bring("Player 8", "Terran Ghost", "Intro- Riders3", Exactly, 1);
Bring("Player 8", "Terran Ghost", "Intro- Riders4", Exactly, 1);
Actions:
Give Units to Player("Player 8", "Player 1", "Terran Ghost", All, "Intro- Riders1");
Give Units to Player("Player 8", "Player 2", "Terran Ghost", All, "Intro- Riders2");
Give Units to Player("Player 8", "Player 3", "Terran Ghost", All, "Intro- Riders3");
Give Units to Player("Player 8", "Player 4", "Terran Ghost", All, "Intro- Riders4");
Kill Unit At Location("Player 8", "Terran Siege Tank (Tank Mode)", All, "Intro- Caravan Moves here");
Kill Unit At Location("Player 8", "Terran Ghost", All, "Intro- Riders1");
Kill Unit At Location("Player 8", "Terran Ghost", All, "Intro- Riders2");
Kill Unit At Location("Player 8", "Terran Ghost", All, "Intro- Riders3");
Kill Unit At Location("Player 8", "Terran Ghost", All, "Intro- Riders4");
Comment("Intro- Give/Kill");
}
The conditions just make sure that the units are all in the correct posistion.
The actions give the units to players 1-4 and kill those left over for players who aren't there.