• 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!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Solved] Damage reduction

Status
Not open for further replies.
Level 13
Joined
Jul 2, 2008
Messages
1,182
  • Set Damage
    • Events
      • Game - DamageModifierEvent becomes Equal to 1.00
    • Conditions
      • DamageEventOverride Equal to (==) False
    • Actions
      • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of (Triggering unit)) Equal to (==) Knight
          • UnitMoving[(Custom value of DamageEventTarget)] Equal to (==) True
        • Then - Actions
          • Set DamageEventAmount = (DamageEventAmount - 25.00)
            • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
              • If - Conditions
                • DamageEventAmount Less than or equal to (<=) -16.00
              • Then - Actions
                • Set DamageEventAmount = (DamageEventAmount + 25.00)
              • Else - Actions
                • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  • If - Conditions
                    • DamageEventAmount Less than or equal to (<=) 10.00
                  • Then - Actions
                    • Set DamageEventAmount = 10.00
                  • Else - Actions
        • Else - Actions
Iam using Bribes Damage Engine. I created a trigger that allowes knights to recieve reduced damage while moving. But now i have the problem that the trigger only should fire for players having the upgrade "block". How can i do that? I cant find a condition saying unit has ability or player has upgrade.
 
Status
Not open for further replies.
Top