• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[Trigger] AOE damage

Status
Not open for further replies.

Codemaster

C

Codemaster

i need help in adding a aoe dmg affect after a single target spell has finished casting
 
The trigger is:
event: Unit starts the effect of an ability (or finishes)
condition: (ability being cast) equal to <your ability>
action: (Go to "Unit - Damage Area" and there it is)
Is that what you asked?
 
Uhmm that action damages as well your own units.
If you only want it to damage enemy units use
  • Set temppoint = Target point of ability being cast
  • Custom script: set bj_wantDestroyGroup = true
  • Unit Group - Pick every unit in (Units in (Region centered at temppoint with size x, y) matching (Matching Unit is an enemy of (Owner of (Triggering Unit)) equal to true) and do: Unit - Cause (Triggering Unit) to damage (Picked Unit) for z damage using...
  • Custom script: call RemoveLocation(udg_temppoint)
Trigger is freetyped, so it may vary a bit from the actual trigger.

x is the length of the rectangle and y the width or vice versa.
If you type in 200, 200 it creates a unit group with size 200 in x and 200 in y centered at the target point of your casted ability.
Therefore, you can say that the aoe is it's half -> 100
 
Status
Not open for further replies.
Back
Top