Friendly Fire Trigger - Where is the mistake?

warden13

New Member
Reaction score
32
I am confused. I cant see the mistake. Can you?

Trigger:
  • Friendly Fire
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • And - All (Conditions) are true
        • Conditions
          • (Integer((Percentage life of (Attacked unit)))) Greater than 10
          • ((Attacked unit) belongs to an ally of (Owner of (Attacking unit))) Equal to True
          • Or - Any (Conditions) are true
            • Conditions
              • ((Attacked unit) has buff Aerial Shackles) Equal to False
              • ((Attacked unit) has buff Entangling Roots) Equal to False
              • ((Attacked unit) has buff Poison (Info)) Equal to False
              • ((Attacked unit) has buff Shadow Strike) Equal to False
    • Actions
      • Unit - Order (Attacking unit) to Stop
 

Accname

2D-Graphics enthusiast
Reaction score
1,462
what exactly is your problem? the only confusing line i can find is:
Code:
(Integer((Percentage life of (Attacked unit)))) Greater than 10
which will make all allied units with less then 10% life attackable.
 

warden13

New Member
Reaction score
32
It is supposed to stop all attacks to allies when he got more then 10% hp. If ally got less then 10% hp, it must check if he has damage over time buffs. Nothing works.
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
Shouldnt the buff checks be equal to true
 

ludnica

Long gone
Reaction score
61
If they are the units, having those debuffs, won't be attackable. And you don't want that.
 

warden13

New Member
Reaction score
32
I did it thanks all.

Trigger:
  • Friendly Fire
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • ((Attacked unit) belongs to an ally of (Owner of (Attacking unit))) Equal to True
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Integer((Percentage life of (Attacked unit)))) Greater than 10
        • Then - Actions
          • Unit - Order (Attacking unit) to Stop
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Or - Any (Conditions) are true
                • Conditions
                  • ((Attacked unit) has buff Aerial Shackles) Equal to True
                  • ((Attacked unit) has buff Entangling Roots) Equal to True
                  • ((Attacked unit) has buff Poison (Info)) Equal to True
                  • ((Attacked unit) has buff Shadow Strike) Equal to True
            • Then - Actions
            • Else - Actions
              • Unit - Order (Attacking unit) to Stop
 
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