• 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] AOE damage

Status
Not open for further replies.
Level 7
Joined
Apr 13, 2008
Messages
183
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?
 
Level 28
Joined
Mar 25, 2008
Messages
2,955
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.
Top