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