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

[Unsolved] Attack Speed Upgrades along with Dmg Upgrades

Status
Not open for further replies.
Level 1
Joined
Nov 13, 2015
Messages
1
So, in order to have infantry weapon upgrades also give an attack speed boost, we would simply build it into the upgrade data.

However, for a map I am making, players are allowed to select a bonus in the in-game lobby. If they pick "Attack Speed Upgrades", then Offensive upgrades give an attack speed boost to the affected units (regardless of what race they pick).

What is the easiest robust way to implement this?
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,202
Way one Is to duplicate all upgrades and use requirements to select which is available to the player.

The other way is to use the catalog natives in triggers to give the modification along with the research completing if the player meats the appropriate "Attack Speed Upgrades" condition. You could also simply give the player another upgrade which applies the attack speed upgrade to all units in response to them completing the research.

Another option might be to upgrade the weapon upgrades so instead of adding +0 attack speed they add some amount. This may or may not be possible depending on if the fields are upgradable.
 
Status
Not open for further replies.
Top