Hi my friends, it's mui?
-
Death Curse Config
-

Events
-


Unit - A unit Starts the effect of an ability
-
-

Conditions
-


(Ability being cast) Equal to Death Curse
-
-

Actions
-


-------- Create Spell Instance --------
-


Set DeathCurse_Max = (DeathCurse_Max + 1)
-


Set DeathCurse_Target[DeathCurse_Max] = (Target unit of ability being cast)
-


Set DeathCurse_Caster[DeathCurse_Max] = (Triggering unit)
-


-------- Delay --------
-


Set DeathCurse_Tick[DeathCurse_Max] = 0.00
-


-------- Start Loop --------
-


If (DeathCurse_Max Equal to 1) then do (Trigger - Turn on Death Curse Loop <gen>) else do (Do nothing)
-
-
-
Death Curse Loop
-

Events
-


Time - Every 0.03 seconds of game time
-
-

Conditions
-

Actions
-


Set TempInteger = 0
-


For each (Integer DeathCurse_Loop) from 1 to DeathCurse_Max, do (Actions)
-



Loop - Actions
-




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





If - Conditions
-






DeathCurse_Target[DeathCurse_Loop] Not equal to No unit
-
-





Then - Actions
-






-------- Count Active Spells --------
-






Set TempInteger = (TempInteger + 1)
-






-------- Target Alive --------
-






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







If - Conditions
-








(DeathCurse_Target[DeathCurse_Loop] is alive) Equal to True
-
-







Then - Actions
-








-------- Update Timer --------
-








Set DeathCurse_Tick[DeathCurse_Loop] = (DeathCurse_Tick[DeathCurse_Loop] + 0.03)
-








-------- Delay Finished --------
-








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









If - Conditions
-










DeathCurse_Tick[DeathCurse_Loop] Greater than or equal to 2.50
-
-









Then - Actions
-










-------- Execute --------
-










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











If - Conditions
-












(Life of DeathCurse_Target[DeathCurse_Loop]) Less than 300.00
-
-











Then - Actions
-












Special Effect - Create a special effect attached to the origin of DeathCurse_Target[DeathCurse_Loop] using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
-












Set DeathCurse_Effect[DeathCurse_Loop] = (Last created special effect)
-












Special Effect - Destroy DeathCurse_Effect[DeathCurse_Loop]
-












Unit - Cause DeathCurse_Caster[DeathCurse_Loop] to damage DeathCurse_Target[DeathCurse_Loop], dealing 1000000000.00 damage of attack type Spells and damage type Magic
-












If ((DeathCurse_Target[DeathCurse_Loop] is A Hero) Equal to True) then do (Unit - For Unit DeathCurse_Caster[DeathCurse_Loop], end cooldown of ability Death Curse ) else do (Do nothing)
-












-------- Clean Arrays --------
-












Set DeathCurse_Target[DeathCurse_Loop] = No unit
-












Set DeathCurse_Caster[DeathCurse_Loop] = No unit
-












Set DeathCurse_Tick[DeathCurse_Loop] = 0.00
-












Set TempInteger = (TempInteger - 1)
-
-











Else - Actions
-












Unit - Cause DeathCurse_Caster[DeathCurse_Loop] to damage DeathCurse_Target[DeathCurse_Loop], dealing 150.00 damage of attack type Spells and damage type Magic
-












-------- Clean Arrays --------
-












Set DeathCurse_Target[DeathCurse_Loop] = No unit
-












Set DeathCurse_Caster[DeathCurse_Loop] = No unit
-












Set DeathCurse_Tick[DeathCurse_Loop] = 0.00
-












Set TempInteger = (TempInteger - 1)
-
-
-
-









Else - Actions
-










Do nothing
-
-
-
-







Else - Actions
-








-------- Target Died --------
-








Set DeathCurse_Target[DeathCurse_Loop] = No unit
-








Set DeathCurse_Caster[DeathCurse_Loop] = No unit
-








Set DeathCurse_Tick[DeathCurse_Loop] = 0.00
-








Set TempInteger = (TempInteger - 1)
-
-
-
-





Else - Actions
-






Do nothing
-
-
-
-
-


-------- Stop Loop --------
-


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



If - Conditions
-




TempInteger Equal to 0
-
-



Then - Actions
-




Set DeathCurse_Max = 0
-




Trigger - Turn off (This trigger)
-
-



Else - Actions
-




Do nothing
-
-
-
-



