Hi, I faced two problems during the development of my big project. Basically both of them solve a problem of the other, but then add in their own flaws.
I recently made changes to this event handling enemy deaths, because I tried to make a system, where every time I kill one enemy, 1 point is added to a special meter variable. This caused the first problem: on each enemy death, instead of adding just one, the special meter variable added an enormous amount of numbers, much more than it shoud have. I figured out that it was probably because the event was of the kind which has to be told to trigger once.
I added this trigger once condition you see in my code and it solved the counting confusion. However it created a new issue.
Now whenever, I faced a bigger amount of enemies (around 10), at some point they stopped being destroyed. I took a look at the debug and according to it, the enemies did take damage, but it had went under zero and added minus values, without destroying the enemies.
As you can see in this pic, when I toggle disabled that "trigger once" it solves one problem and adds another and when I enable it, the same happens the other way.
I dont know which way I should fix and stick into, but I hope youll be able to help me with either one.