• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Single target evasion grant ability

Status
Not open for further replies.
Level 9
Joined
Jun 10, 2013
Messages
473
Hey :D I need help with an ability and any trigger post would be much appreciated.

The ability is called "Shadows Protection"

and it would be a single target cast on an allied unit or structure

it would grant the targeted unit/structure a 50% chance to evade an attack and would last 30 seconds
 

Ardenian

A

Ardenian

Take any single target ability, remove its bonus, change targets allowed and use a damage engine ( Bribe's or the PDD by looking_for_help) to check upon event whether the unit has the buff received from the single target spell and roll a number between 1 or 2 and nullify damage if true.
 
Yep. Using http://www.hiveworkshop.com/forums/spells-569/gui-damage-engine-v3-5-4-1-a-201016/, your trigger would look like this:

  • Temporary Evade
    • Events
      • Game - DamageModifierEvent becomes Equal to 1.00
    • Conditions
      • (DamageEventTarget has buff TemporaryEvade) Equal to True
      • (Random number between 0 and 1) Equal to 0
    • Actions
      • Set DamageEventAmount = 0.00
The only thing to do is make that buff "temporary evade" last for 30 seconds.
 
Status
Not open for further replies.
Top