I am making an ability that reduces a unit's health to 50% of their maximum. I'm using a create persistent, with the periodic effect of dealing 1 damage. I gave the persistent the periodic validator "life > 1/2", but this appears to do nothing, as I get a stack overflow error.
if your period duration is 0 you need to put your periodic validator to periodic effects (i assume damage effect?) also, otherwise it will be infinite cycle, because persistent won't get chance to perform validation.
so, every time you use period 0 you should put periodic validator to periodic effect as well.
If period 0 sec is not the case then you probably doing something wrong.
it works (it ends the persistent effect) you just need to have periodic validator both on persistent effect and on periodic effect. This is only required for 0 sec period.
So does my suggestion fixed your issue or not?
This error pops up when you accidentaly put Persistent effect in Periodic effect of the same Persistent (at least from my experience). Double check what you've done.
Hi all,
I am making an ability that reduces a unit's health to 50% of their maximum. I'm using a create persistent, with the periodic effect of dealing 1 damage. I gave the persistent the periodic validator "life > 1/2", but this appears to do nothing, as I get a stack overflow error.
How can I stop this error?
nope, you are doing something wrong, most likely creating alot of persistants. all of my peridic validators work just fine.
If a periodic validator fails the persistent is removed. Add the validator to the effect used by the persistent.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
@DrSuperEvil: Go
I did this and the effect works, just getting the error.
@coffeeclubbr: Go
if your period duration is 0 you need to put your periodic validator to periodic effects (i assume damage effect?) also, otherwise it will be infinite cycle, because persistent won't get chance to perform validation.
so, every time you use period 0 you should put periodic validator to periodic effect as well.
If period 0 sec is not the case then you probably doing something wrong.
@abvdzh: Go
Wait, so periodic validation doesn't work with 0 period duration?
I put the validator on the periodic event and the ability works fine, just getting this error.
@coffeeclubbr: Go
it works (it ends the persistent effect) you just need to have periodic validator both on persistent effect and on periodic effect. This is only required for 0 sec period.
So does my suggestion fixed your issue or not?
This error pops up when you accidentaly put Persistent effect in Periodic effect of the same Persistent (at least from my experience). Double check what you've done.
@abvdzh: Go
I think I did that, and it still has this error, but double check anyways :)