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

Add ability trigger

Status
Not open for further replies.
Level 4
Joined
Feb 27, 2006
Messages
49
im trying to make spell that adds an ability to your own and your alliys units for a limited time. I have made trigger to try making this spell but it doesn't work so i need some help learn something new :)

here is my trigger

Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Howl
Actions
Unit Group - Pick every unit in (Units within 500.00 of (Position of (Casting unit)) matching (((Picked unit) belongs to an enemy of (Owner of (Casting unit))) Not equal to True)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) belongs to an enemy of (Owner of (Casting unit))) Not equal to True
Then - Actions
Unit - Add Evasion to (Picked unit)
Wait 15.00 seconds
Unit - Remove Evasion from (Picked unit)
Else - Actions
Do nothing
 
Level 4
Joined
Jan 30, 2006
Messages
93
this is what i would do

Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Howl
Actions
Unit Group - Pick every unit in (Units within 500.00 of (Position of (triggering unit)) matching (((matching unit[probably part u messed up]) belongs to an enemy of (Owner of (triggering unit))) Not equal to True)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) belongs to an enemy of (Owner of (triggering unit))) Not equal to True
Then - Actions
Unit - Add Evasion to (Picked unit)
Wait 15.00 seconds
Unit - Remove Evasion from (Picked unit)
Else - Actions
Do nothing[/code]
 
Status
Not open for further replies.
Top