• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

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

Status
Not open for further replies.
Level 7
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