about half a year ago I started a thread with the same issue. Since nobody could help me, I could never finished my map, althought it is actually ready to launch. :/ This is my (last) try to get any help concerning following problem:
The idea of my map:
Team 1: Player 1 and Player 2 and Team 2: Player 3 and Player 4
One Player (Player 1 and 3) only can create units and is about to fight. The other Player (2 and 4) in the team is responsible for gaining ressources and sends them to their teammate who builds units.
The problem is that the playernumber ingame do not correspond to the player set in the lobby, expecially when they are drag n dropped there...
So, I really tried a lot (Triggers, Map varieties,...) but nothing really worked. Can someone please give me a hint how to fix that? I want that Lobby Player 1 is ingame Player 1, Lobby PLayer 2 ingame Player 2 and so on...
Perhaps blizz patched it meanwhile and I don't know?
(The map is called farm'n'fight if you want to check it out)
The previous script will set your team players ids into the teamPlayer[team][] array. You can use this array to find the correct player id for the players on each team.
This way, if you want to spawn an unit for player 1 in team 1, you will have to do:
Hey guys,
about half a year ago I started a thread with the same issue. Since nobody could help me, I could never finished my map, althought it is actually ready to launch. :/ This is my (last) try to get any help concerning following problem:
The idea of my map:
Team 1: Player 1 and Player 2 and Team 2: Player 3 and Player 4
One Player (Player 1 and 3) only can create units and is about to fight. The other Player (2 and 4) in the team is responsible for gaining ressources and sends them to their teammate who builds units.
The problem is that the playernumber ingame do not correspond to the player set in the lobby, expecially when they are drag n dropped there...
So, I really tried a lot (Triggers, Map varieties,...) but nothing really worked. Can someone please give me a hint how to fix that? I want that Lobby Player 1 is ingame Player 1, Lobby PLayer 2 ingame Player 2 and so on...
Perhaps blizz patched it meanwhile and I don't know?
(The map is called farm'n'fight if you want to check it out)
That's the most asked and answered question on this forums. Anyway:
The previous script will set your team players ids into the teamPlayer[team][] array. You can use this array to find the correct player id for the players on each team.
This way, if you want to spawn an unit for player 1 in team 1, you will have to do:
@IliIilI: Go
Hey IliIilI,
thanky for your respond! What type has variable g? Attribute ID (Player) ?
g := playergroup
i := integer
@IliIilI: Go
Does this work for maps with buildings and triggers already placed for each player???
I would test it out, but i dont have sc2 on this computer. Also, if it does work, you mind explaining how to apply your trigger so its newb friendly?
Thanks!