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

Changing atk speed with triggers

Status
Not open for further replies.
Level 25
Joined
Aug 13, 2011
Messages
739
Use the Item Attack Speed Bonus (Gloves of Haste) ability as an attack speed modifier. Hold shift while clicking the value to get a negative number to slow attack speed. You can add different levels of different speeds to the ability and change them through triggering.

Examples:
  • Actions
    • Unit - Add Item Attack Speed Bonus (Gloves of Haste) to Unit

  • Actions
    • Unit - Set level of Item Attack Speed Bonus (Gloves of Haste) for Unit to 2
Let's say level 1 gives -0.1 attack speed increase. That would reduce attack speed as it's a negative value. Level 2 could be 0.1 which increases attack speed instead of reducing it. You can add as many levels and attack speed modifiers as you need with only one ability.
 
Level 24
Joined
Aug 1, 2013
Messages
4,657
In addition to Tickles post:
Make 10 abilities with all 1 level:
Ability1: 0.01 increase
Ability2: 0.02 increase
Ability3: 0.04 increase
Ability4: 0.08 increase
Ability5: 0.16 increase
Ability6: 0.32 increase
Ability7: 0.64 increase
Ability8: 1.28 increase
Ability9: 2.56 increase
Ability10: -5.12 increase

By adding the right abilities, you can make every single possibility from -5.12 to 5.11 but only -80 to 400 actually works because of the hardcoded maximum.

This decreases (improves) your loading time massively and can help much better when you understand what happens.
 
Status
Not open for further replies.
Top