FF series Ultima Weapon?

how do i make a weapon that has a atk based on the users current HP.
i want it to be like 1atk for every 50HP current HP. so when get it and you're only lv30 its max atk power isnt as high as when ur lv 60 using it with more current/max HP
The only way to do that is to give the weapon it's own damage formula (that will take a plug-in, to do that part), then to set up the damage formula to be based on the user's current HP.

Moved to Plug-In Requests

If you're using simple formulas for damage it can be done as long as ATK is being used for physical damage.

you'll need YEP Equip Core and your weapon's atk needs to be 0 unless you want it to be a bit higher if you think the base ATK of your Actor is too low for your own taste

<Custom Parameters>
atk = user.paramBase(2) + user.hp * 0.02
</Custom Parameters>

Original thread: https://forums.rpgmakerweb.com/threads/ff-series-ultima-weapon.88793/