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.
[12:00 am]
Oh_Man -- he hasnt won a single game so far this is hilarious
[11:41 pm]
Oh_Man -- new arty username Rage Against The Machine
[10:14 pm]
Oh_Man -- https://m.youtube.com/watch?v=KPXri8q9ZBs artys vsing the bot now
[08:12 pm]
Ultraviolet -- do you even lift bro?
[2026-9-23. : 5:21 pm]
NudeRaider -- Oh_Man
Oh_Man shouted: NudeRaider yeh thts straight up cheating
the mutas yes, the wraiths probably not. Have you even watched the video? ;)
[2026-9-23. : 12:56 pm]
Oh_Man -- NudeRaider
NudeRaider shouted: Oh_Man Artosis hasn't caught on how devastating the perfect focus fire is. With the mutas he was like "the Mutas always seem to have less hp than against a human". But he didn't notice that the flock he had selected always just had one muta that was hurt. Same with the wraiths here. He's talking about how valks+wraith is gonna destroy Pluto's valks, then 5s later he's dumbfounded the human player's air is just gone and he never figured out why. And for some reason didn't even think to go back and look at the battle.
yeh thts straight up cheating
[2026-9-23. : 12:24 pm]
Oh_Man -- arty's done another vid. he's also announced he's going to organise showmatches with pro, with NO maphacks, so we can see its actual capabilities
[2026-9-23. : 10:09 am]
NimoStar -- It can by playing the same map thousands of times. It is similar to AI speedrunning games
[2026-9-23. : 2:30 am]
Symmetry -- I dreamed about that as a kid. The idea of a computer capable of analyzing a starcraft map and calculating the fastest possible way to hit the victory condition
Please log in to shout.


Members Online: UndeadStar, Oh_Man