• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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