No enemy units in range/region when timer ends

The newbie

New Member
Reaction score
0
Code:
Farm2 A Copy
    Events
        Time - qqq_timer1 expires
    Conditions
        And - All (Conditions) are true
            Conditions
A hero of enemy (player 8, 9 ,10 ,11, 12) of player red is (within range of BUILDINGX or in region RANDOMREGION).
    Actions
        Unit - Change ownership of BUILDINGX 0025 <gen> to Player 1 (Red) and Change color

See what I want?
When the trigger ends I need a condition that "cancels" the action if there is a unit(hero!) belonging to an enemy of player (1) red.

I just can't find any coondition that says that. I thought about:
Code:
(All units of (Units owned by Player 8/9/10/11/12 (Brown)) are in Region 002 <gen>) Equal to False
But that doesn't specify that it HAS to be a hero, coz with that it could have it's hero in the region (= cancelling the ownership-change), but another unit somewhere else, and therfor not calcelling the action ;(

Understand? xD

Thanks in advance
 

perkeyone

something clever
Reaction score
71
try this

integer comparison>
number of units in unit group>
units within range of 'point' matching 'condition'>
and>
boolean - unit classification check - matching unit is a hero equal to true
boolean - player is an enemy of player - owner of matching unit
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top