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

Units HP reaches below 10%

Status
Not open for further replies.
Level 7
Joined
Dec 28, 2009
Messages
257
Heya folks, another question :D

Basically, trigger "
  • Unit - No unit's life becomes Less than 200.00
" is usable only with Specific unit, and it also uses value instead of percentage.

And my question is, is there any system out there or anything that can start trigger with event "Units HP becomes less than 10%" ? Or maybe with value instead of %, but without specific unit, but it could work with any unit?

Thanks, hope you understood me :D
 
you may use a looping trigger if you want 'always' detection unlike depending on attacked or damage detections...put that unit in a group loop;
  • Event
    • Time - Every 0.03 of game time
  • Actions
    • Unit Group - Pick every unit in GROUP and do actions
      • Custom script: if GetWidgetLife(GetEnumUnit()) < GetUnitState(GetEnumUnit(), UNIT_STATE_MAX_LIFE)*0.1 then
      • EVENT HERE
      • Custom script: endif
 
Status
Not open for further replies.
Top