- Joined
- Mar 16, 2008
- Messages
- 824
This trigger/spell picks units around it, plays animations, and cuts picked units health in half. Only problem is that it doesn't seem to pick creeps. Anyone have any insight? It's intended to do 'friendly fire' as well as damage against enemies.
Fire Golem, Leviathan, Storm, Penguin King are unique 'bosses' that I don't want to be affected by this spell. They are owned by Natural Hostile so I tried removing those conditions but it still didn't seem to pick creeps. I have no clue why. I actually tested removing all the conditions and it has no effect.
Also, side note, I couldn't figure out how the more advanced trigger functions so I just made a trigger and variables for each potentially casting player. However that's not the purpose of this thread. The purpose of this tread is to try and figure out why it's not picking creeps.
Thank you for taking the time to look at this.
Fire Golem, Leviathan, Storm, Penguin King are unique 'bosses' that I don't want to be affected by this spell. They are owned by Natural Hostile so I tried removing those conditions but it still didn't seem to pick creeps. I have no clue why. I actually tested removing all the conditions and it has no effect.
Also, side note, I couldn't figure out how the more advanced trigger functions so I just made a trigger and variables for each potentially casting player. However that's not the purpose of this thread. The purpose of this tread is to try and figure out why it's not picking creeps.
Thank you for taking the time to look at this.
-
Death Rit Cast Yello
-
Events
-
Unit - A unit owned by Player 5 (Yellow) Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Death Ritual
-
-
Actions
-
Animation - Play (Triggering unit)'s Stand Victory animation
-
Unit Group - Pick every unit in (Units within 750.00 of (Position of (Triggering unit)).) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Picked unit) is A structure) Equal to False
-
(Unit-type of (Picked unit)) Equal to Fire Golem
-
(Unit-type of (Picked unit)) Equal to Leviathan
-
(Unit-type of (Picked unit)) Equal to Storm
-
(Unit-type of (Picked unit)) Equal to Penguin King
-
-
Then - Actions
-
Set VariableSet DeathRitInteger_Var_Yel = (DeathRitInteger_Var_Yel + 1)
-
Set VariableSet DeathRitTar_Var_Yel[DeathRitInteger_Var_Yel] = (Picked unit)
-
Special Effect - Create a special effect attached to the origin of (Picked unit) using Abilities\Spells\Demon\DarkConversion\ZombifyTarget.mdl
-
Special Effect - Destroy (Last created special effect)
-
Set VariableSet DeathRitEfx_Var_Yel[DeathRitInteger_Var_Yel] = (Last created special effect)
-
-
Else - Actions
-
-
-
-
Set VariableSet DeathRitCasterPt_Var_Yel = (Position of (Triggering unit))
-
Special Effect - Create a special effect at (DeathRitCasterPt_Var_Yel offset by (0.00, 750.00)) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
-
Special Effect - Destroy (Last created special effect)
-
Special Effect - Create a special effect at (DeathRitCasterPt_Var_Yel offset by (0.00, -750.00)) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
-
Special Effect - Destroy (Last created special effect)
-
Special Effect - Create a special effect at (DeathRitCasterPt_Var_Yel offset by (530.00, 530.00)) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
-
Special Effect - Destroy (Last created special effect)
-
Special Effect - Create a special effect at (DeathRitCasterPt_Var_Yel offset by (-530.00, -530.00)) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
-
Special Effect - Destroy (Last created special effect)
-
Special Effect - Create a special effect at (DeathRitCasterPt_Var_Yel offset by (750.00, 0.00)) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
-
Special Effect - Destroy (Last created special effect)
-
Special Effect - Create a special effect at (DeathRitCasterPt_Var_Yel offset by (-750.00, 0.00)) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
-
Special Effect - Destroy (Last created special effect)
-
Special Effect - Create a special effect at (DeathRitCasterPt_Var_Yel offset by (-530.00, 530.00)) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
-
Special Effect - Destroy (Last created special effect)
-
Special Effect - Create a special effect at (DeathRitCasterPt_Var_Yel offset by (530.00, -530.00)) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
-
Special Effect - Destroy (Last created special effect)
-
Wait 0.50 seconds
-
Special Effect - Create a special effect at (DeathRitCasterPt_Var_Yel offset by (0.00, 750.00)) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
-
Special Effect - Destroy (Last created special effect)
-
Special Effect - Create a special effect at (DeathRitCasterPt_Var_Yel offset by (0.00, -750.00)) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
-
Special Effect - Destroy (Last created special effect)
-
Special Effect - Create a special effect at (DeathRitCasterPt_Var_Yel offset by (530.00, 530.00)) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
-
Special Effect - Destroy (Last created special effect)
-
Special Effect - Create a special effect at (DeathRitCasterPt_Var_Yel offset by (-530.00, -530.00)) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
-
Special Effect - Destroy (Last created special effect)
-
Special Effect - Create a special effect at (DeathRitCasterPt_Var_Yel offset by (750.00, 0.00)) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
-
Special Effect - Destroy (Last created special effect)
-
Special Effect - Create a special effect at (DeathRitCasterPt_Var_Yel offset by (-750.00, 0.00)) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
-
Special Effect - Destroy (Last created special effect)
-
Special Effect - Create a special effect at (DeathRitCasterPt_Var_Yel offset by (-530.00, 530.00)) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
-
Special Effect - Destroy (Last created special effect)
-
Special Effect - Create a special effect at (DeathRitCasterPt_Var_Yel offset by (530.00, -530.00)) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
-
Special Effect - Destroy (Last created special effect)
-
Wait 0.50 seconds
-
Special Effect - Create a special effect at (DeathRitCasterPt_Var_Yel offset by (0.00, 750.00)) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
-
Special Effect - Destroy (Last created special effect)
-
Special Effect - Create a special effect at (DeathRitCasterPt_Var_Yel offset by (0.00, -750.00)) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
-
Special Effect - Destroy (Last created special effect)
-
Special Effect - Create a special effect at (DeathRitCasterPt_Var_Yel offset by (530.00, 530.00)) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
-
Special Effect - Destroy (Last created special effect)
-
Special Effect - Create a special effect at (DeathRitCasterPt_Var_Yel offset by (-530.00, -530.00)) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
-
Special Effect - Destroy (Last created special effect)
-
Special Effect - Create a special effect at (DeathRitCasterPt_Var_Yel offset by (750.00, 0.00)) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
-
Special Effect - Destroy (Last created special effect)
-
Special Effect - Create a special effect at (DeathRitCasterPt_Var_Yel offset by (-750.00, 0.00)) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
-
Special Effect - Destroy (Last created special effect)
-
Special Effect - Create a special effect at (DeathRitCasterPt_Var_Yel offset by (-530.00, 530.00)) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
-
Special Effect - Destroy (Last created special effect)
-
Special Effect - Create a special effect at (DeathRitCasterPt_Var_Yel offset by (530.00, -530.00)) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
-
Special Effect - Destroy (Last created special effect)
-
Wait 0.50 seconds
-
Special Effect - Create a special effect at (DeathRitCasterPt_Var_Yel offset by (0.00, 750.00)) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
-
Special Effect - Destroy (Last created special effect)
-
Special Effect - Create a special effect at (DeathRitCasterPt_Var_Yel offset by (0.00, -750.00)) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
-
Special Effect - Destroy (Last created special effect)
-
Special Effect - Create a special effect at (DeathRitCasterPt_Var_Yel offset by (530.00, 530.00)) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
-
Special Effect - Destroy (Last created special effect)
-
Special Effect - Create a special effect at (DeathRitCasterPt_Var_Yel offset by (-530.00, -530.00)) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
-
Special Effect - Destroy (Last created special effect)
-
Special Effect - Create a special effect at (DeathRitCasterPt_Var_Yel offset by (750.00, 0.00)) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
-
Special Effect - Destroy (Last created special effect)
-
Special Effect - Create a special effect at (DeathRitCasterPt_Var_Yel offset by (-750.00, 0.00)) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
-
Special Effect - Destroy (Last created special effect)
-
Special Effect - Create a special effect at (DeathRitCasterPt_Var_Yel offset by (-530.00, 530.00)) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
-
Special Effect - Destroy (Last created special effect)
-
Special Effect - Create a special effect at (DeathRitCasterPt_Var_Yel offset by (530.00, -530.00)) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
-
Special Effect - Destroy (Last created special effect)
-
Custom script: call RemoveLocation(udg_DeathRitCasterPt_Var_Yel)
-
Wait 0.50 seconds
-
Animation - Reset (Triggering unit)'s animation
-
Special Effect - Create a special effect attached to the origin of (Triggering unit) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
-
Special Effect - Destroy (Last created special effect)
-
For each (Integer DeathRitInteger_Var_Yel) from 1 to DeathRitInteger_Var_Yel, do (Actions)
-
Loop - Actions
-
Special Effect - Destroy DeathRitEfx_Var_Yel[DeathRitInteger_Var_Yel]
-
Set VariableSet DeathRitInteger_Var_Yel = (DeathRitInteger_Var_Yel - 1)
-
-
-
Unit Group - Pick every unit in (Units within 750.00 of (Position of (Triggering unit)).) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Picked unit) is A structure) Equal to False
-
(Unit-type of (Picked unit)) Equal to Fire Golem
-
(Unit-type of (Picked unit)) Equal to Leviathan
-
(Unit-type of (Picked unit)) Equal to Storm
-
(Unit-type of (Picked unit)) Equal to Penguin King
-
-
Then - Actions
-
Special Effect - Create a special effect attached to the origin of (Picked unit) using Abilities\Spells\Demon\DarkConversion\ZombifyTarget.mdl
-
Special Effect - Destroy (Last created special effect)
-
Unit - Set life of (Picked unit) to ((Life of (Picked unit)) / 2.00)
-
-
Else - Actions
-
-
-
-
Set VariableSet DeathRitInteger_Var_Yel = 0
-
-
Last edited: