Staredit Network

Staredit Network -> UMS Assistance -> Player Leaves Give Units
Report, edit, etc...Posted by Knx. on 2006-10-07 at 00:41:35
I want to make the following:

When a player leave, give all units owned from that player to any other human player.

How I do that ?

helpsmilie.gif


Thanks.
Report, edit, etc...Posted by xmrxsiegecopx on 2006-10-07 at 00:49:54
Tutorial: Giving Units from Player 12
Report, edit, etc...Posted by Knx. on 2006-10-07 at 01:36:25
Thanks.

"When we need something we don't find, when we don't need we find" tongue.gif

ADDITION:
Well, I made a new map only with this trigger and it worked, but on my real map it isn't working...
I don't know whats going on!! sad.gif

CODE

Players:
 Force1

Conditions:
 Command(P12, AtLeast, 1, Men);

Actions:
 GiveUnits(All, Men, P12, Anywhere, CurrentPlayer);
 PreserveTrigger();
Report, edit, etc...Posted by xmrxsiegecopx on 2006-10-07 at 02:03:34
If a player has no men when he or she leaves, then the trigger won't run. Other than that, the trigger is flawless.
Report, edit, etc...Posted by Laser_Dude on 2006-10-08 at 00:31:58
With one problem. If this is a melee style map, then player 1 will be first in line to get the units.

An Idea I was thinking of is to set P8 to rescueable, then when a player touches the units he gets them.

If it's like a defense map, then try having a trigger that just gives one unit at a time, then the units will be split equally.
Report, edit, etc...Posted by fritfrat(U) on 2006-10-08 at 14:41:05
Or just do a trigger for all human players (like the tutorial suggests). That way there will always be someone to run the trigger, and it wont give the units to a player not in the game, since it gives only to people running it.

P12 Brings atleast 1 men to anywhere: give 1 men owned by p12 to current player. Preserve Trigger.

With hypers it won't take too long to give the units.
Next Page (1)