Staredit Network

Staredit Network -> UMS Assistance -> [SOLVED] Give Units to....
Report, edit, etc...Posted by 00cnr on 2006-06-30 at 13:19:58
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.
Report, edit, etc...Posted by Noober on 2006-06-30 at 13:59:50
You could just create however many ghosts as there are players. Maybe create them for the players first, then give to comp, then give back? Or just do a trig that removes the ghost a player isn't there.
Report, edit, etc...Posted by DT_Battlekruser on 2006-06-30 at 14:00:58
Have each player start with an obscure building in a location, so you can say

C:
-Player 8 brings 1 Ghost to Into- Riders 1
-Player 1 brings 1 Missile Turret to Player Check

A:
-Give 1 Ghost owned by Player 8 at Intro- Riders 1 to Player 1


C:
-Player 8 brings 1 Ghost to Into- Riders 1
-Player 1 brings 0 Missile Turret to Player Check

A:
-Give 1 Ghost owned by Player 8 at Intro- Riders 1 to Player 7

..etc..
Report, edit, etc...Posted by 00cnr on 2006-06-30 at 14:29:11
That will work, thanks.
Next Page (1)