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