Any way to change the order that 2 states interact?

I am using several states for different types of damage over time using Yanfly's DOT plugin, with the intent that characters with the right stats can heal from that damage. I have all the damage numbers working as well as the regen, however the regen comes before the damage. This means that you can never heal to full hp if you have 2 different DOT states, even if it outheals. Is there any way to reverse this order?

Edit: I realized reversing the order could create the opposite fringe case, where a heal could come AFTER hitting 0 HP and kill the player. I'd rather deal with the original order so I no longer need the answer, though I am unsure how to delete this thread altogether.
you said you no longer needed the answer, but did you try adjusting the state priority? I dont use the dot plugin, but buffs and states core effects run according to their priority and then by id.
I did try reordering so that the state I wanted to apply first had the earlier ID, but that didn't help either. I don't see anything in buff and states core that mentions priority though. Do you know where to look for that documentation?
I don't see anything in buff and states core that mentions priority though. Do you know where to look for that documentation?
its not explicitly stated in the documentation, but the code behind the engine makes it the result. as states are gained, the battler's state list is sorted by priority and yanfly's buffs and states effect notetags are ran in the order of that sorted list.

I did try reordering so that the state I wanted to apply first had the earlier ID, but that didn't help either
Did changing the value inside the state's priority box not help?
Facepalm moment :eswt: I forgot the priority box even existed. That probably would've saved me the trouble of moving the states around and needing to redo events for the testing, just for it to not work.
I appreciate the help.

Original thread: https://forums.rpgmakerweb.com/threads/any-way-to-change-the-order-that-2-states-interact.175855/