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

How to make Stats Debuff/Buff?

Status
Not open for further replies.
Level 9
Joined
Apr 23, 2011
Messages
527
afaik there's no direct way to increase stats using abilities.
you can, however, make an ability based on Item Hero Stat Bonus, then set the attribute bonus to whatever you want, and a dummy ability that the unit casts. then when the unit casts the spell, make a trigger that adds the stat ability to the unit.
 
Level 12
Joined
May 20, 2009
Messages
822
what do you mean by "get stats when he casts?" that's what the spell trigger would do.
like i said, afaik there is no direct way to increase stats using just abilities.

He means:

Unit Casts Spell.
Get stats of targeted unit.
Save stats.
Modify stats accordingly.
Reset them after duration.

But there is a slight problem here, it will look pretty bad and it will be difficult to telegraph to the player why their heroes stats were reduced without that unit having a buff. You can also use that buff to be able to time the trigger without using Waits or complicated timers. Run a periodic effect that checks all indexed units, and if that unit doesn't have the buff then reset their stats and deindex them.
 
Status
Not open for further replies.
Top