cr4xzZz
Also known as azwraith_ftL.
- Reaction score
- 51
Time Lapse
GUI/JASS? - GUI
MUI? - No
Leakless? - As far as I know yes.
No screenshots, because the ability is instant and you will see only the Blink special effect...
The values are set every 1 second, but you can easily change that if you want.
Warps time back on itself, transporting the Weaver 5 seconds into the past. Does not affect gold, XP, cooldowns or items.
Level 1 - 150 manacost.
Level 2 - 75 manacost.
Level 3 - 0 manacost.
Cooldown: 120/90/60 seconds.
More description: If anyone doesn't understand what this spell does, well, it moves the caster to the position where he was 5 seconds ago and sets HP and MP to which it was 5 seconds ago.
Code:
Code:
Time Lapse GUI
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Time Lapse
Actions
Unit - Order (Triggering unit) to Stop
Set CasterPos = (Position of (Triggering unit))
Special Effect - Create a special effect at CasterPos using Abilities\Spells\NightElf\Blink\BlinkTarget.mdl
Special Effect - Destroy (Last created special effect)
Custom script: call RemoveLocation (udg_CasterPos)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
HPInteger Less than or equal to 6
Then - Actions
Unit - Set life of (Triggering unit) to HP[1]
Unit - Set mana of (Triggering unit) to MP[1]
Unit - Move (Triggering unit) instantly to POS[1]
Custom script: call RemoveLocation (udg_POS[1])
Else - Actions
Unit - Set life of (Triggering unit) to HP[(HPInteger - 5)]
Unit - Set mana of (Triggering unit) to MP[(MPInteger - 5)]
Unit - Move (Triggering unit) instantly to POS[(POSInteger - 5)]
Custom script: call RemoveLocation (udg_POS[udg_POSInteger - 5])
Set CasterPos = (Position of (Triggering unit))
Special Effect - Create a special effect at CasterPos using Abilities\Spells\NightElf\Blink\BlinkTarget.mdl
Special Effect - Destroy (Last created special effect)
Custom script: call RemoveLocation (udg_CasterPos)
Code:
Enable Time Lapse
Events
Unit - A unit Learns a skill
Conditions
(Level of Time Lapse for (Triggering unit)) Greater than 0
Actions
Set Caster = (Triggering unit)
Trigger - Turn off (This trigger)
Trigger - Turn on Time Lapse Periodic <gen>
Code:
Time Lapse Periodic
Events
Time - Every 1.00 seconds of game time
Conditions
(Caster is alive) Equal to True
Actions
Set HPInteger = (HPInteger + 1)
Set HP[HPInteger] = (Life of Caster)
Set MPInteger = (MPInteger + 1)
Set MP[MPInteger] = (Mana of Caster)
Set POSInteger = (POSInteger + 1)
Set POS[POSInteger] = (Position of Caster)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
HPInteger Greater than 6
Then - Actions
Custom script: call RemoveLocation (udg_POS[udg_POSInteger - 6])
Else - Actions
Code:
Caster Revives
Events
Unit - A unit Dies
Conditions
(Dying unit) Equal to Caster
Actions
Wait until ((Caster is alive) Equal to True), checking every 0.10 seconds
For each (Integer A) from 1 to 5, do (Actions)
Loop - Actions
Set HP[(HPInteger - (Integer A))] = (Life of Caster)
Set MP[(MPInteger - (Integer A))] = (Mana of Caster)
Set POS[(POSInteger - (Integer A))] = (Position of Caster)