Damage Health Scale

Resource Type: Plugin/Scripting

Maker Format:
MV

Makers I Own: MV

Description:
I'm trying to add a sort of damage scales with health plugin that will apply to one character.
EX. (100% health = Less damage, 20% = More damage) with a customizable threshold if so.
You can also think of it as Wanda from Don't Starve Together if you're familiar with that.
I have moved this thread from Resource Requests to JS Plug-in Requests.
I haven't tested, but I think you could do this using a couple of Yanfly plugins:
Put a notetag like this on a State:

<Custom Confirm Effect> if (value > 0 && this.isPhysical()) { // physical damage // rate = 0.2 at 100% HP, 1.8 at 20% or less HP var rate = 2 * Math.min(1.1 - user.hpRate(), 0.9); value = Math.round(value * rate); } </Custom Confirm Effect>
This handles the damage scaling. The calculations can be changed to whatever you like~

Then use this notetag on the Actor:

<Passive State: 123>
Replace 123 with the ID of your state. This assigns the state as a passive to that actor, so that it won't get removed on death etc.

[Edit: added rounding to ensure damage value is an integer.]
Cool! Thank you it works really well, I'm also trying to get a higher evasion rate for this character, know how I could do that too perhaps?

I haven't tested, but I think you could do this using a couple of Yanfly plugins:
Put a notetag like this on a State:

<Custom Confirm Effect> if (value > 0 && this.isPhysical()) { // physical damage // rate = 0.2 at 100% HP, 1.8 at 20% or less HP var rate = 2 * Math.min(1.1 - user.hpRate(), 0.9); value = Math.round(value * rate); } </Custom Confirm Effect>

This handles the damage scaling. The calculations can be changed to whatever you like~

Then use this notetag on the Actor:

<Passive State: 123>

Replace 123 with the ID of your state. This assigns the state as a passive to that actor, so that it won't get removed on death etc.

[Edit: added rounding to ensure damage value is an integer.]

Wait never mind I just saw it :>

Original thread: https://forums.rpgmakerweb.com/threads/damage-health-scale.160615/