Hi, im not sure if this is the right area for this question.
I wanted to convert one of my SC-BW custom maps to SC2, i thought it would be very simple with just converting the triggers.
But i cant find something that can switch owners of units in a region, or even something that returns all units in a region.
It seems like i need some loop for this, i tried to figure out how i could put the number of units in a area into an integer? how can i do this (for me very simple) action like change a user of all units in a region?
Anyone got a simple idea? how i can transfer all units of player X in a region to player Y ?
Use the trigger action "Pick Each Unit In Unit Group". Set the unit group to "Unites In Region Matching Condition" with the condition "Player: X". Then the action "Change Owner" with "Unit: Picked Unit" and "Player: Y".
Hi, im not sure if this is the right area for this question.
I wanted to convert one of my SC-BW custom maps to SC2, i thought it would be very simple with just converting the triggers.
But i cant find something that can switch owners of units in a region, or even something that returns all units in a region.
It seems like i need some loop for this, i tried to figure out how i could put the number of units in a area into an integer? how can i do this (for me very simple) action like change a user of all units in a region?
Anyone got a simple idea? how i can transfer all units of player X in a region to player Y ?
@fnxGRL: Go
Use the trigger action "Pick Each Unit In Unit Group". Set the unit group to "Unites In Region Matching Condition" with the condition "Player: X". Then the action "Change Owner" with "Unit: Picked Unit" and "Player: Y".
@Demolion:
thank you works fine!