Move-Blink Ability

l1lshadow

New Member
Reaction score
4
I need help on making a blink spell that triggers when you order your unit to move to an area, for an example if a unit has blink and was ordered to move to a tree blink would automaticly cast and move him to the tree.
 

WolfieeifloW

WEHZ Helper
Reaction score
372
When a unit learns the skill Blink, add them to a unit group.
Then use this:
Trigger:
  • Untitled Trigger 001
    • Events
      • Unit - A unit Is issued an order targeting a point
    • Conditions
      • ((Ordered unit) is in blinkGroup) Equal to (==) True
    • Actions
      • Unit - Order (Ordered unit) to Night Elf Warden - Blink (Target point of issued order)

blinkGroup is a Unit Group variable.
 

Waaaaagh

I lost all my rep and my title being a jerk
Reaction score
70
you need more stuff, like condition (order == "move"), and also 'Remove From Group( unit dude) ... wait (cooldown) ... add to Group (unit dude)
 

CaptDeath

New Member
Reaction score
103
thats cause you need 2 triggers wolfies
and a one for when the warden learns the skill
Warrnning free handed
Trigger:
  • Blink Group
    • Events
      • Unit - A unit Learns Spell Blink
    • Conditions
      • ((Triggering unit) is iA Hero) Equal to (==) True
    • Actions
      • Unit Group - Add (Triggering unit) to blink Group
 

WolfieeifloW

WEHZ Helper
Reaction score
372
Sigh...
I said it needed two triggers:
When a unit learns the skill Blink, add them to a unit group.
Then use this:
The trigger to add them to the group is:
Trigger:
  • Blink Learn
    • Events
      • Unit - A unit Learns a skill
    • Conditions
      • (Learned Hero Skill) Equal to Blink
    • Actions
      • Unit Group - Add (Learning Hero) to blinkGroup
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
Trigger:
  • Blink Move
    • Events
      • Unit - A unit Is issued an order targeting a point
    • Conditions
      • (Level of Blink for (Triggering unit)) Greater than 0
      • Or - Any (Conditions) are true
        • Conditions
          • (Issued order) Equal to (Order(smart))
          • (Issued order) Equal to (Order(attack))
    • Actions
      • Set Point1 = (Position of (Triggering unit))
      • Set Point2 = (Target point of issued order)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Distance between Point1 and Point2) Greater than 400.00
        • Then - Actions
          • Special Effect - Create a special effect at Point1 using Abilities\Spells\NightElf\Blink\BlinkCaster.mdl
          • Special Effect - Destroy (Last created special effect)
          • Special Effect - Create a special effect at Point2 using Abilities\Spells\NightElf\Blink\BlinkTarget.mdl
          • Special Effect - Destroy (Last created special effect)
          • Unit - Move (Triggering unit) instantly to Point2
        • Else - Actions
      • Custom script: call RemoveLocation( udg_Point1 )
      • Custom script: call RemoveLocation( udg_Point2 )


Somewhat basic, but it works.
Assumes "blink" is a passive ability.
If you prefer the active way, replace the "unit - move" with an order to use Blink.

A more advanced passive version would check for some maximum distance, move the Hero some 200 before the end point and order him to (attack-)move the rest.
 
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