Staredit Network

Staredit Network -> UMS Assistance -> [SOLVED] Remooving Units For Players That Left
Report, edit, etc...Posted by Middle_Finger on 2006-03-17 at 14:07:16
I'm making a bound & i need to remoove units for players taht left & if Player 1 left (the one who commands ban,lagtest, music settings) i need to give those units to player 2, for example. helpsmilie.gif
Report, edit, etc...Posted by Urmom(U) on 2006-03-17 at 14:40:51
You could do a simple trigger like this assuming that you aren't using player 12 for anything:

Trigger
Conditions:
¤ Player 12 brings at least 1 men to location 'Anywhere'
¤ Player 1 commands exactly 0 men.
¤ Player 2 commands at least 1 men.
Actions:
¤ Give all men owned by player 12 at location 'anywhere' to player 2


That trigger would give ALL of the units for all players that had left to player 2, so if player 4 had left in the beginning and then player 1 leaves, you would be giving player 1 and player 4's men to player 2.

If you want to remove the other players units (besides player 1) then do this. It might interfere with giving player 1's units to player 2.

Trigger
Conditions:
¤ Player 12 commands at least 1 men
Actions:
¤ Remove all men for player 12
¤ Preserve trigger

Make sure that the trigers are in this order so that the second trigger will run after the first.
Report, edit, etc...Posted by Kenoli on 2006-03-17 at 14:41:26
When a player leaves the game his units are given to Player 12.
If you're using Staredit or X-tra edit get Player 9-12 Triggers and import them into your map.
You can just give the units from P12 to another player, or you can kill them or whatever you want to do.
Report, edit, etc...Posted by Corbo(MM) on 2006-03-17 at 15:07:29
yeah they said it all and with tutorials and everything
just in case you didn't get it
just remove all men for player 12 because when a player leaves their units are given to player 12
have fun
Report, edit, etc...Posted by Middle_Finger on 2006-03-18 at 13:47:23
thx smile.gif
Report, edit, etc...Posted by fritfrat(U) on 2006-03-18 at 16:00:06
Most likely, you will want to make it so it removes all bounders/zerglings for p12 and gives all musicman/lagtest guys owned by p12 to the next player, using urmom's conditions.

I do suggest not giving the banner to p2, but instead removing it or adding in a voting system. I personally just wouldn't want someone who joined be able to control banning, but the decision is up to you.
Next Page (1)