The only way I can think of is to make a behaviour reduce speed by 10% for 3 seconds. When it expires, it adds another behaviour that slows speed by 20% for 3 seconds. When it expires it adds another behaviour etc.
Your idea seems fine.
Other thing you might try is having one "controler" behavior that would add stacks of slowing behavior by means of
Effect: Effect - Periodic and remove all stacks at Effect: Effect - Final.
I'm not sure how will it scale tho.
The only way I can think of is to make a behaviour reduce speed by 10% for 3 seconds. When it expires, it adds another behaviour that slows speed by 20% for 3 seconds. When it expires it adds another behaviour etc.
That would be a possibility. You could also add a behavior, which has a 3 second period and adds a new stack of a slowing behavior initially and every 3 seconds. For reverse, you just add max stacks initially and periodically remove the stacks with a Remove Behavior effect.
€ ninja'ed
maticpl's last notion is noteworthy, though: Behavior stacks usually stack multiplicatively, which might not be what you want (10% slow stacking would be 10%, 21%, 33%, 46%...), however if you use the Unified fields (which were added in a recent patch) instead of the usual modification fields, it should stack additively again.
maticpl's last notion is noteworthy, though: Behavior stacks usually stack multiplicatively, which might not be what you want (10% slow stacking would be 10%, 21%, 33%, 46%...), however if you use the Unified fields (which were added in a recent patch) instead of the usual modification fields, it should stack additively again.
Hey, I didn't knew about these fields, thanks!
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
A spell adds a buff to an enemy unit. The longer the buff is on the enemy target, the slower it's attack and movement becomes.
I also plan to make a spell the other way around, it gets slowed a lot first, and then it becomes faster and faster again.
What would the easiest way be to achieve this?
Any suggestions?
The only way I can think of is to make a behaviour reduce speed by 10% for 3 seconds. When it expires, it adds another behaviour that slows speed by 20% for 3 seconds. When it expires it adds another behaviour etc.
Is there any smoother way?
Hi,
Your idea seems fine.
Other thing you might try is having one "controler" behavior that would add stacks of slowing behavior by means of
Effect: Effect - Periodic and remove all stacks at Effect: Effect - Final.
I'm not sure how will it scale tho.
Regards
That would be a possibility. You could also add a behavior, which has a 3 second period and adds a new stack of a slowing behavior initially and every 3 seconds. For reverse, you just add max stacks initially and periodically remove the stacks with a Remove Behavior effect.
€ ninja'ed
maticpl's last notion is noteworthy, though: Behavior stacks usually stack multiplicatively, which might not be what you want (10% slow stacking would be 10%, 21%, 33%, 46%...), however if you use the Unified fields (which were added in a recent patch) instead of the usual modification fields, it should stack additively again.
Hey, I didn't knew about these fields, thanks!