So, I'm using a pick each unit in unit group action and setting it to pick each unit in a region. However, in testing, I'm getting an error about a group loop error trying to perform actions without a pick each unit in unit group begin loop.
The highlighted "Level 1" In the table view is a Region Value. I thought it was perhaps because I was trying to run multiple instances of the same Pick each action with different regions and altered "Set variable" actions, but even with just the first "Pick and Do" action in the trigger, I get the same error. Thoughts?
Simple, how do you want the trigger to know the variable to be the "picked unit"? I'm pretty sure this is what bugs. Try not putting picked unit in the variable itself.
here is what i am going for:
event - unit is killed.
condition - unittype is capitol.
actions - replace killed unit.
pick all units in REGION owned by player (unitowner of killed unit). change owner to player( unitwoner of unit killer).
is there a way to do that last action, to pick all units in a region? i've been looking and i can't find the action.
@gosperglider: Go
Do what you said, in almost exactly those words.
@gosperglider: Go
sorry, i don't know these "unit groups", used to sc1
thanks :)
So, I'm using a pick each unit in unit group action and setting it to pick each unit in a region. However, in testing, I'm getting an error about a group loop error trying to perform actions without a pick each unit in unit group begin loop.
http://imgur.com/a/T7HTQ
The highlighted "Level 1" In the table view is a Region Value. I thought it was perhaps because I was trying to run multiple instances of the same Pick each action with different regions and altered "Set variable" actions, but even with just the first "Pick and Do" action in the trigger, I get the same error. Thoughts?
@BigDonRob: Go
Simple, how do you want the trigger to know the variable to be the "picked unit"? I'm pretty sure this is what bugs. Try not putting picked unit in the variable itself.
Working on projects:
Hear that? That's the sound of me kicking myself. Repeatedly.
Thanks for the help. Now I need to go make a thread in data about upgrades and another here about detecting those upgrades.