Staredit Newtork
Community
StarCraft
Games
Site
Favourites
When a player leaves, allies get units evenly

Creator: woland
Time: Nov 2 2007, 10:56 pm

Post #1     woland Nov 2 2007, 10:56 pm

[Avatar]
 offline contact
I know how to make a trigger so that when someone leaves a player gets his unit. However is there a way for this trigger to dsitribute units evenly among allies?
Top

Post #2     who Nov 2 2007, 11:31 pm

[Avatar]
someone09
 offline contact
This method should be relatively even...

For each player, have a trigger that, if P12 commands at least 1 anyunit, give 1 anyunit to current player, and preserve.
(user posted image)
Top

Post #3     Hugel Nov 2 2007, 11:33 pm

[Avatar]
 offline contact
The simplest way to do it would be:
Force:
Allies

Condition:
Player 12 brings any unit to anywhere.

Action:
Give 1 any unit from Player 12 to Current Player.
Preserve Trigger.

Since its set for a force, it will run for anyone present in the game.
Its set to current player, so each person in the force will run it once and then it will cycle through all players until they all get one.
Then it will preserve and run again for the same players.
Example, you have 5 players, and 6 units for Player 12.
Each player will then take 1 unit, 1 at a time from Player 12.
It will cycle and then the first player to get a unit will get a second unit.

This does not check for different kinds of units however, and would give buildings and units equally.
You could make a trigger like this for each type of unit you wanted to give back to allies.
You could also then add some randomization features to help with predictability.
Top

Post #4     woland Nov 2 2007, 11:39 pm

[Avatar]
 offline contact
Yea thx for the info
Top
0 members in this topic: None
+ 0 guest(s)


[05:51 pm]
Phobos[MM] -- Paravin with a period at the end...? lolwtf
[05:46 pm]
Phobos[MM] -- Hmmm.
[05:46 pm]
Phobos[MM] -- I should do something instead of jsut thinking of what to do.
[05:44 pm]
Phobos[MM] -- I see.
[05:39 pm]
Paravin. -- Gonna do an all-night gaming spree tommorow. :3
[05:29 pm]
Phobos[MM] -- No they aren't wacky, they suck at acting, they're just good at playing :P
You must log in to shout.

©2003-2008 Staredit Network.
Starcraft & Starcraft II are trademarks of Blizzard Entertainment.
Site Index   |   Terms of Service   |   Privacy Policy   |   Contributions