Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Giving units to Players
Giving units to Players
Oct 25 2007, 9:23 am
By: TristanOfVP  

Oct 25 2007, 9:23 am TristanOfVP Post #1



Hey I was making a map and it is for multiplayer so I have a trigger where it gives units to all 5 human players but if there is not 5 human players it gives the units anyway and then the units go hostile.

Is there a way to make the units go neutral or not be given with out a human player present.
If you need to see a copy of the map I can send it.



None.

Oct 25 2007, 1:48 pm NudeRaider Post #2

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

Quote from TristanOfVP
Hey I was making a map and it is for multiplayer so I have a trigger where it gives units to all 5 human players but if there is not 5 human players it gives the units anyway and then the units go hostile.

Is there a way to make the units go neutral or not be given with out a human player present.
If you need to see a copy of the map I can send it.
You probably have a trigger like
Give 1 Dragoon to P1
Give 1 Marine to P2
and so forth.
That method creates units for neutral hostile if the player from the trigger is not present.

Solution 1:
You can avoid it by specifying the trigger owner and use current player. It would look like this:
P1
Condition:
<whatever>
Actions:
Give 1 Dragoon to Current Player

P2
Condition:
<whatever>
Actions:
Give 1 Marine to Current Player

Solution 2:
When you want to give those units for "ghost playes" (or units from leavers) to the remaining players (or optionally remove them) do a trigger like this:

Force of Human Players
Condition:
'Neutral players' brings at least 1 [men] to anywhere
Actions:
Give 1 [men] owned by 'neutral player's at anywhere to Current Player
OR Remove all [men] for 'neutral players'
preserve trigger

If you chose the give action it will favor the players with low numbers. At the game start P1 will get the first unit, P2 the second and so forth until no ghost player units are present anymore.
But when it comes to leavers which only had 1 unit always P1 will get the units if they dont leave the exact same time.
This CAN be avoided if needed so that the units of leavers will be distributed evenly. But then it would be good to know a little more about the map.




Oct 26 2007, 4:40 am TristanOfVP Post #3



Thanks man I appreciate it I will try these out!



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[01:19 pm]
Vrael -- IM GONNA MANUFACTURE SOME SPORTBALL EQUIPMENT WHERE THE SUN DONT SHINE BOY
[2024-5-02. : 1:35 am]
Ultraviolet -- Vrael
Vrael shouted: NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
Gonna put deez sportballs in your mouth
[2024-5-01. : 1:24 pm]
Vrael -- NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
[2024-4-30. : 5:08 pm]
Oh_Man -- https://youtu.be/lGxUOgfmUCQ
[2024-4-30. : 7:43 am]
NudeRaider -- Vrael
Vrael shouted: if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
Yeah I'm not a big fan of Westernhagen either, Fanta vier much better! But they didn't drop the lyrics that fit the situation. Farty: Ich bin wieder hier; nobody: in meinem Revier; Me: war nie wirklich weg
[2024-4-29. : 6:36 pm]
RIVE -- Nah, I'm still on Orange Box.
[2024-4-29. : 4:36 pm]
Oh_Man -- anyone play Outside the Box yet? it was a fun time
[2024-4-29. : 12:52 pm]
Vrael -- if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
[2024-4-29. : 11:17 am]
Zycorax -- :wob:
[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.
Please log in to shout.


Members Online: Roy