How can i have it so that player 1, 2, 3 and four have their own region for "Triggering player"? I have the 4 regions for each player but i dont want to have to make 4 separate triggers for each player to buy this unit.
I was wondering if I could assign the region to Player 1 and so on. Perhaps an If than statement??
Then create regions and in your map init trigger do set variable region 1 to array(1) etc
Then you can do array(triggering player) where you want and if the triggering player is player 3 it will go to array(3) and complete your action using that region
How can i have it so that player 1, 2, 3 and four have their own region for "Triggering player"? I have the 4 regions for each player but i dont want to have to make 4 separate triggers for each player to buy this unit.
I was wondering if I could assign the region to Player 1 and so on. Perhaps an If than statement??
currently, this is my trigger:
How can i have it so that player 1, 2, 3 and four have their own region for "Triggering player"? I have the 4 regions for each player but i dont want to have to make 4 separate triggers for each player to buy this unit.
I was wondering if I could assign the region to Player 1 and so on. Perhaps an If than statement??
any help is appreciated!
You can create an array of 4 0-1-2-3-4
Then create regions and in your map init trigger do set variable region 1 to array(1) etc
Then you can do array(triggering player) where you want and if the triggering player is player 3 it will go to array(3) and complete your action using that region
Update:
as i was typing my thread i got the idea of an if then statement... will this work if i continue for all 4 players? lol I'm so dumb sometimes..
@copperfront: Go
Would be much easier. Do it like gorang said, but use the player as index in the array (players ar represented as integer in sc2)
Don't forget to initialize the region array with yout player regions...
Cheers Then
@Thenarden: Go
Thanks alot and thanks gorang, missed your post!