Apply a state to enemy when it already has another one

Hello, everyone!

I need help with this: I want to make an ability, let's say "backstab", which applies the "state bleed". Now, if the victim already has the state "bleed", I want the state "bleed 2" affect that enemy. And then, if the enemy already has "bleed 2", then "bleed 3" should affect it. Well, I think you get the idea.

Now, I know that there are plugins that do this, but I couldn't make any of them work properly. So if you know how to do what I'm asking with already existing plugins, please let me know.

Thanks for reading!!!
'Javascript/Plugin Support' is when you want help with a specific plugin that you are using.

It might be that you will need a plugin to do this, but initially I am going to move this to MV because this should be doable just using the damage formula. (I'm working on the assumption that as it can be done that way with Ace, it can also be done that way with MV.) Once you know the syntax, you can use it for any variation/state that you want. If my assumption is wrong, then this will have to go to JS/Plugin Requests.
damage formula
if (b.isStateAffected(x)) b.addState(y); .... repeat as needed and end with normal damage formula
There is already a plugin for this:
https://rpgmakermv.co/resources/state-evolve.425/

Original thread: https://forums.rpgmakerweb.com/threads/apply-a-state-to-enemy-when-it-already-has-another-one.88730/