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

[Trigger] Earthquake

Status
Not open for further replies.
Level 9
Joined
Aug 11, 2007
Messages
429
I'm trying to make an earthquake. IT reandomly spawns around the map, and anyone withing 1000 range of it, loses 10 HP per second.

I got it all done but one thing, the damage.


Who can i get it, so the units ose health the loncer they stay in the earthquake?
 
Last edited:
Level 9
Joined
May 27, 2006
Messages
498
  • Earthquake unit damage
    • Events:
      • Unit - A unit starts effect of an ability
    • Condition:
      • (Ability being cast) equal to Earthquake
    • Actions:
      • Set TempPoint = (Target point of ability being cast)
      • For each (Integer A) from 1 to 10 do:
        • Custom script: set bj_WantDestroyGroup=true
        • Unit Group - Pick every unit in range (AOE_of_your_ability) matching ((((Matching unit) is a Building) equal to False) and ((Matching unit) is and ally of (Owner of(Triggering unit)) equal to False) and do (Actions)
          • Unit - Cause (Triggering unit) to damage circular area range (AOE_of_your_ability) over 0.00 sec dealing (Your_damge).
          • Wait 1 second.
      • Custom script: call RemoveLocation(udgTempPoint)
This will cause damage every second for 10 seconds. Is this that what you`ve wanted?
 
Status
Not open for further replies.
Top