Uhh so I can't get this to work and i'm out of ideas to make this work
The idea is that Time Lapse puts a hero back 5 seconds in time returning hp and mana to the state that it was 5 seconds ago
The idea is that Time Lapse puts a hero back 5 seconds in time returning hp and mana to the state that it was 5 seconds ago
-
Time Lapse GUI
-
Events
-
Unit - A unit starts an effect of the ability
-
-
Conditions
-
(Ability being cast) Equal to Time Lapse
-
-
Actions
-
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 Lesser 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)
-
Unit - Order (Triggering unit) to Stop
-
-
-
Enable Time Lapse
-
Events
-
Unit - A unit learns an ability
-
-
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>
-
-
-
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
-
-
-
-
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)
-
-
-
-