Anything Wrong with my trigger?

ianu74

New Member
Reaction score
8
Is there anything wrong with my trigger? it can't work
Code:
NO attacking allies
    Events
        Unit - A unit Is issued an order targeting an object
    Conditions
        (Issued order) Equal to (Order(attack))
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                ((Target unit of issued order) belongs to an ally of (Owner of (Triggering unit))) Equal to True
                (Integer((Life of (Target unit of issued order)))) Greater than 150
            Then - Actions
                Unit - Order (Ordered unit) to Stop
            Else - Actions
 

gref

New Member
Reaction score
33
PHP:
Attack Ally
    Events
        Unit - A unit Is attacked
    Conditions
        ((Attacking unit) belongs to an ally of (Owner of (Attacked unit))) Equal to True
        (Life of (Attacked unit)) Greater than or equal to 150.00
    Actions
        Unit - Order (Attacking unit) to Stop
 

ianu74

New Member
Reaction score
8
Erm... If thats the case then my unit is attacked , He already got damage. I want it so that the unit does not get damage.
 

Doom-Angel

Jass User (Just started using NewGen)
Reaction score
167
u sure both of the conditions does exist?
try removing them one by one and see which one is the cause of the problem
 

gref

New Member
Reaction score
33
Attacked does NOT equal damage.
I've used this before. Attacked is as you right click or A+click a unit, and before you hit them.
Find out the truth before you say its wrong.
 

Doom-Angel

Jass User (Just started using NewGen)
Reaction score
167
no way......
Attacked is when it's attacked in the moment it gets hit....
 
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