🏆 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!
You can use the "Unit - Set Unit Weapon Real Field" action. I also noticed in the screenshot that you are increasing damage. That can be done the similar way, but the action is "Unit - Set Unit Weapon Integer Field"
Actions
Set VariableSet att = (Attack Interval of Footman 0000 <gen> for weapon index 0.)
Game - Display to (All players) the text: (String(att))
Unit - Set Unit: Footman 0000 <gen>'s Weapon Real Field: Attack Base Cooldown ('ua1c')at Index:0 to Value: 1.00
Unit - Set Unit: Footman 0000 <gen>'s Weapon Integer Field: Attack Damage Base ('ua1b')at Index:1 to Value: 200
Do notice one thing:
For some reason the "Set Unit Weapon Real Field" uses zero-based indexing, while "Set Unit Weapon integer Field" uses non-zero-based indexing, so in case of a Footman, to increase his attack speed the weapon index is 0 but to increase his attack damage the weapon index must be 1.
I don't know if Blizz is planning to fix this discrepancy or not, but if they do then your triggers may start behaving incorrectly.
You can use the "Unit - Set Unit Weapon Real Field" action. I also noticed in the screenshot that you are increasing damage. That can be done the similar way, but the action is "Unit - Set Unit Weapon Integer Field"
Actions
Set VariableSet att = (Attack Interval of Footman 0000 <gen> for weapon index 0.)
Game - Display to (All players) the text: (String(att))
Unit - Set Unit: Footman 0000 <gen>'s Weapon Real Field: Attack Base Cooldown ('ua1c')at Index:0 to Value: 1.00
Unit - Set Unit: Footman 0000 <gen>'s Weapon Integer Field: Attack Damage Base ('ua1b')at Index:1 to Value: 200
Do notice one thing:
For some reason the "Set Unit Weapon Real Field" uses zero-based indexing, while "Set Unit Weapon integer Field" uses non-zero-based indexing, so in case of a Footman, to increase his attack speed the weapon index is 0 but to increase his attack damage the weapon index must be 1.
I don't know if Blizz is planning to fix this discrepancy or not, but if they do then your triggers may start behaving incorrectly.
Thanks for the help. Yeah I noticed that which is why I have my Weapon Interval set to "WeaponInterval" which is set to 0 at the beginning. Blizzard needs to fix their broken programs. just like the ability boreal stuff where you need to have a number subtracted.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.