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

How To Make Stacked Buff

Status
Not open for further replies.
Level 3
Joined
Apr 5, 2016
Messages
21
so for example Player A uses ability that give +15% damage, then player B uses ability that give +30% damage, so the total is +45% damage.
how do i make an ability like that?
 
Level 11
Joined
Jun 2, 2004
Messages
849
This can be done with Command Aura, with the limitation that it cannot stack the same aura. Different auras must have different buffs to stack.

So, buffing ability 1 needs to give the unit an invisible Command Aura that grants 10% damage to the unit, and buffing ability 2 needs to give a separate copy of Command Aura with a different buff set that grants 15% damage to the unit. Your triggers will also have to handle the removal of the command auras after the duration is supposed to wear off.

Downside of this method is it won't have the buff fading animation, and dispel won't remove the buffs.
 
Other possible variant (if you want to rely more on warcraft 3 build in functions) is to make a clone of roar /inner fire or any other abilites giving % atk bonus with multiple levels, each level having an unique buff.
On cast depending on the buff the target currently has let a dummy unit cast the spell with the next resulting level (has first -> becomes second level).
 
Status
Not open for further replies.
Top