I am atm busy creating an ability that is cinda like an evasion, its based on the evasion ability. the ability is just the normal evasion + a secondary abilitie that ive triggered.
The secondary effect is that when the hero is attacked he has a (100% now for testing) chance to teleport up to 2 times in a range of 500. This effect last for 10 seconds or until you blinked 2 times.
So here is what ive triggered:
The ability triggering part:
Superhuman agility test
Events
Unit - Paladin 0001 <gen> Is attacked
Conditions
(Level of Superhuman Agility for Paladin 0001 <gen>) Greater than 0
Superhuman[1] Not equal to 1
(Random integer number between 1 and 100) Less than or equal to 100
Actions
Special Effect - Create a special effect attached to the origin of Paladin 0001 <gen> using Abilities\Spells\Other\Charm\CharmTarget.mdl
Unit - Add Superhuman Agility Teleport to Paladin 0001 <gen>
Set Superhuman[1] = 1
Wait 9.90 seconds
Set Superhuman[1] = 0
The Superhuman[1] is just a checking variable and the Superhuman[2] is the blinking count.
The teleport part:
Superhuman agility buff
Events
Unit - Paladin 0001 <gen> Is issued an order targeting a point
Conditions
Superhuman[1] Equal to 1
Superhuman[2] Less than 2
Actions
-------- Set point were the caster will be teleported --------
Set FMTemp_Point_Super = (Target point of issued order)
-------- Order him to blink to Temp_Point --------
Animation - Change (Triggering unit)'s vertex coloring to (0.00%, 100.00%, 0.00%) with 65.00% transparency
Unit - Order Paladin 0001 <gen> to Move To FMTemp_Point_Super
Unit - Set level of Superhuman Agility Teleport for Paladin 0001 <gen> to (Level of Superhuman Agility for Paladin 0001 <gen>)
Unit - Order (Triggering unit) to Night Elf Warden - Blink FMTemp_Point_Super
Animation - Change (Triggering unit)'s vertex coloring to (100.00%, 100.00%, 100.00%) with 0.00% transparency
Set Superhuman[2] = (Superhuman[2] + 1)
Custom script: call RemoveLocation (udg_FMTemp_Point_Super)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Superhuman[2] Equal to 2
Then - Actions
Set Superhuman[1] = 0
Set Superhuman[2] = 0
Unit - Remove Superhuman Agility Teleport from Paladin 0001 <gen>
Else - Actions
Do nothing
The superhuman agility teleport ability is the blink ability with a 500 blink range each lvl.
Though when i test it my computer crashes so i must be doing something horribly wrong. Anyone know what?
Thx in advance
The secondary effect is that when the hero is attacked he has a (100% now for testing) chance to teleport up to 2 times in a range of 500. This effect last for 10 seconds or until you blinked 2 times.
So here is what ive triggered:
The ability triggering part:
Superhuman agility test
Events
Unit - Paladin 0001 <gen> Is attacked
Conditions
(Level of Superhuman Agility for Paladin 0001 <gen>) Greater than 0
Superhuman[1] Not equal to 1
(Random integer number between 1 and 100) Less than or equal to 100
Actions
Special Effect - Create a special effect attached to the origin of Paladin 0001 <gen> using Abilities\Spells\Other\Charm\CharmTarget.mdl
Unit - Add Superhuman Agility Teleport to Paladin 0001 <gen>
Set Superhuman[1] = 1
Wait 9.90 seconds
Set Superhuman[1] = 0
The Superhuman[1] is just a checking variable and the Superhuman[2] is the blinking count.
The teleport part:
Superhuman agility buff
Events
Unit - Paladin 0001 <gen> Is issued an order targeting a point
Conditions
Superhuman[1] Equal to 1
Superhuman[2] Less than 2
Actions
-------- Set point were the caster will be teleported --------
Set FMTemp_Point_Super = (Target point of issued order)
-------- Order him to blink to Temp_Point --------
Animation - Change (Triggering unit)'s vertex coloring to (0.00%, 100.00%, 0.00%) with 65.00% transparency
Unit - Order Paladin 0001 <gen> to Move To FMTemp_Point_Super
Unit - Set level of Superhuman Agility Teleport for Paladin 0001 <gen> to (Level of Superhuman Agility for Paladin 0001 <gen>)
Unit - Order (Triggering unit) to Night Elf Warden - Blink FMTemp_Point_Super
Animation - Change (Triggering unit)'s vertex coloring to (100.00%, 100.00%, 100.00%) with 0.00% transparency
Set Superhuman[2] = (Superhuman[2] + 1)
Custom script: call RemoveLocation (udg_FMTemp_Point_Super)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Superhuman[2] Equal to 2
Then - Actions
Set Superhuman[1] = 0
Set Superhuman[2] = 0
Unit - Remove Superhuman Agility Teleport from Paladin 0001 <gen>
Else - Actions
Do nothing
The superhuman agility teleport ability is the blink ability with a 500 blink range each lvl.
Though when i test it my computer crashes so i must be doing something horribly wrong. Anyone know what?
Thx in advance