I found a pretty strange bug in my game that I can't figure out why this is happening. When I use a potion that increases pm max curiously it starts to regenerate that amount of hp per turn when I have armor equipped that provides a passive state of regeneration per turn. The status would only regenerate pm and not hp, but when I enter a battle it regenerates pm as appropriate from the armor but also regenerates hp. I tried deleting all the formula that I used in the state with <custom regen formula> leaving it empty and it still regenerates hp per turn. If I use another potion, the regeneration per turn accumulates, regenerating more and more. I don't understand why this happens. I tried everything, I deactivated all the plugins that I am using and I realized that the problem is in YEP_EQUIPCORE without that plugin everything works as it should (it does not increase the hp regeneration per turn when taking the pm max increase potion). I don't understand what relationship that add-on has with the maximum pm and hp regeneration per turn. This does not happen if I use a potion that increases max hp or physical strength or any other attribute, it only happens when it increases max hp. I'm going to show images of the potion itself, the armor and the passive pm regeneration state that the armor gives.
The common event and that <sort priority> is not the cause why the error occurs even if you do not use that.
In the notebox i write this:
<Info Text Top>
\c[24]Tipo de armadura: Tela.
\c[2]Regeneración de PV: \C[0]+10 para \c[30]Inventores\c[0].
\c[1]Regeneración de PE: \c[0]+6 para otras clases.
</Info Text Top>
<Passive State: 722>
<Augment Slots>
Cristal
Cristal
Cristal
Mitrilo
Mitrilo
Mitrilo
</Augment Slots>
<Percent Price Variable: 78>
In the notebox i write this:
<Custom Regen Formula>
if (user.isStateAffected(1) || $gameSwitches.value(49)) {
value = 0;
} else {
if (user.isClass($dataClasses[8]) || user.isClass($dataClasses[12]) || user.isClass($dataClasses[22])) {
value = 10;
element = 11;
variance = 50;
} else {
var variacion = Math.random() * (1.5 - 0.5 + 0.1) + 0.5;
var mpheal = Math.round(6 * user.elementRate(11) * variacion);
user.gainMp (+ mpheal);
user.startDamagePopup();
user.clearResult();
}
};
</Custom Regen Formula>
<Custom Turn End Effect>
$gameSwitches.setValue(49, false);
</Custom Turn End Effect>
The formula itself is not the cause because if I delete everything and write alone
<custom regen formula>
</custom regen formula>
It also regenerates hp per turn.
The plugins I am using are these:
If anyone can help me I would appreciate it.
The common event and that <sort priority> is not the cause why the error occurs even if you do not use that.
In the notebox i write this:
<Info Text Top>
\c[24]Tipo de armadura: Tela.
\c[2]Regeneración de PV: \C[0]+10 para \c[30]Inventores\c[0].
\c[1]Regeneración de PE: \c[0]+6 para otras clases.
</Info Text Top>
<Passive State: 722>
<Augment Slots>
Cristal
Cristal
Cristal
Mitrilo
Mitrilo
Mitrilo
</Augment Slots>
<Percent Price Variable: 78>
In the notebox i write this:
<Custom Regen Formula>
if (user.isStateAffected(1) || $gameSwitches.value(49)) {
value = 0;
} else {
if (user.isClass($dataClasses[8]) || user.isClass($dataClasses[12]) || user.isClass($dataClasses[22])) {
value = 10;
element = 11;
variance = 50;
} else {
var variacion = Math.random() * (1.5 - 0.5 + 0.1) + 0.5;
var mpheal = Math.round(6 * user.elementRate(11) * variacion);
user.gainMp (+ mpheal);
user.startDamagePopup();
user.clearResult();
}
};
</Custom Regen Formula>
<Custom Turn End Effect>
$gameSwitches.setValue(49, false);
</Custom Turn End Effect>
The formula itself is not the cause because if I delete everything and write alone
<custom regen formula>
</custom regen formula>
It also regenerates hp per turn.
The plugins I am using are these:
If anyone can help me I would appreciate it.