Mitigate Wounds

Hello everyone,

Currently trying to create a skill as follows:

  • The User casts 'Mitigate Wounds'. Solo target skill affecting only the user.
  • This applies a state that lasts for three turns.
  • As long as the state is active, a percentage of the oncoming damage she takes (Let's say 50%) is healed over three turns.
          OR

  • A percentage (Let's say 50% again) of any damage she takes is instantly healed.

Is a skill possible like this possible without plugins? If not, could something be done with any of the Yanfly plugins to create a skill like this?

Thank you in advance for anyone who can solve my problem.
The second part could be done by simply reducing the damage rates for the actor (SP-Parameter physical or magical damage) - but that prevents the damage from occurring


Or you could increase the HP regeneration for that time - but that will heal to maximum and not only damage received during that time.
Thanks for replying.

Unfortunately, I'm not looking for just a base regeneration state or shaving off a percentage of the damage. I know the former application (The regen the damage percentage) would be very difficult to preform without the know-how, so I'm willing to try and get the instant heal off of the damage.

Is there anyway I can tie a variable into the amount of damage taken, instantly clear that variable when the damage hits, and heal for the amount that was stored? Or will I have to go through every single formula in the skills with a formula that checks if the state is on the user?
Bumping.
I think I know how to do the second effect (instantly heals half of damage taken). You will need Yanfly's Buff & State Core to do this.

Code:
<Custom Respond Effect>if (value > 0) {  user.gainHp(Math.floor(value/2));}</Custom Respond Effect>
Give it a try. It should work based in my understanding. 🙂
I think I know how to do the second effect (instantly heals half of damage taken). You will need Yanfly's Buff & State Core to do this.

<Custom Respond Effect>if (value > 0) { user.gainHp(Math.floor(value/2));}</Custom Respond Effect>Give it a try. It should work based in my understanding. 🙂
The skill seems to not actually heal the person with the skill.

If possible, could the healing come towards the end of the turn?
The skill seems to not actually heal the person with the skill.

If possible, could the healing come towards the end of the turn?
I thought you said user use the skill to give herself this state. It should work, i believe. If she gets 100 damage, she should 'respond' by healing half of that. I'm not sure whether you need a pop up command to see the healing.

I'm not exactly sure how to do the healing by end of turn. What you can try to do is have a 'React' effect that stores half of the damage into a variable, then have turn end effect that heals user hp by this amount followed by emptying the variable.
I thought you said user use the skill to give herself this state. It should work, i believe. If she gets 100 damage, she should 'respond' by healing half of that. I'm not sure whether you need a pop up command to see the healing.

I'm not exactly sure how to do the healing by end of turn. What you can try to do is have a 'React' effect that stores half of the damage into a variable, then have turn end effect that heals user hp by this amount followed by emptying the variable.
Well, the skill applies the state. When the state is on the actor though, the heal seemingly doesn't go through. The actor takes full damage and doesn't get the heal.
Get this guy's script. He has a demo that has another script that is required for this to work named LeUtilities.

Make a state with this in the note tag:

<leffect: after any obj invoked on me>

req: result.hpDamage > 0

req: !b.isActor()

anim(a,42);

hpDmgWpopup(a,-value/2);

</leffect>

Original thread: https://forums.rpgmakerweb.com/threads/mitigate-wounds.53832/