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

[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