• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[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