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.
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):
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
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
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.
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 -
githubReached the top of StarCraft theory crafting 2:12 AM CST, August 2nd, 2014.
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!
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 -
githubReached the top of StarCraft theory crafting 2:12 AM CST, August 2nd, 2014.