This seems like it would be something simple to do but maybe I'm approaching it the wrong way.
I'd like for my game to track how many enemies are killed in a given room in order to clear it and open a door to proceed into the next room.
Right now I have it so that when when an enemies health reaches 0 they are set to boolean "dead" = true and 1 is added to global variable "areaclear".
I want it so when "areaclear" reaches say 10 for example this triggers a door to open and the player can move onto the next area.
My problem is once an enemies health reaches 0 it triggers the add 1 to global variable 60+ times.
I've tried using the 'trigger once if true' and also adding an action immediately after adding to the global variable to set the health to -1. I've also variations of this with a boolean check for "dead". None are working properly for me.