Forum > Serverside Modding
Stacking slows
<< < (2/2)
schlumpf:
I understood that. The last-5-seconds and every-5-seconds are a hack around needing to remove the slow on unequip.
Kobiesan:
--- Quote from: 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.
--- End quote ---
I still don't understand.
schlumpf:
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.
Makpptfox:
--- Quote from: 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.
--- End quote ---
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.
Navigation
[0] Message Index
[*] Previous page
|