TPOX
New Member
- Reaction score
- 10
I made a corpse explosion a few days ago and its based off a spell that does nothing with a AOE target and the dummy has fan of knives. The spell was working fine till a few minutes ago it didnt work no idea why, even turned every other trigger off and checked the dummy caster ect EVERYTHING!
Does anyone see anything wrong because I dont.
Code:
Corpse Explosion
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Corpse Explosion Caster
Actions
Unit Group - Pick every unit in (Units within 200.00 of (Target point of ability being cast) matching (((Matching unit) is dead) Equal to True)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to Corpse Explosion Caster
(Level of Corpse Explosion Caster for (Casting unit)) Equal to 1
Then - Actions
Unit - Create 1 Peasant for (Owner of (Casting unit)) at (Position of (Picked unit)) facing (Position of (Picked unit))
Unit - Set Level of Corpse Explosion for (Last created unit) to 1
Unit - Add a 0.01 second Generic expiration timer to (Last created unit)
Unit - Order (Last created unit) to Night Elf Warden - Fan Of Knives
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to Corpse Explosion Caster
(Level of Corpse Explosion Caster for (Casting unit)) Equal to 2
Then - Actions
Unit - Create 1 Peasant for (Owner of (Casting unit)) at (Position of (Picked unit)) facing (Position of (Picked unit))
Unit - Set Level of Corpse Explosion for (Last created unit) to 2
Unit - Add a 0.01 second Generic expiration timer to (Last created unit)
Unit - Order (Last created unit) to Night Elf Warden - Fan Of Knives
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to Corpse Explosion Caster
(Level of Corpse Explosion Caster for (Casting unit)) Equal to 3
Then - Actions
Unit - Create 1 Peasant for (Owner of (Casting unit)) at (Position of (Picked unit)) facing (Position of (Picked unit))
Unit - Set Level of Corpse Explosion for (Last created unit) to 3
Unit - Add a 0.01 second Generic expiration timer to (Last created unit)
Unit - Order (Last created unit) to Night Elf Warden - Fan Of Knives
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to Corpse Explosion Caster
(Level of Corpse Explosion Caster for (Casting unit)) Equal to 4
Then - Actions
Unit - Create 1 Peasant for (Owner of (Casting unit)) at (Position of (Picked unit)) facing (Position of (Picked unit))
Unit - Set Level of Corpse Explosion for (Last created unit) to 4
Unit - Add a 0.01 second Generic expiration timer to (Last created unit)
Unit - Order (Last created unit) to Night Elf Warden - Fan Of Knives
Else - Actions
Do nothing
Does anyone see anything wrong because I dont.


