• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[Spell] Blink Hardcoded to only target explored?

Status
Not open for further replies.
Level 21
Joined
Mar 29, 2020
Messages
1,237
Hey,

Is blink hardcoded to only target areas you have explored or is there some way to alter this in the OE?
(I know it's a pretty easy ability to trigger, I'm just trying to get around all of the OE grunt work if possible...)

thanks!
 
Yeah I believe it is, however a work around would be to give the hero a dummy spell based on channel like Cokemonkey11 said, when it targets an area in range you'd trigger it so a tiny visibility modifier is added at that point, the blink ability is given to the hero and used at the target point and then removed again.
 

Uncle

Warcraft Moderator
Level 64
Joined
Aug 10, 2018
Messages
6,584
When triggering blink, the Move Unit (Instantly) function issues a Stop order and will interfere with the spell cast. The mana is spent but the cooldown gets interrupted. To get around this you can manually start the cooldown yourself.

Here's an example with some added features like Minimum/Maximum distance limitations as well.
  • Blink
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Blink (Triggered)
    • Actions
      • Set VariableSet Point[1] = (Position of (Triggering unit))
      • Set VariableSet Point[2] = (Target point of ability being cast)
      • -------- --------
      • Set VariableSet MaxDistance = 800.00
      • Set VariableSet MinDistance = 100.00
      • Set VariableSet DistanceBetween = (Distance between Point[1] and Point[2])
      • -------- --------
      • -------- Limit the distance traveled --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • DistanceBetween Greater than MaxDistance
        • Then - Actions
          • Set VariableSet Point[3] = (Point[1] offset by MaxDistance towards (Angle from Point[1] to Point[2]) degrees.)
          • Unit - Move (Triggering unit) instantly to Point[3]
          • Custom script: call RemoveLocation (udg_Point[3])
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • DistanceBetween Less than MinDistance
              • DistanceBetween Greater than 0.00
            • Then - Actions
              • Set VariableSet Point[3] = (Point[1] offset by MinDistance towards (Angle from Point[1] to Point[2]) degrees.)
              • Unit - Move (Triggering unit) instantly to Point[3]
              • Custom script: call RemoveLocation (udg_Point[3])
            • Else - Actions
              • Unit - Move (Triggering unit) instantly to Point[2]
      • -------- --------
      • -------- Manually start the cooldown --------
      • Unit - For Unit (Triggering unit), start cooldown of ability Blink (Triggered) " over "2.00 seconds.
      • -------- --------
      • -------- Special effect --------
      • Special Effect - Create a special effect at Point[1] using Abilities\Spells\NightElf\Blink\BlinkCaster.mdl
      • Special Effect - Destroy (Last created special effect)
      • Set VariableSet Point[4] = (Position of (Triggering unit))
      • Special Effect - Create a special effect at Point[4] using Abilities\Spells\NightElf\Blink\BlinkTarget.mdl
      • Special Effect - Destroy (Last created special effect)
      • -------- --------
      • -------- Clean up --------
      • Custom script: call RemoveLocation (udg_Point[1])
      • Custom script: call RemoveLocation (udg_Point[2])
      • Custom script: call RemoveLocation (udg_Point[4])
 

Attachments

  • Blink Triggered.w3m
    17.8 KB · Views: 19
Last edited:
Status
Not open for further replies.
Top