Ok so i'm trying to make it when someone leaves the game, it equally gives all the units owned by that player to the players still in the game.
I tried using this trigger:
Condition:
Neutral commands atleast 1 [any unt]
Action:
Kill all flag owned by neutral
Kill all probe owned by neutral
Give all [any unit] to force 1
Preserve trigger
Can i not use force 1 as a player to recieve units or am i doing something wrong?
None.
What is probably happening, is that you gave the trigger to a wrong player. Only players 1-8 can run triggers, so if you checked another player for the trigger owner, it will never run. What you could do, is just copy that trigger for each player 1-8, or give it to a computer player that will always be in the game. This should fix it.
None.
cant you set it under all players?
None.

Master has given Dobby a doctorate! Dobby is free!
Give all [any unit] to force 1
Make sure you have this trigger owned by Force 1, or All players.
It should say "Give all [any unit] owned by Neutral to Force 1."
You might have the trigger owned by an invalid player [9-11, the unknowns, or neutral], or you might have given the trigger to a computer and made it so the "owned by" is followed by "current player" -- which won't work.
You didn't really tell us what's going wrong--whether it's not happening at all, or if it's giving to just one player, etc.
cant you set it under all players?
Yes you can.
And I see nothing wrong with the trigger. Your problem is probably what Vrael described - you have this trigger for a player that does not run triggers because he either just left the game or is P9+.
None.
Is this correct?
I was under the impression that give all any unit to force 1 would give all any unit to one player (the first player in force 1). Incorrect, see Kaias' post.
If nothing is happening, then Vrael is right.
I'd personally have it owned by force 1, and give 1 any unit to current player.
Post has been edited 1 time(s), last time on Aug 7 2009, 3:55 am by rockz.
"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"
I've been away from mapping for a while, but I was under the impression you couldn't use the Give action with groups. Give the trigger to Force 1 and make the action Give to Current Player.
DTBK is absolutely right. You can't give to a group like All players, Forces, or Neutral players, only to individual players. His solution will work as well.
None.
Removed incorrect information.I've been away from mapping for a while, but I was under the impression you couldn't use the Give action with groups. Give the trigger to Force 1 and make the action Give to Current Player.
All units will be given to the first player to run the trigger.
DTBK's trigger with give 1 instead of all will suffice and distribute the units within a few trigger cycles depending on the number of players remaining and units owned by the leaving player.
Post has been edited 4 time(s), last time on Aug 7 2009, 2:51 pm by Mini Moose 2707. Reason: Corrections.
None.
I'm calling technicaility on the word can't here. You most certainly CAN give units to a force. When you give units to a force, each player on the force receives that amount. (if they exist, of course) Giving to a force does what it is told and does not logically account for an even distribution among the specified receivers. In this case, "all" units is specified. The first player (lowest number) in the force will receive the specified quantity (all) immediately and none will remain for the other players.
The only technical fault is that yes you
can do it, but no it doesn't do anything. Starcraft has no way of determining which eligible player to give to or how to distribute it. If you give all the units to Force 1, it will give none away. If you give 1 unit to Force 1, it will again do nothing.
I'm speaking out of both experience and a recently created test map to ensure its veracity.
And yes, Mooses changes to DTBK's suggestion are necessary, I just didn't bother elaborating since it seemed very obvious.
None.
I stand corrected. This is the trigger I misremembered from defense maps:
Trigger("\x006Defender"){
Conditions:
Bring("Player 12", "Any unit", "Anywhere", At least, 1);
Actions:
Give Units to Player("Player 12", "Current Player", "Any unit", 1, "Anywhere");
Preserve Trigger();
}
None.