MV Boss Enemy Transform with full HP Recovery, but uses moves for Lower HP

So i tried making a boss fight which transitions into it's second form when it hits 10%HP, but the boss's turn resets and starts using skills and moves that require it to have 10% HP to even use (even though i already recover all enemy HP in the troop event before the second form fight begin)

is there a way to prevent this?
for more details, the second form has three different phase (100% HP, 60% HP, and 20% HP)
So I can't really say what's causing the skill issue without seeing the setup.

But maybe you can use switches instead? The boss reaches 10% HP, turn switch on, as I know that's a condition for a skill to be used.
This is just a guess but…

Does the transformation happen on Turn (not Turn End)? Does it run before the boss gets its normal move?

Enemies choose their move for the current turn before the player does. So, if the transformation happens at the start of the turn, whatever move the boss chose when it was at 10% HP will still be executed even after the transformation.

If that is the issue, there are two possible ways to fix it:
  • Run the transformation at Turn End, guaranteeing that it comes after the boss's move.
  • Use Force Action after the transformation to overwrite the boss's previously-selected move with something more appropriate. If you want the boss to do nothing at all, you can just force it to wait.
and if the boss transform outside battle, than I got a plugin for it.
but you can also store the boss HP inside a variable, than use
Olivia MetaControl plugin to restore/replace the bosses HP with the variable on.
so the HP stay equal as it was before.

but otherwise, Solar_Flare has the solution that can work out or explain
better what your target is.

the plugin I have for outside that saves the boss HP (3 transformations), was made
for someone so its not public plugin which was built a few years back.
Hmmm yeah, this is the transform:

Game_Enemy.prototype.transform = function(enemyId) {
var name = this.originalName();
this._enemyId = enemyId;
if (this.originalName() !== name) {
this._letter = '';
this._plural = false;
}
this.refresh();
if (this.numActions() > 0) {
this.makeActions();
}
};

So if you transform it at 10% hp, it makes the new actions immediately with that hp and it doesn't help if you recover it after that. At least I think so.

EDIT: You can heal the dude before the transform
So I can't really say what's causing the skill issue without seeing the setup.

But maybe you can use switches instead? The boss reaches 10% HP, turn switch on, as I know that's a condition for a skill to be used.
yeah i shoulda provide the setup in the post
but this is pretty much how it goes
help1.PNG

help2.PNG

btw i've done a similar boss setup with this one before, and it worked fine, idk why this one just doesn't work properly
This is just a guess but…

Does the transformation happen on Turn (not Turn End)? Does it run before the boss gets its normal move?

Enemies choose their move for the current turn before the player does. So, if the transformation happens at the start of the turn, whatever move the boss chose when it was at 10% HP will still be executed even after the transformation.

If that is the issue, there are two possible ways to fix it:
  • Run the transformation at Turn End, guaranteeing that it comes after the boss's move.
  • Use Force Action after the transformation to overwrite the boss's previously-selected move with something more appropriate. If you want the boss to do nothing at all, you can just force it to wait.

help2.PNG

By (turn end) do you mean changing the Span option to turn? or is there another command somewhere?

Also, i actually never tried force action, so i might just straight up use that instead lol 👍
and if the boss transform outside battle, than I got a plugin for it.
but you can also store the boss HP inside a variable, than use
Olivia MetaControl plugin to restore/replace the bosses HP with the variable on.
so the HP stay equal as it was before.

but otherwise, Solar_Flare has the solution that can work out or explain
better what your target is.

the plugin I have for outside that saves the boss HP (3 transformations), was made
for someone so its not public plugin which was built a few years back.
I mentioned in another reply that i already managed to do another boss fight with the same setup, so i don't think i need any plugin for now (also the enemy transformation is in battle, through troop event)

Thanks for the plugin tho, they seem interesting 🙂
View attachment 365212
By (turn end) do you mean changing the Span option to turn? or is there another command somewhere?

Also, i actually never tried force action, so i might just straight up use that instead lol 👍
No, I don't mean the Span option. I mean Turn End under the Conditions. Setting Span to Turn is almost certainly not what you want here.

But I suspect the solution @rpgLord69 came up with is better than mine – that is, just move (or duplicate) the heal before the transform. At minimum, add a "Change HP: +9999" before the "Enemy Transform". (You can change 9999 to any other value that suits your purpose, of course.)
No, I don't mean the Span option. I mean Turn End under the Conditions. Setting Span to Turn is almost certainly not what you want here.

But I suspect the solution @rpgLord69 came up with is better than mine – that is, just move (or duplicate) the heal before the transform. At minimum, add a "Change HP: +9999" before the "Enemy Transform". (You can change 9999 to any other value that suits your purpose, of course.)
Just did a test run and this actually solved the problem wow
all i did was cut and paste the Recover All before enemy transform, so now it worked as it should!

also added the "change hp" at the end of the troop event just to make sure, thanks btw
Hmmm yeah, this is the transform:

Game_Enemy.prototype.transform = function(enemyId) {
var name = this.originalName();
this._enemyId = enemyId;
if (this.originalName() !== name) {
this._letter = '';
this._plural = false;
}
this.refresh();
if (this.numActions() > 0) {
this.makeActions();
}
};

So if you transform it at 10% hp, it makes the new actions immediately with that hp and it doesn't help if you recover it after that. At least I think so.

EDIT: You can heal the dude before the transform
Should've looked at your reply beforehand, just a small change but now it worked properly
thanks man! 👍👍

Original thread: https://forums.rpgmakerweb.com/threads/boss-enemy-transform-with-full-hp-recovery-but-uses-moves-for-lower-hp.183411/