Unit in region trigger help.

Penguin-

Member
Reaction score
4
I'm struggling to make the following condition:
"if there are no enemy heroes in the region"

I just can't work it out. I have got

(Number of units in (Units in Centre Point <gen> owned by Player 7 (Green))) Equal to 0

This doesn't make sure it's a hero and i'd have to make one for each enemy.

I have been looking through the Boolean "unit in region" condition and the "unit belongs to an enemy of player" condition and the "unit is a hero" without success.

Any help would be much appreciated.

p
 

denmax

You can change this now in User CP.
Reaction score
155
You know, there is a MATCHING, make it (Units in Centre Point owned by (Player 7 (Green)) matching (((Matching Unit) is a Hero) Equal to True))
 

Penguin-

Member
Reaction score
4
yeah ive had that already but i was wondering if there was a way i could do it without making a seperate function for each player. guess not.

p
 

Penguin-

Member
Reaction score
4
i cant find your

"units in region owned by player matching condition"

all i can find is "in region owned by player" OR "in region matching condition"

edit:sorry for the double post :(
 

denmax

You can change this now in User CP.
Reaction score
155
Then use in region matching conditions..
just change the matching conditions to
(((Owner of (Matching Unit)) Equal to (Player 7 (Green)) and (((Matching Unit) is a Hero) Equal to True) and ((Matching unit) is alive) Equal to True))
 

Sooda

Diversity enchants
Reaction score
318
Code:
Region Check
    Events
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Number of units in (Units in (Playable map area) matching ((((Matching unit) is A Hero) Equal to True) and (((Matching unit) belongs to an enemy of Player 1 (Red)) Equal to True)))) Equal to 0
            Then - Actions
            Else - Actions
Do you have TFT editor ?
 
T

Tamosheik

Guest
You could use a for loop for every Integer A from 1-12 and check that the unit belongs to player (Integer A) - that would at least cut down the number of times you'd have to write the trigger.
 
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