Increase Blood Conjurer attack speed greatly, dealing damage randomly equal to hero level and regenerate hitpoints equal to enemy current hitpoints each attack.
Each level increase duration of attacks by 10 times, started from 10 times. Maximum level is attack 60 times.
Level 1 - 100 - 400 random damage, Regenerates 0.15% hitpoints.
Level 2 - 200 - 500 random damage, Regenerates 0.20% hitpoints.
Level 3 - 300 - 600 random damage, Regenerates 0.25% hitpoints.
Level 4 - 400 - 700 random damage, Regenerates 0.30% hitpoints.
Level 5 - 500 - 800 random damage, Regenerates 0.35% hitpoints.
Code:
Life Steal
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Life Steal
Actions
Set LS_Caster = (Casting unit)
Set LS_Target = (Target unit of ability being cast)
Set LS_Damage = (Random real number between (100.00 x (Real((Level of Life Steal for LS_Caster)))) and (400.00 x (Real((Level of Life Steal for LS_Caster)))))
Set LS_AttackTimes = (10 + (10 x (Level of Life Steal for LS_Caster)))
Set LS_Attack = (10 + (10 x (Level of Life Steal for LS_Caster)))
Special Effect - Create a special effect attached to the left hand of LS_Caster using Abilities\Weapons\PhoenixMissile\Phoenix_Missile_mini.mdl
Set SpecialEffect[1] = (Last created special effect)
Special Effect - Create a special effect attached to the right hand of LS_Caster using Abilities\Weapons\PhoenixMissile\Phoenix_Missile_mini.mdl
Set SpecialEffect[2] = (Last created special effect)
Unit - Make LS_Caster Invulnerable
Unit - Pause LS_Caster
Unit - Pause LS_Target
For each (Integer A) from 1 to LS_AttackTimes, do (Actions)
Loop - Actions
Wait 0.15 seconds
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(LS_Target is alive) Equal to True
Then - Actions
Set LS_Attack = (LS_Attack - 1)
Animation - Play LS_Caster's attack animation
Special Effect - Create a special effect attached to the origin of LS_Target using Objects\Spawnmodels\Orc\OrcLargeDeathExplode\OrcLargeDeathExplode.mdl
Unit - Cause LS_Caster to damage LS_Target, dealing LS_Damage damage of attack type Chaos and damage type Normal
Unit - Set life of LS_Caster to ((Percentage life of LS_Caster) + ((Percentage life of LS_Target) x (0.05 + (0.05 x (Real((Level of Unknown (A02Q) for LS_Caster)))))))%
Animation - Play LS_Target's death animation
-------- Dummy Effect --------
Unit - Create 1 Dummy for (Owner of LS_Caster) at (Position of LS_Caster) facing (Facing of LS_Caster) degrees
Unit - Add a 0.95 second Generic expiration timer to (Last created unit)
Animation - Change (Last created unit)'s vertex coloring to (100.00%, 100.00%, 100.00%) with 65.00% transparency
Animation - Play (Last created unit)'s attack animation
Else - Actions
Set LS_Attack = 0
Unit - Make LS_Caster Vulnerable
Unit - Unpause LS_Caster
Unit - Unpause LS_Target
Special Effect - Destroy SpecialEffect[1]
Special Effect - Destroy SpecialEffect[2]
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
LS_Attack Equal to 0
Then - Actions
Unit - Make LS_Caster Vulnerable
Unit - Unpause LS_Caster
Unit - Unpause LS_Target
Special Effect - Destroy SpecialEffect[1]
Special Effect - Destroy SpecialEffect[2]
Else - Actions
---------------------------------------------------------------------
This spell is orriginal created from The_Dead_Fight.
Spell ini adalah skill ultimate dari blood conjurer yang akan dipakai
dalam map conjurer nanti
Boleh dicoba ^O^
---------------------------------------------------------------------
Share This Thread