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.
[2024-4-27. : 9:38 pm]
NudeRaider -- Ultraviolet
Ultraviolet shouted: NudeRaider sing it brother
trust me, you don't wanna hear that. I defer that to the pros.
[2024-4-27. : 7:56 pm]
Ultraviolet -- NudeRaider
NudeRaider shouted: "War nie wirklich weg" 🎵
sing it brother
[2024-4-27. : 6:24 pm]
NudeRaider -- "War nie wirklich weg" 🎵
[2024-4-27. : 3:33 pm]
O)FaRTy1billion[MM] -- o sen is back
[2024-4-27. : 1:53 am]
Ultraviolet -- :lol:
[2024-4-26. : 6:51 pm]
Vrael -- It is, and I could definitely use a company with a commitment to flexibility, quality, and customer satisfaction to provide effective solutions to dampness and humidity in my urban environment.
[2024-4-26. : 6:50 pm]
NudeRaider -- Vrael
Vrael shouted: Idk, I was looking more for a dehumidifer company which maybe stands out as a beacon of relief amidst damp and unpredictable climates of bustling metropolises. Not sure Amazon qualifies
sounds like moisture control is often a pressing concern in your city
[2024-4-26. : 6:50 pm]
Vrael -- Maybe here on the StarEdit Network I could look through the Forums for some Introductions to people who care about the Topics of Dehumidifiers and Carpet Cleaning?
[2024-4-26. : 6:49 pm]
Vrael -- Perhaps even here I on the StarEdit Network I could look for some Introductions.
[2024-4-26. : 6:48 pm]
Vrael -- On this Topic, I could definitely use some Introductions.
Please log in to shout.


Members Online: Roy, Dem0n