Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Creating Units For Missing Players
Creating Units For Missing Players
Nov 14 2012, 11:26 am
By: Oh_Man  

Nov 14 2012, 11:26 am Oh_Man Post #1

Find Me On Discord (Brood War UMS Community & Staredit Network)

OK, so P1, P2, P3 are humans players.

P1 is the human in-game P2 and P3 are empty aka no humans. However when I create units for P2 P3 they are created and attack each other. They also retain the colour of P2 P3.

Now I'm assuming they are P12/Neutral because if a player LEAVES thats what his units become.

However using triggers with ALL PLAYERS condition I can't seem to be able to GIVE these units to other players OR make them invincible (I want them to stop attacking each other, and give them orders).

How do I do this????

The reason I want to use P2 P3 is so I can retain their colours.

EDIT: I have determined that they still belong to players 2 and 3, which is now under some sort of computer control.
By specificing this I am successfully able to change their players, for whatever reason ALL PLAYERS doesn't work.

Post has been edited 1 time(s), last time on Nov 14 2012, 11:34 am by Oh_Man.




Nov 14 2012, 1:47 pm Roy Post #2

An artist's depiction of an Extended Unit Death

This is just a little quirk for SC. Players that are not in the game are not included in groups (e.g., Forces, All Players, Allies, etc.), but they still technically exist. You have to refer to units owned by absent-players by specifying the player (e.g., "Player 1," not "Force 1") for triggers.

Here's the only thing mentioned about it on the wiki page (Which as Nude mentioned, is slightly inaccurate):
Quote from Wiki
When a player who belongs to a group, like Force 1, is not present in the game, any units created via triggers for Force 1 or given to that player will still be owned by that phantom player. Unusually however, the "remove unit" action when applied to the player's group will *not* remove the phantom player's units; instead you must use specifically remove units for that individual player.
If you don't want these phantom units to be created, the easiest way is to change the trigger to be owned by the players you're creating units for and using "Current Player" to create the unit, or using a group (e.g., "Force 1"). Since (as you know) triggers don't run for players that aren't in the game, phantom units would not be created, and phantom units are excluded from groups.

Post has been edited 1 time(s), last time on Nov 15 2012, 12:16 am by Roy. Reason: See Nude's post




Nov 14 2012, 2:55 pm NudeRaider Post #3

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 Wiki
When a player who belongs to a group, like Force 1, is not present in the game, any units created via triggers for Force 1 or given to that player will still be owned by that phantom player.
The wiki is wrong in that regard. The only way to create units for phantom players is creating units for a specific player (aka create 1 space marine for Player 1).
Player groups (force 1-4 and all players) never include absent, neutral or defeated players. Neither in actions nor conditions.




Nov 14 2012, 5:40 pm jjf28 Post #4

Cartography Artisan

Just a little quirk that might save you some headache if you go down this road: the phantom players retain their previous alliances and cannot have that alliance changed*, make sure they can't unally their team prior to leaving should that be a concern.

* - by normal means, the address for alliances lies between the counting tables and unit table making them prime targets for EUPs



TheNitesWhoSay - Clan Aura - github

Reached the top of StarCraft theory crafting 2:12 AM CST, August 2nd, 2014.

Nov 15 2012, 7:49 am Oh_Man Post #5

Find Me On Discord (Brood War UMS Community & Staredit Network)

Surely their alliance's change if the phantom units are given to another player? That's what I've done. I've created the phantom units to retain their player colour, than I've given them to P9 (still retains their colour).

Another odd quirk I encountered was, having now given the phantom units to P9, there was still some weirdness.

I could use ALL PLAYERS to move them to different locations.
However, if I tried to use the same ALL PLAYERS trigger to move them to unwalkable terrain (ie. to freeze them), it does nothing - they keep walking. If I specified to Player 9, then then froze as expected.

So bizarre!




Nov 15 2012, 8:18 pm jjf28 Post #6

Cartography Artisan

Quote
Surely their alliance's change if the phantom units are given to another player? That's what I've done. I've created the phantom units to retain their player colour, than I've given them to P9 (still retains their colour).

Probably would work if you're just looking for the color.

( Course then you haven't actually changed the alliance of the 'phantom' player, but the owner of the unit =P )



TheNitesWhoSay - Clan Aura - github

Reached the top of StarCraft theory crafting 2:12 AM CST, August 2nd, 2014.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[07:47 pm]
Ultraviolet -- Yeah, I suppose there's something to that
[2024-5-06. : 5:02 am]
Oh_Man -- whereas just "press X to get 50 health back" is pretty mindless
[2024-5-06. : 5:02 am]
Oh_Man -- because it adds anotherr level of player decision-making where u dont wanna walk too far away from the medic or u lose healing value
[2024-5-06. : 5:01 am]
Oh_Man -- initially I thought it was weird why is he still using the basic pre-EUD medic healing system, but it's actually genius
[2024-5-06. : 3:04 am]
Ultraviolet -- Vrael
Vrael shouted: I almost had a heart attack just thinking about calculating all the offsets it would take to do that kind of stuff
With the modern EUD editors, I don't think they're calculating nearly as many offsets as you might imagine. Still some fancy ass work that I'm sure took a ton of effort
[2024-5-06. : 12:51 am]
Oh_Man -- definitely EUD
[2024-5-05. : 9:35 pm]
Vrael -- I almost had a heart attack just thinking about calculating all the offsets it would take to do that kind of stuff
[2024-5-05. : 9:35 pm]
Vrael -- that is insane
[2024-5-05. : 9:35 pm]
Vrael -- damn is that all EUD effects?
[2024-5-04. : 10:53 pm]
Oh_Man -- https://youtu.be/MHOZptE-_-c are yall seeing this map? it's insane
Please log in to shout.


Members Online: jun3hong, Ultraviolet, Roy