Modcraft - The community dedicated to quality WoW modding!

Wrath of the Lich King Modding => Serverside Modding => Topic started by: Kobiesan on October 31, 2017, 01:01:47 am

Title: Stacking slows
Post by: Kobiesan on October 31, 2017, 01:01:47 am
For some reason I can't get slows to stack. I have a 50% slow debuff aura and I have another debuff I want to apply that slows an additional 10% but they aren't stacking. Any help?

This is on Rochet's most recent TC eluna.
Title: Re: Stacking slows
Post by: Makpptfox on December 05, 2017, 01:40:18 am
I'll give my answer even if it's old for the folks passing by and having the same question.

Movement speed in wow can't stack from differents auras.

Let's say you want to have a passive skill giving you 50% of movement speed and a active skill giving you 50% additionnal movement speed.

Then you will create the passive skill with +50% MS in the values, but for the active skill you'll have to set the value to 100% because the MS take only the greater/lower value to make the final MS calcul.

Same for the slows.

You can bypass this by making a single aura and stacking it, 10, 20, 30, 40, 50%, it will work the same way for increase or decrease.

But as long as you want to change the movement speed with differents auras, you'll have to think about the fact that the greater/lesser will be the only one to be taken into account by the game.

Regards.
Title: Re: Stacking slows
Post by: Kobiesan on December 06, 2017, 08:56:23 pm
I'll give my answer even if it's old for the folks passing by and having the same question.

Movement speed in wow can't stack from differents auras.

Let's say you want to have a passive skill giving you 50% of movement speed and a active skill giving you 50% additionnal movement speed.

Then you will create the passive skill with +50% MS in the values, but for the active skill you'll have to set the value to 100% because the MS take only the greater/lower value to make the final MS calcul.

Same for the slows.

You can bypass this by making a single aura and stacking it, 10, 20, 30, 40, 50%, it will work the same way for increase or decrease.

But as long as you want to change the movement speed with differents auras, you'll have to think about the fact that the greater/lesser will be the only one to be taken into account by the game.

Regards.

Damn. I wanted to make plate gear slow you down with each piece you have equipped. Guess it's impossible.
Title: Re: Stacking slows
Post by: schlumpf on December 06, 2017, 09:00:41 pm
But that post says it isn't?

Make your items have a hidden spell, have that spell apply an aura stack every 5 seconds. Have the aura last 5 seconds. Done.
Title: Re: Stacking slows
Post by: Kobiesan on December 06, 2017, 09:02:52 pm
But that post says it isn't?

Make your items have a hidden spell, have that spell apply an aura stack every 5 seconds. Have the aura last 5 seconds. Done.

I want a permanent slow per piece of plate you're wearing.
Title: Re: Stacking slows
Post by: schlumpf on December 06, 2017, 09:42:12 pm
I understood that. The last-5-seconds and every-5-seconds are a hack around needing to remove the slow on unequip.
Title: Re: Stacking slows
Post by: Kobiesan on December 07, 2017, 12:05:02 am
I understood that. The last-5-seconds and every-5-seconds are a hack around needing to remove the slow on unequip.

I still don't understand.
Title: Re: Stacking slows
Post by: schlumpf on December 07, 2017, 01:00:29 am
I'm not an expert in spell hackery. The point is:

If auras can stack if of the same spell ID, create an aura A that adds -10% speed per stack.

Every item Ix applies one stack of aura A on equip. Since I don't know how to remove stacks on unequip, my hack would be that aura A has a duration of 5 seconds, and thus, the on-equip effect of item Ix is periodically reapplying aura A.

That way, it is constantly refreshing a slowing aura, and since multiple items cast that aura, it stacks. As soon as an item is unequipped, it stops applying the aura, thus makes you faster again.
Title: Re: Stacking slows
Post by: Makpptfox on December 13, 2017, 09:37:48 am
I'm not an expert in spell hackery. The point is:

If auras can stack if of the same spell ID, create an aura A that adds -10% speed per stack.

Every item Ix applies one stack of aura A on equip. Since I don't know how to remove stacks on unequip, my hack would be that aura A has a duration of 5 seconds, and thus, the on-equip effect of item Ix is periodically reapplying aura A.

That way, it is constantly refreshing a slowing aura, and since multiple items cast that aura, it stacks. As soon as an item is unequipped, it stops applying the aura, thus makes you faster again.

It could totally works of course.

The thing is he'll have to apply the aura to each plate items he want it to be effective.

edit : For the note, you could even make the aura visible to the player but hide the duration for it to not being obnoxious (it's a spell flag) to show the effect of "why I am slowed down", simple QoL addition tho.