Help with setting up troops that grow stronger throughout battle (MZ)

Hi

So I've got a series of battles that calls for a possibly tricky mechanic.

Basically, it starts off with four or so relatively weak identical enemies. But as each one is defeated, the others recover their HP with their max HP increasing and their Attack and Defense get stronger. So by the time you get to the last one, it's now very powerful, on par with a boss.

I know it's weird, but the story specifically calls for that exact mechanic.

Any advice on how to set that up? I've so far tried to set up events with conditional branches in the Troops window that each trigger when an enemy dies. When one enemy dies, the branches in the event checks to see if one of the other enemies is dead. If they aren't, that enemy recovers their HP and gets Attack Up and Defense Up.

This only does half of what I need though. It doesn't raise their Max HP. I tried creating a State that doubled Max HP for the battle, but it doesn't seem to work. It works when I try to apply it to Actors, but not enemies.

Any ideas on the easiest way to do this? I was toying with the idea of making it so instead when one enemy dies, the game just replaces the others with identical, more powerful enemies. But I wanted to see if anyone had a better way of doing it first.
Um, enemy transform? With four enemies, you'll only need four versions, so that seems like it might be the easiest way.
Yeah, that's what I meant by the last line. I just wanted to avoid bloating out my enemy list if I could avoid it.
This only does half of what I need though. It doesn't raise their Max HP. I tried creating a State that doubled Max HP for the battle, but it doesn't seem to work. It works when I try to apply it to Actors, but not enemies.
FWIW, that should have worked so long as each state was a separate state to stack with each other. are you using any plugins?
FWIW, that should have worked so long as each state was a separate state to stack with each other. are you using any plugins?
Quite a few, yeah. Not sure if any would interfere. But I haven't fully tested the state method since it was late last night when I tried it first. I'll keep experimenting and see if I have better luck.

So, I've been trying out the transform route to see how that worked. What I've done is each time an enemy gets transformed, a State is applied to them. So if they transformed to the second tier, they get the V2 state applied. Third, V3, and fourth, V4.

My setup is like this so far:

1. Say Enemy Number 1 gets defeated.
2. The troop event checks, say, Enemy Number 4 to see if it's dead or not.
3. If it isn't, it then checks to see if Enemy Number 4 has V4 applied.
4. If it hasn't, it checks to see if it has V3 applied.
5. If it has, it transforms it to the fourth tier, applies V4 and removes V3.
6. If it hasn't got V3 applied, it checks if it has V2 applied.
7. If it has, it transforms it to the third tier, applies V3 and removes V2.
8. If it hasn't, it transforms it to the second tier and applies V2.

And then the same for the other enemies.
The idea being that the event identifies the current tier an enemy is up to, and moves it up to the next highest one.

Now, it works when transforming to the second tier. But it doesn't work when upgrading any further. Instead it runs the second transform again.

Am I doing something wrong here? Is there an easier way to do this?
Screenshots of your troop events would help identify any mistakes you may have made in setting it up, but if youre going with transformations, then you dont really need the states. you could simplify it a bit by setting a variable to 0 at the start of the fight, adding 1 to it every time an enemy is killed, and transforming the enemies accordingly based on the variable
Screenshots of your troop events would help identify any mistakes you may have made in setting it up, but if youre going with transformations, then you dont really need the states. you could simplify it a bit by setting a variable to 0 at the start of the fight, adding 1 to it every time an enemy is killed, and transforming the enemies accordingly based on the variable
I'm just working on getting screenshots now. There's a lot get in the pic, so it's taking a while.
I'll try the variable idea though.
Screenshots of your troop events would help identify any mistakes you may have made in setting it up, but if youre going with transformations, then you dont really need the states. you could simplify it a bit by setting a variable to 0 at the start of the fight, adding 1 to it every time an enemy is killed, and transforming the enemies accordingly based on the variable
OK cool, the variable method is working, so I'll use that going forward.
Yeah, you were doing lots of conditional testing before, but ultimately you just want to know how many enemies are left.

Original thread: https://forums.rpgmakerweb.com/threads/help-with-setting-up-troops-that-grow-stronger-throughout-battle-mz.179234/