• 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.

What is the best way to make this trigger?

Status
Not open for further replies.
Level 3
Joined
May 10, 2010
Messages
6
I the attack speed of this hero to increase by 10% when he loses 10% of HP (20%AS when he's at 80%HP, 30%AS at 70%HP etc.). Should I make an Item Bonus Attack Speed ability? What would be the best way to make this trigger?Thanks! :ogre_haosis:
 
Level 13
Joined
Oct 16, 2010
Messages
737
Item Bonus Attack Speed would work. You'd have to make a trigger that goes by a periodic timer, then picks all those with the ability. Then just make it change the level of the ability depending on their HP. Shouldn't be too difficult. PM if you want it explained more.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
Do remember that the maximum faster attack speed possible by the game is 400%. Trying to raise attack speed any faster does nothing. Especially with other items and agailty increasing attack speed (unless custom imported file, lowest non-zero editor can set is 1% per point of agility) it can be very easy to hit the maximum attack speed.
 
Level 5
Joined
Apr 27, 2014
Messages
115
I the attack speed of this hero to increase by 10% when he loses 10% of HP (20%AS when he's at 80%HP, 30%AS at 70%HP etc.). Should I make an Item Bonus Attack Speed ability? What would be the best way to make this trigger?Thanks! :ogre_haosis:

So... I hope this can help you:
  • Increase Speed Attack
    • Event
      • Unit - A unit is under attack
    • Condition
      • (Unit-type of (Attacked unit)) Equal to (your unit)
    • Action
      • Set (unit variable) = (Attacked unit)
      • Trigger - Turn on Increase Speed Attack2 <gen>
  • Increase Speed Attack2
    • Event
      • Time- Every 1.00 seconds of game time
    • Condition
    • Azioni
      • Unit - Set level of (your ability) for (unit variable) to ((Integer((100.00 - (Percentage life of (unit variable)))) / 5)
My ability has 20 level but I could modify if You understand how it works...
 
Item Bonus Speed is buggy when it comes to value, the next level (2,3,4, and so on) values will not be used unless you use tricks that BonusMod uses.
Blame Blizzard for this bug.

You can utilize Bloodlust, which AFAIK doesn't bug. Just use the same check but order the unit to use Bloodlust (set time to -0.01 (?) or 99999.00(?)) and if you don't wanna, try to use hidden buffs, there are some way AFAIR.
 
Status
Not open for further replies.
Top