Halve/Double Damage after Damage Calculation via State

I have countlessly tried to make my buffs/debuffs be consistent and reliable, but due to the way damage calculation works with percentage based states that simply increase or decrease the stats, it just isn't as enjoyable as a simple halve/double damage if a state is applied (Just like in Final Fantasy the magic Shell and Protect basically).

Now I know the VX engine is as old as Time itself, but I am asking if anyone has any insight on a script that can provide me with just that, so I can tinker with it. Or if someone would be willing to work on one, should there be no such script around.

Another thing to mention is (And it's probably insignificant to what I want, but mentioning it wouldn't hurt I suppose) that I do have Yanflys YERD Custom Damage Formula script(If anyone remembers that) and I managed to transfer VXs quirky SPIs Defensive attributes against Magic damage to the DEF stat (with the help of a fellow VX user).
Now I'm no expert and am completely shooting in the dark, but I do not believe it would affect the requested script I ask for. But I am no scripter, so I do not know.
Give a bit more details and I'll be glad to help.
I have actually posted my problem on another forum. There's more insight on my issue there, as it is currently being solved, even: https://rpgmaker.net/forums/topics/25290/?post=908872#post908872

But I do still seek help with what I talked about recently in the topic I linked.
Apologies for the double post, but my problems have been solved. This thread can be closed now.
For those interested in the solution, check the link I posted in the previous message.

Original thread: https://forums.rpgmakerweb.com/threads/halve-double-damage-after-damage-calculation-via-state.124105/