MV Having one variable work separately for multiple events.

I've made my own combat system from scratch, it's somewhat of an arpg but with quick time events. It's not the best but I'm really proud of it, there is just one thing that is troubling me. I've made it so that enemies are defeated in one 'hit' so far, but now I want them to have some sort of 'health'. Basically, I intend for them to be able to be 'hit' a certain amount of times before finally being defeated (just by using self switches). I first thought up just switching to a different event page after a variable reaches a certain number, but that won't work if there's multiple enemies on one map. I tried using self switches but it won't work because the combat already uses them. I could possibly make each enemy have their own variables, but that seems like the amount could stack up easily and feels avoidable.

In more simple terms, I want to find a way to make a single variable work separately for multiple events.

I'm hoping if there's a plugin for what I'm looking for and I'm just using the wrong terms to search for it. And if there isn't, then I guess I'd be fine with giving each event their own variables. If anyone still has questions, I'm willing to share the system I made. (It's looks like spaghetti though and I barely comment, so sorry in advance). Also, I apologize if I posted this in the wrong category.

Here is a demonstration of the combat.
it's usually called self-variables, and there are several plugins for that.

I know yanfly has one, but I don't know if it is amoung the free yanfly plugins or in the paid package.
but you might find others when searching for self-variable plugins.
I know yanfly has one, but I don't know if it is amoung the free yanfly plugins or in the paid package.
but you might find others when searching for self-variable plugins.
It's on the paid package. Iavra has this one that works great, I use it on my game.
I incidentally made one yesterday as part of my Sketch Plugins (itch.io) (which I should probably make a thread for at this point). It seems like the Yanfly one in that it turns specific Variables and Switches into self- ones using a name pattern.
it's usually called self-variables, and there are several plugins for that.

I know yanfly has one, but I don't know if it is amoung the free yanfly plugins or in the paid package.
but you might find others when searching for self-variable plugins.
Oh my god, what a coincidence I have the paid package! I'm surprised it's really called "self variables" lol I should've guessed that sooner.

Original thread: https://forums.rpgmakerweb.com/threads/having-one-variable-work-separately-for-multiple-events.181797/