MV Help on creating a complex healing skill

Hi guys!

I'm trying to create a skill that heals all allies by 25% of their max HP. But also, if someone in the party has any status condition, they are healed additionally by 10% for each status condition that they may have. When they are healed, the states as they are removed

I tried to think of an existing plugin that could do this, but didn't find any, so I thought I should post this request here. Can someone help me?

OBS: Something important would be the possibility to chose witch status condition that can be removed after the heal. I want to remove only the "negative" ones, like poison, burn, etc...
Hmmm, make skill target all and put in the damage formula:

(0.25+0.1*b.states().length)*b.mhp

Then just put on the skill page to remove all the states you want.
truth be told, you dont need a plugin for that.

if you make the formula
Code:
b.mhp * (.25 + .1 * b.states().filter(state => state.meta.Negative).length)
and then put a <Negative> notetag into your negative states, itll heal for that extra 10% per state.
then use the skill effects to remove the negative states
Yeah, I understood that you wanted the heal be based on all states and only select which ones to remove. But if you want the heal to be only based on the negative states, then use Robro33's formula with the filter.
truth be told, you dont need a plugin for that.

if you make the formula
Code:
b.mhp * (.25 + .1 * b.states().filter(state => state.meta.Negative).length)
and then put a <Negative> notetag into your negative states, itll heal for that extra 10% per state.
then use the skill effects to remove the negative states
Thanks for the answers!

I think there might be something wrong with the formula. I tested it here with two actors.

Test A without negative status:
Actor 1 - 72 max HP (Skill heals 9 HP)
Actor 2 - 65 max HP (Skill heals 32 HP)

Test B with negative status:
Actor 1 - 72 max HP (Skill heals 13 HP)
Actor 2 - 65 max HP (Skill heals 45 HP)

Following the logic of the formula, the skill in test A should heal 18 HP for Actor 1 and 16 HP for Actor 2. But it seems that for Actor 1 it is being divided by two and for Actor 1 it is being multiplied by two.

In test B, apparently 10% of 65 (6.5) is being added, multiplied by two and added to 32, giving approximately 45, in the case of actor 2.

Here is my screen:
Screenshot 2025-04-06 190629.png


Can you help me solve this? Math is not really my strong point 😠
you gave the skill an element. do the targets have different element rates for grass?
The skill has an element. Do your actors interact with that element?
Ow, not in this case!
I just made the test again without the element and works fine now! Thank you guys!

Original thread: https://forums.rpgmakerweb.com/threads/help-on-creating-a-complex-healing-skill.176771/