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:07 am]
Vrael -- NudeRaider
NudeRaider shouted: Vrael ranting still is though
you're a gentleman and a scholar, thank you
[10:07 pm]
NudeRaider -- ya why phone people when you can just write letters
[09:37 pm]
IskatuMesk -- I have never and will never own a phone
[09:15 pm]
NudeRaider -- Vrael ranting still is though
[09:14 pm]
ClansAreForGays -- anticapitalism isnt edgy anymore
[2026-4-13. : 3:31 pm]
Vrael -- it only costs 50% of my post-tax salary for life and in return I get to also become a drone whose sole purpose is CAPITALISM
[2026-4-13. : 3:30 pm]
Vrael -- pssht, you're still using a phone? I just record 100% of my life using my ElonBrainChip
[2026-4-13. : 2:13 pm]
NudeRaider -- bro I don't go anywhere without my phone to record anything significant
[2026-4-13. : 1:28 pm]
Vrael -- Zoan
Zoan shouted: not if u wer there
id say even if you were there its tricky, human memory can be very faulty
[2026-4-12. : 11:55 pm]
Zoan -- not if u wer there
Please log in to shout.


Members Online: Roy, sedatetundra1