• 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] Dmg/sec if a unit is in a specific region

Status
Not open for further replies.
Level 6
Joined
Sep 24, 2015
Messages
174
yo :)

need help for this trigger please : need to soustract 2% of current life from the trigering unit in the region every seconds

  • damage on vampires
    • Event
      • Temps - Every 0.03 seconds of game time
    • Conditions
    • Actions
      • Custom script: set bj_wantDestroyGroup = true
      • Custom script: call RemoveLocation(udg_SlayerPool)
      • Set SlayerPool = slayer pool <gen>
      • Groupe unit - Pick every unit in (Units in slayer pool <gen> matching ((Unit-type of (Matching unit)) Equal to* Vampire)) and do (Actions)
        • Loop - Actions
          • Unit - Set life of (Picked unit) to ((Max life of (Picked unit)) - ((Life of (Picked unit)) x 0.02))
it's not working...
 
Last edited:
Level 6
Joined
Sep 24, 2015
Messages
174
no, it will be activated all the game if the vampire goes in that region.

but actually it worked 1 second and stope to reduce the hps...i don't know why.
 
Status
Not open for further replies.
Top