I've got a spell, magic spear, which when it hits with my (shadow strike based) skill then it creates a dummy which uses a fan of knives on the target and then make random effects (mana burn, slow, polymorph or entangeling roots) on the units next to it. The point is that it doesn't make the dummy for the alterate effects, the dummmies doi have the magic effect spells on them! Here's my trigger:
-
Spear hit
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Magic Spear
-
Actions
- Wait until ((((Target unit of ability being cast) is dead) Equal to True) or (((Target unit of ability being cast) has buff Magic Spear ) Equal to True)), checking every 0.27 seconds
- Unit - Create 1 Dummy for (Owner of (Triggering unit)) at (Position of (Target unit of ability being cast)) facing Default building facing degrees
- Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
- Unit - Order (Last created unit) to Night Elf Warden - Fan Of Knives
- Set Integerfast = (Random integer number between 1 and 4)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Integerfast Equal to 1
-
Then - Actions
-
Unit Group - Pick every unit in (Units within 400.00 of (Position of (Target unit of ability being cast)) matching (((Matching unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True)) and do (Actions)
-
Loop - Actions
- Unit - Create 1 Dummy for (Owner of (Triggering unit)) at (Position of (Target unit of ability being cast)) facing Default building facing degrees
- Unit - Order (Last created unit) to Human Sorceress - Slow (Picked unit)
- Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
-
Loop - Actions
-
Unit Group - Pick every unit in (Units within 400.00 of (Position of (Target unit of ability being cast)) matching (((Matching unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True)) and do (Actions)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Integerfast Equal to 2
-
Then - Actions
-
Unit Group - Pick every unit in (Units within 400.00 of (Position of (Target unit of ability being cast)) matching (((Matching unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True)) and do (Actions)
-
Loop - Actions
- Unit - Create 1 Dummy for (Owner of (Triggering unit)) at (Position of (Target unit of ability being cast)) facing Default building facing degrees
- Unit - Order (Last created unit) to Orc Shadow Hunter - Hex (Picked unit)
- Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
-
Loop - Actions
-
Unit Group - Pick every unit in (Units within 400.00 of (Position of (Target unit of ability being cast)) matching (((Matching unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True)) and do (Actions)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Integerfast Equal to 3
-
Then - Actions
-
Unit Group - Pick every unit in (Units within 400.00 of (Position of (Target unit of ability being cast)) matching (((Matching unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True)) and do (Actions)
-
Loop - Actions
- Unit - Create 1 Dummy for (Owner of (Triggering unit)) at (Position of (Target unit of ability being cast)) facing Default building facing degrees
- Unit - Order (Last created unit) to Night Elf Keeper Of The Grove - Entangling Roots (Picked unit)
- Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
-
Loop - Actions
-
Unit Group - Pick every unit in (Units within 400.00 of (Position of (Target unit of ability being cast)) matching (((Matching unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True)) and do (Actions)
-
Else - Actions
-
Unit Group - Pick every unit in (Units within 400.00 of (Position of (Target unit of ability being cast)) matching (((Matching unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True)) and do (Actions)
-
Loop - Actions
- Unit - Create 1 Dummy for (Owner of (Triggering unit)) at (Position of (Target unit of ability being cast)) facing Default building facing degrees
- Unit - Order (Last created unit) to Night Elf Demon Hunter - Mana Burn (Picked unit)
- Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
-
Loop - Actions
-
Unit Group - Pick every unit in (Units within 400.00 of (Position of (Target unit of ability being cast)) matching (((Matching unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True)) and do (Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Events
Last edited: