So basically what my problem is, is that I build a map, where 2 teams send each other units (similar to line wars) and I define my income, which units to send to which side of the map, etc by the player number.
Now the player number does not apply to the player slots, but the order the players join the lobby... => How can I solve this problem? I want that a player can be swapped into team 2, without "breaking" the map mechanics.
If there are more details necessary for helping me, just let me know and I post whatever is missing.
Thank you for the fast reply and sorry for another stupid question, but how would i check in which lobby team a player is/was ?
Do I have to write a method there or is there already one I could use in a "IfThenElse" - I have an AI in each team (the summoned creeps for the enemy team), but I can't find any comparison about "player is allied with" or something like that.
So basically what my problem is, is that I build a map, where 2 teams send each other units (similar to line wars) and I define my income, which units to send to which side of the map, etc by the player number. Now the player number does not apply to the player slots, but the order the players join the lobby... => How can I solve this problem? I want that a player can be swapped into team 2, without "breaking" the map mechanics.
If there are more details necessary for helping me, just let me know and I post whatever is missing.
Thank you all in advance for your help,
Greetings NiasRah
Create or store your own teams in variables by looping through the player on game start and sorting them according to which lobby team they were on.
Thank you for the fast reply and sorry for another stupid question, but how would i check in which lobby team a player is/was ?
Do I have to write a method there or is there already one I could use in a "IfThenElse" - I have an AI in each team (the summoned creeps for the enemy team), but I can't find any comparison about "player is allied with" or something like that.
One of the player group functions is enemies/allies of player. You could probably use that to set something up.
If (player is in player group) == true
then
Player in player group is a condition blizzard provides us, use it.
Still alive and kicking, just busy.
My guide to the trigger editor (still a work in progress)
Thanks alot MaskedImposter and willuwontu for your help and here I personally get a special
because I was so blonde to not think about looking for that.