Poison damage in current HP

I know the poison damage is max hp percent

and then can change this to current hp damage?

i know can use it YEP plugin but i don't know how.
You can use YEP Buffs & State Cores. Just put this into your state note tag:
Code:
<Custom Regenerate Effect>
var rate = 0.2; //20%. Change it to fit your purpose
var dmg = Math.round(target.hp * rate); //20% of target's current hp. Round up if the decimal part reaches 0.5 or more
target.gainHp(-dmg); //decrease target's HP
target.startDamagePopup(); //Show dmg popup
// Check if the target is dead.
if (target.isDead()) {
target.performCollapse();  // Make the target collapse.
}
target.clearResult();// Clear the target's results.
</Custom Regenerate Effect>
You can use YEP Buffs & State Cores. Just put this into your state note tag:
Code:
<Custom Regenerate Effect>
var rate = 0.2; //20%. Change it to fit your purpose
var dmg = Math.round(target.hp * rate); //20% of target's current hp. Round up if the decimal part reaches 0.5 or more
target.gainHp(-dmg); //decrease target's HP
target.startDamagePopup(); //Show dmg popup
// Check if the target is dead.
if (target.isDead()) {
target.performCollapse();  // Make the target collapse.
}
target.clearResult();// Clear the target's results.
</Custom Regenerate Effect>


Thank you so much

This is exactly what I was looking for!

Original thread: https://forums.rpgmakerweb.com/threads/poison-damage-in-current-hp.120610/