Spell Time Lapse

cr4xzZz

Also known as azwraith_ftL.
Reaction score
51
Time Lapse
btnorboffrostnp1.png

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)
 

Attachments

  • [DotA Spell] Time Lapse.w3x
    73.4 KB · Views: 1,274

Sim

Forum Administrator
Staff member
Reaction score
534
And hummm...

Where's the spell map? :D
 

the Immortal

I know, I know...
Reaction score
51
Looks good, works fine and I can't find any leaks. + rep from me

We talked earlier about that spell and he told me to make it in JASS, forgetting to say that he makes it too. So if you don't mind I will also post my JASS / MUI way :)
 

NetherHawk

New Member
Reaction score
26
you might want to add a trigger preventing the unit from immediately casting when he learns or revives.
 

cr4xzZz

Also known as azwraith_ftL.
Reaction score
51
Hm, maybe I'll add it. But not now because I have work... So, no other comments?

Update time! Added a trigger which prevents immediate cast when the Hero revives.
EDIT: And added JASS version
 

Sim

Forum Administrator
Staff member
Reaction score
534
There are no implementation instructions in both maps.

The GUI has instant casting time because of the fact it is based on Fan of Knives. That makes it different to the one in DotA, but it's only a minor detail. :)
 

cr4xzZz

Also known as azwraith_ftL.
Reaction score
51
> There are no implementation instructions in both maps.
But there is one in the first post?

> The GUI has instant casting time because of the fact it is based on Fan of Knives. That makes it different to the one in DotA, but it's only a minor detail.
Well, I'll fix that... I'll base it of Berserk because it won't bug it.
 

darkRae

Ueki Fan (Ueki is watching you)
Reaction score
173
If you base it off Berserk then the Casting Unit won't play its animation and start the effect of the ability instantly, while the Nerubian Weaver in DotA does in fact play an animation.

Well, I'm just suggesting to make it as similar to the one in DotA as possible :D
 

cr4xzZz

Also known as azwraith_ftL.
Reaction score
51
Ok, fixed... Now it's based on Berserk and shouldn't have any bugs. Hope this is the last update..
 

Sim

Forum Administrator
Staff member
Reaction score
534
> But there is one in the first post?

Doesn't matter, it must be inside the spell map. :)
 

cr4xzZz

Also known as azwraith_ftL.
Reaction score
51
> Doesn't matter, it must be inside the spell map.
Oh, didn't know that... In the last update I added in the GUI version. Please, tell me if the JASS version needs fixing so I can make it a bigger update. If there code doesn't need fixing then I'll add later an implementation instructon..
 

Sim

Forum Administrator
Staff member
Reaction score
534
Remove the JASS version. I just noticed it wasn't made by you, and so it must not be included.
 

Sim

Forum Administrator
Staff member
Reaction score
534
Ok, fixed... Now it's based on Berserk and shouldn't have any bugs. Hope this is the last update..

Doesn't change the fact it is still instant-cast.

Anyways, this is only a minor thing... approved!
 

cr4xzZz

Also known as azwraith_ftL.
Reaction score
51
> i thought Time Lapse was Jass
In DotA it is JASS. Maybe some day when I have time I'll make a JASS MUI version too...
 

mightylink

New Member
Reaction score
1
i saw this in dota all stars, it can be weak or very powerful depending when you use it, helps save you from near deaths :D
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top