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

Help with spell (Evade)

Status
Not open for further replies.
Level 6
Joined
Dec 9, 2008
Messages
233
i think you could do it with triggers, something like:

Events---Every 4 seconds
Conditions---Hero has learned(Evade spell) equal to true
Action--- Enable Evade spell

and then another trigger:
Events---Every 4.01 seconds
Conditions----Hero has learned (Evade spell) equal to true
Action---Disable Evade spell

Lol I doubt this will work but try it
 
Level 12
Joined
Apr 15, 2008
Messages
1,063
You were right about doubting it, it would only evade attacks made during 0.01 second between the two triggers.

Create 2 abilites: one Hero ability and one unit ability. The hero ability is a dummy ability, with no effect, and unit is 100% evasion.
  • Events
    • Timer Expires
  • Actions
    • Disable (dummy heroability)
    • Add (100% evade)
  • Events
    • Unit Is Attacked
  • Actions
    • Wait 0.01
    • Enable (dummy heroability)
    • Remove (100% evade)
    • Start Timer
Making this MUI would be much harder, and I don't know if you even need that.
 
Level 10
Joined
Jul 31, 2008
Messages
477
You were right about doubting it, it would only evade attacks made during 0.01 second between the two triggers.

Create 2 abilites: one Hero ability and one unit ability. The hero ability is a dummy ability, with no effect, and unit is 100% evasion.
  • Events
    • Timer Expires
  • Actions
    • Disable (dummy heroability)
    • Add (100% evade)
  • Events
    • Unit Is Attacked
  • Actions
    • Wait 0.01
    • Enable (dummy heroability)
    • Remove (100% evade)
    • Start Timer
Making this MUI would be much harder, and I don't know if you even need that.

Ehhm, can you write the exakt trigger so it looks like this:
  • Events
  • Unit - A unit is attacked
insted of :
  • Events
  • Unit is attacked
Cuz i think it is a bit hard to find all stuff then =/
 
Status
Not open for further replies.
Top