• 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.

Unit % life range check GuI

Status
Not open for further replies.
Level 4
Joined
May 1, 2008
Messages
72
Okay so I want to add a condition that X mob does Y attack when at 50% hp, but the map doesn't count it 50% Hp if he goes from 51% to 49%, how do I make it a range, 47-53% for example? In GuI please.
 
Level 10
Joined
Oct 31, 2009
Messages
352
If this event will only happen once per unit:

  • Half life cast
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • And - All (Conditions) are true
        • Conditions
          • (Unit-type of (Attacked unit)) Equal to X
          • (Percentage life of (Attacked unit)) Less than 50.00
    • Actions
      • Unit - Order (Attacked unit) to Orc Tauren Chieftain - War Stomp
      • Trigger - Turn off (This trigger)


If it is possible that it will occur several times per unit:

  • Half life cast below
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • And - All (Conditions) are true
        • Conditions
          • (Unit-type of (Attacked unit)) Equal to X
          • (Percentage life of (Attacked unit)) Less than 50.00
    • Actions
      • Unit - Order (Attacked unit) to Orc Tauren Chieftain - War Stomp
      • Trigger - Turn on Half life cast above <gen>
      • Trigger - Turn off (This trigger)
  • Half life cast above
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • And - All (Conditions) are true
        • Conditions
          • (Unit-type of (Attacked unit)) Equal to X
          • (Percentage life of (Attacked unit)) Greater than 50.00
    • Actions
      • Trigger - Turn on Half life cast below <gen>
      • Trigger - Turn off (This trigger)

Make certain the 2nd trigger listed is initally turned off.

Hope this helps mate :mwahaha:
 
Status
Not open for further replies.
Top