• 🏆 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!

Damage Detection System

Status
Not open for further replies.
Level 10
Joined
Sep 25, 2013
Messages
521
Hi, i just started using this damage detection system. It seems pretty useful. The problem is that im using it to capture buildings when they get exactly to the specified hit points, and they are capturing well enough, but the trigger isnt performing the rest of the actions.

I wan't the building to be restored to 100% hitpoints and for a message to appear. Any help is appreciated

  • Region Capture
    • Events
      • Game - PDD_damageEventTrigger becomes Equal to 1.00
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of PDD_target) Equal to Amon Amarth
          • (Life of PDD_target) Less than or equal to 1000.00
          • Or - Any (Conditions) are true
            • Conditions
              • PDD_damageType Equal to PDD_PHYSICAL
              • PDD_damageType Equal to PDD_SPELL
        • Then - Actions
          • Unit - Change ownership of PDD_target to (Owner of PDD_source) and Change color
          • Unit - Set life of PDD_target to 100.00%
          • Game - Display to (All players matching (((Matching player) is an ally of (Owner of PDD_source)) Equal to True)) for 10.00 seconds the text: You captured a Fish...
        • Else - Actions
 
Status
Not open for further replies.
Top