Credits : Tinki3
Rupture Cast
Code:
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Rupture
Actions
Set R_Int = 1
Set R_Caster = (Triggering unit)
Set R_Target = (Target unit of ability being cast)
Set R_Dmg = ((Real((Level of Rupture for R_Caster))) x 2.00)
Set R_Point[1] = (Position of R_Target)
Unit - Create 1 Dummy Unit for (Owner of R_Caster) at R_Point[1] facing Default building facing degrees
Unit - Set level of Rupture Buff Ability for (Last created unit) to (Level of Rupture for R_Caster)
Unit - Order (Last created unit) to Human Sorceress - Slow R_Target
Custom script: call RemoveLocation(udg_R_Point[1])
Countdown Timer - Start R_Timer as a Repeating timer that will expire in 0.05 seconds
Wait (3.00 + ((Real((Level of Rupture for R_Caster))) x 2.00)) game-time seconds
Countdown Timer - Pause R_Timer
For each (Integer A) from 1 to R_Int, do (Custom script: call RemoveLocation(udg_R_Point[bj_forLoopAIndex]))
Rupture Periodic
Code:
Events
Time - R_Timer expires
Conditions
(R_Target has buff Rupture ) Equal to True
Actions
Set R_Int = (R_Int + 1)
Set R_Point[R_Int] = (Position of R_Target)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Distance between R_Point[(R_Int - 1)] and R_Point[R_Int]) Greater than 0.00
Then - Actions
Unit - Cause R_Caster to damage R_Target, dealing R_Dmg damage of attack type Spells and damage type Normal
Special Effect - Create a special effect attached to the chest of R_Target using Objects\Spawnmodels\Human\HumanBlood\HumanBloodPriest.mdl
Special Effect - Destroy (Last created special effect)
Else - Actions
Spell Download : http://www.filefactory.com/file/ahbh...ture_Spell_zip
Share This Thread