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.
[10:07 pm]
lil-Inferno -- nah
[08:36 pm]
Ultraviolet -- Inf, we've got a job for you. ASUS has been very naughty and we need our lil guy to go do their mom's to teach them if they fuck around, they gon' find out
[05:25 pm]
NudeRaider -- there he is, right on time! Go UV! :D
[05:24 pm]
lil-Inferno -- poopoo
[05:14 pm]
UndeadStar -- I wonder if that's what happened to me. A returned product (screen) was "officially lost" for a while before being found and refunded. Maybe it would have remained "lost" if I didn't communicate?
[03:36 pm]
NudeRaider -- :lol:
[2024-5-16. : 3:02 am]
Ultraviolet -- I'm gonna send inf to have sex with their moms
[2024-5-16. : 3:02 am]
Ultraviolet -- fuck those motherfuckers
[2024-5-15. : 11:02 pm]
NudeRaider -- PSA: ASUS apparently decided their RMA department needs to "become profitable" and for a while now outright tries to scam customers. They were called out on it a year ago, promised to change, but didn't. https://www.youtube.com/watch?v=7pMrssIrKcY so my recommendation: Stop buying ASUS, and if you already have and need something RMA'd, make sure to not let them bully you into paying.
[2024-5-15. : 3:08 pm]
Oh_Man -- example of wat u mean?
Please log in to shout.


Members Online: 5emmac5523go9