- Joined
- Jan 24, 2012
- Messages
- 28
-
Impetus
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Impetus
-
Actions
- Set Impe_Unit = (Target unit of ability being cast)
- Set Impe_Caster = (Triggering unit)
- Set Pos_Unit = (Position of Impe_Unit)
- Set Pos_Caster = (Position of Impe_Caster)
- Set ImpeDamage[1] = (0.40 x (Distance between (Position of Impe_Caster) and (Position of Impe_Unit)))
- Set ImpeDamage[2] = (0.45 x (Distance between (Position of Impe_Caster) and (Position of Impe_Unit)))
- Set ImpeDamage[3] = (0.50 x (Distance between (Position of Impe_Caster) and (Position of Impe_Unit)))
- Wait until ((Life of Impe_Unit) Equal to ((Life of Impe_Unit) - (Damage taken))), checking every 0.50 seconds
- If ((Level of Impetus for Impe_Caster) Equal to 1) then do (Unit - Cause (Triggering unit) to damage Impe_Unit, dealing ImpeDamage[1] damage of attack type Chaos and damage type Force) else do (Do nothing)
- If ((Level of Impetus for Impe_Caster) Equal to 1) then do (Floating Text - Create floating text that reads (String(ImpeDamage[1])) above Impe_Unit with Z offset 25.00, using font size 10.00, color (0.00%, 25.00%, 100.00%), and 0.25% transparency) else do (Do nothing)
- If ((Level of Impetus for Impe_Caster) Equal to 2) then do (Unit - Cause (Triggering unit) to damage Impe_Unit, dealing ImpeDamage[2] damage of attack type Chaos and damage type Force) else do (Do nothing)
- If ((Level of Impetus for Impe_Caster) Equal to 2) then do (Floating Text - Create floating text that reads (String(ImpeDamage[2])) above Impe_Unit with Z offset 25.00, using font size 10.00, color (0.00%, 25.00%, 100.00%), and 0.25% transparency) else do (Do nothing)
- If ((Level of Impetus for Impe_Caster) Equal to 3) then do (Unit - Cause (Triggering unit) to damage Impe_Unit, dealing ImpeDamage[3] damage of attack type Chaos and damage type Force) else do (Do nothing)
- If ((Level of Impetus for Impe_Caster) Equal to 3) then do (Floating Text - Create floating text that reads (String(ImpeDamage[3])) above Impe_Unit with Z offset 25.00, using font size 10.00, color (0.00%, 25.00%, 100.00%), and 0.25% transparency) else do (Do nothing)
- Wait 0.75 seconds
- Floating Text - Destroy (Last created floating text)
- Custom script: call RemoveLocation(udg_Pos_Caster)
- Custom script: call RemoveLocation(udg_Pos_Unit)
-
Events
everytime I cast this spell, why the dryad animation speed is very fast?