Staredit Network

Staredit Network -> UMS Assistance -> Sharing Out The Remaining 'Any Units'
Report, edit, etc...Posted by Staredit.Net Essence on 2005-03-19 at 07:38:09
Hi,

When someone gets kicked or leaves in a D game and has built all there cannons, bunkers or sunkens. Is there some way i can make a trigger that will share the remaining units and defense between the remaining players?

CODE
> Some Condition < -- Give 1 any unit owned by player* to current player


I tried putting this trigger by making a civilian for each player but when the player leaves or gets dropped from the game, the civilian is suposedly still owned by blue therefore not making the condition true

Thanks in Advance,
--Shadow
Report, edit, etc...Posted by MapUnprotector on 2005-03-19 at 10:04:20
When a player leaves the game, that players units are given to p12

Use this tutorial
http://www.staredit.net/index.php?tutorial=46
Report, edit, etc...Posted by warhammer40000 on 2005-03-19 at 12:50:32
I have never tried it but u could also try this-

For-All Players

Triggers-
*player 5 owns no 'BANME'

Actions-
Give all units owned by *player 5 to *player 1
wait 100 millis
set *switch 18



NEW TRIG
For Player 5

Tiriggers-
*Swicth 18 is set

Actions-
Defeat

*Can be different (Its just an exmp)

It would take aot of these but it would take about 20 minutes to make a defeat switch for evry player...
Report, edit, etc...Posted by (U)Bolt_Head on 2005-03-19 at 14:12:15
Nope that wouldn't work,
1 because the units are owned by player 5 after he leaves
2 because player 5 can't run triggers when he isn't there.
3 it would give them all to player 1, Not splitting it up.
Report, edit, etc...Posted by chuiu on 2005-03-19 at 14:34:08
I think he ment when player 5 is still in the game but getting baned.
Report, edit, etc...Posted by warhammer40000 on 2005-03-19 at 14:47:16
QUOTE(chuiu_os @ Mar 19 2005, 02:34 PM)
I think he ment when player 5 is still in the game but getting baned.
[right][snapback]168198[/snapback][/right]

correct chuiu!

try looking at the trigger for more then .03 seconds....

Give all units owned by *player 5 to *player 1
wait 100 millis
set *switch 18

anyway, that is only for p1... but its a good basic version!
Report, edit, etc...Posted by DT_Battlekruser on 2005-03-19 at 16:38:23
It works, but uses twice the triggers. So why use it?
Next Page (1)