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

EXORCISM spell

Status
Not open for further replies.
Level 4
Joined
Apr 19, 2005
Messages
36
I am having quote some trouble figuring out how to do an exorcism spell, such as when the hero casts it all undead in 500 range of the hero take a certain amount of damage. I am not sure how to do this with triggers and if someone can help me with it that would be awesome. Also to note there is not "Undead" category for units allowed to be targeted.
Also as another note, the spell is a unit spell, not a hero spell. So only 1 level.
 
Level 10
Joined
Aug 8, 2004
Messages
562
Code:
EVENT-
unit starts the effect of an ability
CONDITION-
ability being cast = *YourSpell*
ACTIONS-
Pick every unit within 500 of triggering unit matching Matching Unit is owned by an enemy of triggereing unit and Unit class is undead and do Set life of matching unit = life of matching unit - *HOW MUCH DAMAGE YOU WANT*

and yes, the is just one action.
 
Status
Not open for further replies.
Top