I want to create an effect that applies to all units within a region when an event becomes active. I am able to apply this effect to any units entering or leaving the region while the event is active, but units that are already inside of the region when the event is triggered are not affected (I assume because they are neither entering nor leaving). How do I get this effect to apply to units already within the region I want to be affected? (At the same time allowing me to dispose with the enter/leave region events and use a constant check of the region when the event is active to catch units coming and going.)
Use the "Pick Each Unit in Unit Group Matching Condition" function. The Unit Group would be "Units in Region."
Then use "Picked Unit" function to reference the unit.
For instance, if I wanted to heal all of the units in the region, I'd use the Pick Each Unit function and apply the action "Set (Picked Unit) Life Perfect to 100"
Use the "Pick Each Unit in Unit Group Matching Condition" function. The Unit Group would be "Units in Region." Then use "Picked Unit" function to reference the unit.
For instance, if I wanted to heal all of the units in the region, I'd use the Pick Each Unit function and apply the action "Set (Picked Unit) Life Perfect to 100"
what do you do to heal units in a region?
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I want to create an effect that applies to all units within a region when an event becomes active. I am able to apply this effect to any units entering or leaving the region while the event is active, but units that are already inside of the region when the event is triggered are not affected (I assume because they are neither entering nor leaving). How do I get this effect to apply to units already within the region I want to be affected? (At the same time allowing me to dispose with the enter/leave region events and use a constant check of the region when the event is active to catch units coming and going.)
Use the "Pick Each Unit in Unit Group Matching Condition" function. The Unit Group would be "Units in Region." Then use "Picked Unit" function to reference the unit.
For instance, if I wanted to heal all of the units in the region, I'd use the Pick Each Unit function and apply the action "Set (Picked Unit) Life Perfect to 100"
@MasterDinadan: Go
Thanks.
what do you do to heal units in a region?