• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Get your art tools and paintbrushes ready and enter Hive's 34th Texturing Contest: Void! Click here to enter!

[Script] Cast Evasion on Target

Level 31
Joined
Aug 29, 2012
Messages
1,441
You can use any spell that leaves a buff on an unit, then trigger it with something simple like this (at least for 1.31+)

  • Evasion
    • Events
      • Unit - A unit About to take damage
    • Conditions
      • ((Triggering unit) has buff Evasion Spell) Equal to True
      • (Damage From Normal Attack) Equal to True
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Random real number between 0.00 and 100.00) Less than or equal to YourEvasionChances
        • Then - Actions
          • Event Response - Set Damage of Unit Damaged Event to 0.00
          • Floating Text - Create floating text that reads |c00FF2222miss|r above (Damage source) with Z offset 0.00, using font size 9.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
          • Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
          • Floating Text - Change (Last created floating text): Disable permanence
          • Floating Text - Change the lifespan of (Last created floating text) to 2.00 seconds
          • Floating Text - Change the fading age of (Last created floating text) to 1.00 seconds
        • Else - Actions
 
Top