MV I Need Help with Critical heal and Break the Max Hp

I'm making a new ability which should heal the targets at the end of the turn, this is done, now the interesting part is this, if the target took damage this turn the healing is critical. Then this would allow breaking the limits of the player's maximum Hp, that is, if your remaining hp are 100 and you have 300Hp Max and you are healed 400 points, your maximum hp increases in the amount of hp remaining, the healed which would return your max hp 500 to the end of your next turn. I don't know if I could explain it well but if you understand something please help me
I'm making a new ability which should heal the targets at the end of the turn, this is done, now the interesting part is this, if the target took damage this turn the healing is critical. Then this would allow breaking the limits of the player's maximum Hp, that is, if your remaining hp are 100 and you have 300Hp Max and you are healed 400 points, your maximum hp increases in the amount of hp remaining, the healed which would return your max hp 500 to the end of your next turn. I don't know if I could explain it well but if you understand something please help me
Is this mechanic intended to be a temporary health increase, IE your max is still 300, but your current breaks the max to get up to 500 off of this effect, but can't be healed/raised anymore unless/until it falls below 300 again?
Is this mechanic intended to be a temporary health increase, IE your max is still 300, but your current breaks the max to get up to 500 off of this effect, but can't be healed/raised anymore unless/until it falls below 300 again?
Yes, exactly, since it is the only ability that allows this increase in the game, and it would be activated in <Custom Leave Effect>
well, if you don't end up being able to figure out how this works, you could alternatively instead make the extra overhealing from the ability (the healing that *would* otherwise increase HP above max) instead become an absorb shield.
It's a good idea, it would work almost the same way if I'm not wrong. But these shields wouldn't take damage from states like Poison?
It's a good idea, it would work almost the same way if I'm not wrong. But these shields wouldn't take damage from states like Poison?

They can, but I can't deny that that is a LOT of work, I only JUST cracked how to make that work.
Better not absorb it, If we apply a little D&D logic, the shields prevent you from external damage not internal, those are the purification abilities. So the shield will be enough.
There you go, this link will provide you with some info you will find useful in order to make this mechanic happen:

you'll need to use states, but with effects that are not included in default.

By default a state increases MaxHP by percentage - you need to change that to a fixed number. there are plugins out there that give that option.

Then you need to disable healing while that state is active. some of that is available by default, but the default effects are not covering everything and you'll probably have your own effect added to the engine for this.

and lastly, you need that state to be removed when the HP drops below the original MaxHP. That requires checks that do not exist yet, or a parallel process comparing HP data by script.
There you go, this link will provide you with some info you will find useful in order to make this mechanic happen:


in the same way if I find a way to make the original idea, I will put it here. Thanks for the help I'll work on it when I get home.
you'll need to use states, but with effects that are not included in default.

By default a state increases MaxHP by percentage - you need to change that to a fixed number. there are plugins out there that give that option.

Then you need to disable healing while that state is active. some of that is available by default, but the default effects are not covering everything and you'll probably have your own effect added to the engine for this.

and lastly, you need that state to be removed when the HP drops below the original MaxHP. That requires checks that do not exist yet, or a parallel process comparing HP data by script.



It sounds like a lot of work but that does not scare me, first I will implement the shield option that @Zerothedarklord gave me and then I will take your advice into account and work on it, since I have 2 options now I can pass one of these to another game or Class of the same game.
I inform that for now I found a way to do this using YEP_BaseParamControl this complement allows to change the base statistics of the battlers in battle, I have not yet achieved the final formula, but I am working on it, I must add at least 2 states to this mechanism as I see it and a few <CUSTOM EFFECT> to achieve it but almost already.

Original thread: https://forums.rpgmakerweb.com/threads/i-need-help-with-critical-heal-and-break-the-max-hp.131142/