I want to put a type of NPC in the game that follows the player and when the NPC touches the player it drains a set amount of the player's HP. I can get it to do that just fine but once it touches the player, the player gets stuck and the NPC continually touches the player, draining their HP until there's none left. That's not how I want it to work. I want it to drain the set amount once and then start over at following the player again.
I tried putting in a self-switch after the "decrease HP" command and that seemed to work the way I wanted at first but then when I edited it and tried to change the amount of HP it steals, it went back to functioning the same way it did before. Even after I changed the HP drain amount back to 1 like it was when it worked, it continued to function like it did originally again.
So now I'm just completely confused. How the heck do you get an event to not stick to the player once it touches them and does its thing?
I tried putting in a self-switch after the "decrease HP" command and that seemed to work the way I wanted at first but then when I edited it and tried to change the amount of HP it steals, it went back to functioning the same way it did before. Even after I changed the HP drain amount back to 1 like it was when it worked, it continued to function like it did originally again.
So now I'm just completely confused. How the heck do you get an event to not stick to the player once it touches them and does its thing?

