• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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