Ok, so I have a poison behavior buff that lasts 8 seconds, dealing 6 damage a second with a maximum of 6 stacks. I want all the currently stacked buffs on the unit to reset their durations to the 8 seconds whenever this buff is applied. However, since there seems to be no effect/ability/behavior that can modify a behaviors current duration, and I don't want to using triggers, I can't seem to figure out how I would do this.
Also, my next task will be creating an ability that when activated, all nearby units with this poison buff on them are dealt damage for each stack on them. (One ability removes them after use the other doesn't).
I solved this by using two behaviors. One of them was the actual poison and had a duration of zero. The other was the poison applicator and was hidden, had a timer, and had the initial and refresh effects set to add an additional stack of the actual poison effect, and the final effect set to remove all stacks of the poison.
edit: Important to make sure to set the maximum stack count for the applicator effect to 1.
Yeah, ironically I just came to that same fix today, but thanks for confirming that that was a working solution! So, if the maximum stack is 1, and the behavior is reapplied, does the new one replace the old one? If so, that would make my setup a little cleaner.
Thanks again! (I'll set this thread as RESOLVED if I get no replies after a day)
Yeah, ironically I just came to that same fix today, but thanks for confirming that that was a working solution! So, if the maximum stack is 1, and the behavior is reapplied, does the new one replace the old one? If so, that would make my setup a little cleaner.
Yes, that's what happens, and why this solution works.
Ok, so I have a poison behavior buff that lasts 8 seconds, dealing 6 damage a second with a maximum of 6 stacks. I want all the currently stacked buffs on the unit to reset their durations to the 8 seconds whenever this buff is applied. However, since there seems to be no effect/ability/behavior that can modify a behaviors current duration, and I don't want to using triggers, I can't seem to figure out how I would do this.
Also, my next task will be creating an ability that when activated, all nearby units with this poison buff on them are dealt damage for each stack on them. (One ability removes them after use the other doesn't).
@redpand: Go
I solved this by using two behaviors. One of them was the actual poison and had a duration of zero. The other was the poison applicator and was hidden, had a timer, and had the initial and refresh effects set to add an additional stack of the actual poison effect, and the final effect set to remove all stacks of the poison.
edit: Important to make sure to set the maximum stack count for the applicator effect to 1.
@RileyStarcraft: Go
Yeah, ironically I just came to that same fix today, but thanks for confirming that that was a working solution! So, if the maximum stack is 1, and the behavior is reapplied, does the new one replace the old one? If so, that would make my setup a little cleaner.
Thanks again! (I'll set this thread as RESOLVED if I get no replies after a day)
Yes, that's what happens, and why this solution works.
@RileyStarcraft: Go
Perfect!
Thanks again for the help!
[RESOLVED]