I made a skill that gives you a 15% chance each time you kill a unit, that summons an imp at the position of the dying unit. The imp's stats differ depending on the level of the skill. The problem is it does absolutely nothing.
-
Summon
-
Events
- Unit - A unit Dies
-
Conditions
-
And - All (Conditions) are true
-
Conditions
- (Unit-type of (Killing unit)) Equal to Colossal Legionnaire
-
Conditions
-
And - All (Conditions) are true
-
Actions
- Set Immoral_Corruption_CASTER = (Killing unit)
- Set Immoral_Corruption_TARGET = (Dying unit)
- Set Immoral_Corruption_LEVEL = (Level of Immoral Corruption for (Killing unit))
- Set Immoral_Corruption_CHANCE = (Random integer number between 1 and 100)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Immoral_Corruption_CHANCE Equal to (Random integer number between 1 and 15)
- Immoral_Corruption_LEVEL Equal to 1
-
Then - Actions
- Unit - Create 1 Minion (Level 1) for (Owner of Immoral_Corruption_CASTER) at (Position of Immoral_Corruption_TARGET) facing Default building facing degrees
- Set Immoral_Corruption_MINION = (Last created unit)
- Special Effect - Create a special effect at (Position of Immoral_Corruption_TARGET) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
- Wait 30.00 seconds
- Special Effect - Create a special effect at (Position of Immoral_Corruption_TARGET) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
- Unit - Remove Immoral_Corruption_MINION from the game
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Immoral_Corruption_CHANCE Equal to (Random integer number between 1 and 15)
- Immoral_Corruption_LEVEL Equal to 2
-
Then - Actions
- Unit - Create 1 Minion (Level 2) for (Owner of Immoral_Corruption_CASTER) at (Position of Immoral_Corruption_TARGET) facing Default building facing degrees
- Set Immoral_Corruption_MINION = (Last created unit)
- Special Effect - Create a special effect at (Position of Immoral_Corruption_TARGET) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
- Wait 30.00 seconds
- Special Effect - Create a special effect at (Position of Immoral_Corruption_TARGET) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
- Unit - Remove Immoral_Corruption_MINION from the game
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Immoral_Corruption_CHANCE Equal to (Random integer number between 1 and 15)
- Immoral_Corruption_LEVEL Equal to 3
-
Then - Actions
- Unit - Create 1 Minion (Level 3) for (Owner of Immoral_Corruption_CASTER) at (Position of Immoral_Corruption_TARGET) facing Default building facing degrees
- Set Immoral_Corruption_MINION = (Last created unit)
- Special Effect - Create a special effect at (Position of Immoral_Corruption_TARGET) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
- Wait 30.00 seconds
- Special Effect - Create a special effect at (Position of Immoral_Corruption_TARGET) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
- Unit - Remove Immoral_Corruption_MINION from the game
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Immoral_Corruption_CHANCE Equal to (Random integer number between 1 and 15)
- Immoral_Corruption_LEVEL Equal to 4
-
Then - Actions
- Unit - Create 1 Minion (Level 4) for (Owner of Immoral_Corruption_CASTER) at (Position of Immoral_Corruption_TARGET) facing Default building facing degrees
- Set Immoral_Corruption_MINION = (Last created unit)
- Special Effect - Create a special effect at (Position of Immoral_Corruption_TARGET) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
- Wait 30.00 seconds
- Special Effect - Create a special effect at (Position of Immoral_Corruption_TARGET) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
- Unit - Remove Immoral_Corruption_MINION from the game
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Immoral_Corruption_CHANCE Equal to (Random integer number between 1 and 15)
- Immoral_Corruption_LEVEL Equal to 5
-
Then - Actions
- Unit - Create 1 Minion (Level 5) for (Owner of Immoral_Corruption_CASTER) at (Position of Immoral_Corruption_TARGET) facing Default building facing degrees
- Set Immoral_Corruption_MINION = (Last created unit)
- Special Effect - Create a special effect at (Position of Immoral_Corruption_TARGET) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
- Wait 30.00 seconds
- Special Effect - Create a special effect at (Position of Immoral_Corruption_TARGET) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
- Unit - Remove Immoral_Corruption_MINION from the game
- Else - Actions
-
If - Conditions
-
Events