any script to bring back old damage formula from mv?

So in rpgmaker mv damage is by code meaning that if you put in hp * -4.5 then its damage will be based off the lower your hp stat is


however in the rpgmaker this does not apply is there any scripts that bring the old damage formula back?
VX Ace's damage formula box is working with Ruby codes, so you can enter the same there, but probably with a different syntax.


If you want to get the current HP of the user of the skill, you can use a.hp, if you want the same but for the targeted battler, use b.hp.


This is explained in the hover message of the formula box, just hold your mouse pointer there for a few seconds and you will see some basic battler related info you can enter into your formulas.


Basically, you can enter any valid Ruby code there, and if it returns a numeric value, it will work.
Yeah, only XP and earlier (I think) had the damage formula hardcoded.  VX, Ace and MV all let you enter the formula.  If you're having trouble getting it to work, there are pinned threads in each of the support forums specifically for damage formula assistance.

Original thread: https://forums.rpgmakerweb.com/threads/any-script-to-bring-back-old-damage-formula-from-mv.68581/