Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: When a player leaves, allies get units evenly
When a player leaves, allies get units evenly
Nov 2 2007, 10:56 pm
By: woland  

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



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?



None.

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



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.



None.

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



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.



None.

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



Yea thx for the info



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[08:05 pm]
Symmetry -- 50% of strings in starcraft are references
[2026-6-07. : 1:59 am]
RIVE -- Lots of fun little nods to different works of others in the cheats too.
[2026-6-06. : 5:17 pm]
Oh_Man -- so i was today years old wen i learned rebel yell starcraft mission is named after a billy idol song. makes me wonder wat other missions are named after songs
[2026-6-04. : 3:42 am]
RIVE -- Hellooooo, Nurse
[2026-6-03. : 4:19 pm]
NudeRaider -- Hello World!
[2026-6-01. : 4:03 pm]
IskatuMesk -- no Hello World? No Hello . jpeg? Not even ddosing some government website? smh my head
[2026-5-31. : 10:02 pm]
Symmetry -- I was really just figuring out how to compile
[2026-5-31. : 10:02 pm]
Symmetry -- I didn't make it do anything
[2026-5-31. : 9:17 pm]
Ultraviolet -- hell yeah. did you have trouble making the button functional, or just haven't gotten there yet?
[2026-5-31. : 8:29 pm]
Symmetry -- I made the marine shoot lasers and gave the medic a nonfunctional button
Please log in to shout.


Members Online: RIVE