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

[Solved] Control Points... Why don't you work?

Status
Not open for further replies.
Level 6
Joined
Jul 1, 2012
Messages
188
  • Event
  • Unit- X <gen> is attacked
  • Conditions
  • Life of X <gen> Less than or equal to 300.00
  • Action
  • Unit - Set Life of X <gen> to 100.00%
  • Unit - Change ownership of X <gen> to (Owner of (Attacking unit)) and Change Color
Why doesn't this simple trigger work?

X= Control Point.

So if X has is attacked and has less than or equal to 300 Health it should get full health and change ownership to the attacking unit.
 
Level 25
Joined
Jul 10, 2006
Messages
3,315
  • Event
  • Unit- X <gen> is attacked
  • Conditions
  • Life of X <gen> Less than or equal to 300.00
  • Action
  • Unit - Set Life of X <gen> to 100.00%
  • Unit - Change ownership of X <gen> to (Owner of (Attacking unit)) and Change Color
Why doesn't this simple trigger work?

X= Control Point.

So if X has is attacked and has less than or equal to 300 Health it should get full health and change ownership to the attacking unit.

Post a testmap; I don't see why that wouldn't work.
 
Level 28
Joined
Jan 26, 2007
Messages
4,789
I tried re-creating that trigger and it worked just fine (although I made a few tweaks so it works with all control points, not a specific one).

  • Control Point
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Control Point
      • (Life of (Triggering unit)) Less than or equal to 100.00
    • Actions
      • Unit - Order (Attacking unit) to Stop
      • Unit - Set life of (Triggering unit) to 100.00%
      • Unit - Change ownership of (Triggering unit) to (Owner of (Attacking unit)) and Change color
Worked like a charm.
 
Status
Not open for further replies.
Top