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

Buff Stacking Question

Status
Not open for further replies.
Level 7
Joined
Jun 14, 2009
Messages
235
If I make two copies of Slow, and make them place different buffs, will they stack?

This is just an example, I mean in general so if I was to make two Haste abilities or two Inner Fire abilities with different buffs would they stack?
 
Level 7
Joined
Jun 14, 2009
Messages
235
ok thanks, another question(s)

What would the best way to custom code a slow be? I use item abilities to add or remove damage etc., but there's only flat movement speed boosts or effects. Do I have to manually code the slows myself by changing their movement speed?

Is there another good way to code multiple slows/hastes?

I know you can use Auras to some effect, but they don't change levels immediately, so you have to make multiple auras for each slow level.
 
Level 14
Joined
Jun 27, 2008
Messages
1,325
You should use a BonusMod system:
Wurst: http://www.hiveworkshop.com/forums/wurst-resources-719/bonushandler-243242/
vJass: http://www.wc3c.net/showthread.php?t=107940
these systems allow you to set the attackspeed/movespeed of a unit to any value you want (internally they just add item abilities).

If you only want to set movespeed (not attackspeed) you can do it directly via trigger, so you wont need a BonusMod system.

Then you can either keep track of the buffstacks yourself or you use a buffsystem which can handle abilities with multiple stacks, for example:
http://www.hiveworkshop.com/forums/lab-715/buffhandler-240347/

Sounds complicated, but its a very clean and flexible solution. If you want i can write an example tomorrow..
 
Status
Not open for further replies.
Top