All instances of affected enemies get cured at once - Any idea how to fix this issue?
OK, so this is what I want:
In my game, you have the ability to inflict enemies with different status effects. This part works fine. I've decided to have there be a chance that the enemies can recover for any given inflicted status, so here's what I'm doing with the burning effect and they have a 10% chance every 3 seconds to recover. (Where let's say Flag 5 is for Burning to death, on = yes, off = no).
Every 3 seconds
+Group.Enemies flag 5 is on
+Random(100)+1 <= 10
+Only one action per event runs (or whatever it's called lol)
-> Group.Enemies flag 5 set to OFF, create the 'wow I'm cured!' effect on that enemy
So what's happening is if X amount of enemies are on fire and the 10% check is successful, all X enemies get cured all at once and they each get a 'wow I'm cured!" effect over their heads. I'd want each enemy to have a 10% chance of getting cured, not a 10% chance for every enemy to get cured all at once.
I thought that having the 'only one action per event runs' line would stop this from happening but no dice.
Any idea what I'm missing?
Thanks!