Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
Im trying to make a village you can conquer and the trigger should activate when no other units except my own one are on the same region.
Those units respawn in that region.
I can't find any query for multiple units in events.
I would use a periodic event to check the number of units of each player in the region that covers the village. When the number of units controlled by other players is 0, your village is conquered and you can run your triggers.
Maybe this helps.
This trigger seems to be deactivated from default. So it will perhaps never be fired.
Put the "Turn off (This trigger) to the very top - rest will still fire.
Each time you check number of units, you leak a unit group.
You have to use a unit group variable and then clean it.
Set UnitGroup = Units by Neutralie Hostile in Region
If Number of Unit in UnitGroup == 0 then do Actions
Custom script: call DestroyGroup(udg_UnitGroup)
In my signature there is a link to a tutorial called "Things That Leak".
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.