Damage Formula for Technical Attacks ala Persona 5?

I've recently gotten RPG Maker MZ and I'm very pleased so far with what I am able to do and how it runs (I have also gotten all of Yanfly's plugins though I'm not using *all* of them at once on this project), but there is something I'd like to be able to do and I'm not 100% sure on how I'd do it.

In Persona 5 and Persona 5 Royal, inflicting certain status conditions onto an enemy can cause them to take extra damage from certain elements, which will then remove the state after the attack. So my question is what damage formula would I use to do this? And if possible, is there a way to set this interaction to happen based on the element of damage being done and not just on a skill by skill basis?

Thank you for your time and patience, I appreciate it.
Update, I figured out how to do what I want and I am pleased with how simple it really is. I just have the state apply the elemental weakness, and make sure that the appropriate skills will remove the state after they inflict the elemental damage. I am still curious about other ways to do things, so if you have another way that would be more flexible or effective, I would like to know.
Just a quick note - you know the Yanfly plugins are written for RPG Maker MV? They are not guaranteed to be compatible with MZ (and, in some cases, are guaranteed not to be).

I don't know if you're using something like FOSSIL to use them, but you should be prepared to encounter bugs and unexpected behavior.
Ah, my apologies, I was speaking loosely. When I said Yanfly's plugins, what I'd meant was the visus stella plugins for rpgmaker mz. I referred to them as Yanfly's because that was how I found them.

Original thread: https://forums.rpgmakerweb.com/threads/damage-formula-for-technical-attacks-ala-persona-5.138320/