• 🏆 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!

[Trigger] w00t! I discovered a way to make a reliable triggered evasion!

Status
Not open for further replies.
Level 2
Joined
Apr 5, 2009
Messages
18
w00t! Break through for GUI n00b like me, possibly old news for pros like you >_>

Anyway, enjoy!

  • Triggered Evasion
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • ~Your conditions~
    • Actions
      • Unit - Remove Miss (100%) from AttackedUnit
      • Set AttackedUnit = (Attacked unit)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Random integer number between 1 and 100) Less than or equal to (chance to evade)
        • Then - Actions
          • Unit - Add Miss (100%) to AttackedUnit
        • Else - Actions
          • ~Else Actions~
Note:
- Tested and works ofc
- You must make a black icon for the "miss (100%)" ability, otherwise setting it to "no icon" will result in a green icon popping up every now and then.
 
Level 6
Joined
Oct 4, 2008
Messages
263
well.... you were right when you said this was possibly old news for 'pros' like us.
 
Status
Not open for further replies.
Top