Passive Blinking

Foresector

Member
Reaction score
16
Ok, so for one of my characters Im trying to make it so that when he moves, he will just automatically keep blinking until he gets to the target destination. The ability Im using has a cooldown of 0.3 seconds yet when I order him to move there is like a 5 second gap.

Code:
    Events
        Unit - A unit Is issued an order targeting a point
    Conditions
        (Unit-type of (Triggering unit)) Equal to Crippled Psychic
    Actions
        Set ShiftDistance = (Distance between (Position of CrippledPsychic) and ShiftTarget)
        Set ShiftBoolean = False
        Set ShiftTarget = (Target point of issued order)
        Set CrippledPsychic = (Triggering unit)
        Trigger - Run Shift Movement <gen> (checking conditions)
        Wait until (ShiftBoolean Equal to True), checking every 1.00 seconds
        Trigger - Turn off Shift Movement <gen>

Code:
    Events
        Time - Every (2.70 - ((Real((Level of Shift  for Crippled Psychic 0034 <gen>))) x 0.60)) seconds of game time
    Conditions
    Actions
        Set ShiftDistance = (Distance between (Position of CrippledPsychic) and ShiftTarget)
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                ShiftDistance Less than or equal to 100.00
            Then - Actions
                Set ShiftBoolean = True
            Else - Actions
                Unit - Order CrippledPsychic to Night Elf Warden - Blink ShiftTarget
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,496
> Time - Every (2.70 - ((Real((Level of Shift for Crippled Psychic 0034 <gen>))) x 0.60)) seconds of game time

You might just as well replace this with
Time - Every 2.7 seconds.

This event is permanent.
It is registered once, when the map loads, and never changes again.
 

Hero

─║╣ero─
Reaction score
250
> Time - Every (2.70 - ((Real((Level of Shift for Crippled Psychic 0034 <gen>))) x 0.60)) seconds of game time

You might just as well replace this with
Time - Every 2.7 seconds.

This event is permanent.
It is registered once, when the map loads, and never changes again.

Yes but this can be changed correct me if I am wrong by adding the event after the game is loaded then it can be changed..right?
 

Foresector

Member
Reaction score
16
Hmm well, changing the event to 0.1 seconds has helped.. a bit.
The thing I'm noticing is that once the hero completes blinking, the icon stays green for a while or so and while it is green you can't cast it again. Is there anyway to get around that?
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top