- Joined
- Aug 5, 2010
- Messages
- 147
Created a custom aura ability that creates a random minion using a corpse. Their are 3 different minions that can be created.
The units are the same because i havent created the units yet.
-
Spell Variables
-

Events
-


Map initialization
-
-

Conditions
-

Actions
-


-------- Corpse Aura --------
-


Set Corpse_Archer[1] = Skeletal Archer
-


Set Corpse_Archer[2] = Skeletal Archer
-


Set Corpse_Archer[3] = Skeletal Archer
-


Set Corpse_Archer[4] = Skeletal Archer
-


Set Corpse_Archer[5] = Skeletal Archer
-


Set Corpse_Archer[6] = Skeletal Archer
-


Set Corpse_Archer[7] = Skeletal Archer
-


Set Corpse_Archer[8] = Skeletal Archer
-


Set Corpse_Archer[9] = Skeletal Archer
-


Set Corpse_Archer[10] = Skeletal Archer
-


Set Corpse_Mage[1] = Skeletal Mage
-


Set Corpse_Mage[2] = Skeletal Mage
-


Set Corpse_Mage[3] = Skeletal Mage
-


Set Corpse_Mage[4] = Skeletal Mage
-


Set Corpse_Mage[5] = Skeletal Mage
-


Set Corpse_Mage[6] = Skeletal Mage
-


Set Corpse_Mage[7] = Skeletal Mage
-


Set Corpse_Mage[8] = Skeletal Mage
-


Set Corpse_Mage[9] = Skeletal Mage
-


Set Corpse_Mage[10] = Skeletal Mage
-


Set Corpse_Warrior[1] = Skeletal Warrior
-


Set Corpse_Warrior[2] = Skeletal Warrior
-


Set Corpse_Warrior[3] = Skeletal Warrior
-


Set Corpse_Warrior[4] = Skeletal Warrior
-


Set Corpse_Warrior[5] = Skeletal Warrior
-


Set Corpse_Warrior[6] = Skeletal Warrior
-


Set Corpse_Warrior[7] = Skeletal Warrior
-


Set Corpse_Warrior[8] = Skeletal Warrior
-


Set Corpse_Warrior[9] = Skeletal Warrior
-


Set Corpse_Warrior[10] = Skeletal Warrior
-
-
-
Corpse Learn
-

Events
-


Unit - A unit Learns a skill
-
-

Conditions
-


(Unit-type of (Triggering unit)) Equal to Death Knight [Str]
-
-

Actions
-


Set Corpse_Hero = (Triggering unit)
-


Set Corpse_Owner = (Owner of (Triggering unit))
-


Trigger - Turn on Corpse Animate <gen>
-


Trigger - Turn off (This trigger)
-
-
-
Corpse Animate
-

Events
-


Time - Every 5.00 seconds of game time
-
-

Conditions
-

Actions
-


Set Corpse_HPoint = (Position of Corpse_Hero)
-


Set Corpse_Group = (Units within 600.00 of Corpse_HPoint matching ((((Matching unit) is dead) Equal to True) and ((((Matching unit) is An Ancient) Equal to False) and (((Matching unit) is A Hero) Equal to False))))
-


Unit Group - Pick every unit in (Random 2 units from Corpse_Group) and do (Actions)
-



Loop - Actions
-




Set Corpse_Spawn = (Random integer number between 1 and 3)
-




Set Corpse_Point = (Position of (Picked unit))
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






Corpse_Spawn Equal to 1
-
-





Then - Actions
-






Unit - Create 1 Corpse_Archer[(Level of Corpse Aura [Passive] for Corpse_Hero)] for Corpse_Owner at Corpse_Point facing (Random angle) degrees
-






Special Effect - Create a special effect at Corpse_Point using Abilities\Spells\Undead\RaiseSkeletonWarrior\RaiseSkeleton.mdl
-






Special Effect - Destroy (Last created special effect)
-






Unit - Add a 10.00 second Generic expiration timer to (Last created unit)
-






Unit - Remove (Picked unit) from the game
-






Custom script: call RemoveLocation(udg_Corpse_Point)
-
-





Else - Actions
-






If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-







If - Conditions
-








Corpse_Spawn Equal to 2
-
-







Then - Actions
-








Unit - Create 1 Corpse_Mage[(Level of Corpse Aura [Passive] for Corpse_Hero)] for Corpse_Owner at Corpse_Point facing (Random angle) degrees
-








Special Effect - Create a special effect at Corpse_Point using Abilities\Spells\Undead\RaiseSkeletonWarrior\RaiseSkeleton.mdl
-








Special Effect - Destroy (Last created special effect)
-








Unit - Add a 10.00 second Generic expiration timer to (Last created unit)
-








Unit - Remove (Picked unit) from the game
-








Custom script: call RemoveLocation(udg_Corpse_Point)
-
-







Else - Actions
-








If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-









If - Conditions
-










Corpse_Spawn Equal to 3
-
-









Then - Actions
-










Unit - Create 1 Corpse_Warrior[(Level of Corpse Aura [Passive] for Corpse_Hero)] for Corpse_Owner at Corpse_Point facing (Random angle) degrees
-










Special Effect - Create a special effect at Corpse_Point using Abilities\Spells\Undead\RaiseSkeletonWarrior\RaiseSkeleton.mdl
-










Special Effect - Destroy (Last created special effect)
-










Unit - Add a 10.00 second Generic expiration timer to (Last created unit)
-










Unit - Remove (Picked unit) from the game
-










Custom script: call RemoveLocation(udg_Corpse_Point)
-
-









Else - Actions
-
-
-
-
-
-
-
-


Custom script: call RemoveLocation(udg_Corpse_HPoint)
-


Custom script: call DestroyGroup(udg_Corpse_Group)
-
-




