Gimmick Boss, Element Shifting Game

Okay. So I got a weird idea for a boss fight.

Basically he picks a color. That's your cue to hit him with an element matching that color (Red = Fire, Blue = Ice, Yellow = Thunder, etc.)

However, if you get it WRONG, you'll be penalized. Get it wrong THREE TIMES and it's Game Over!

I've got most of the idea down... I know a way to shift the element. I can time the turns so that he does it every three turns. And I know how to make the boss perform his "penalty."

What I'm having trouble with is figuring out how to have a specific attack trigger a reaction. For instance, If the boss's condition is "Red" then Fire attacks (Whether it's any attack which fall under the Fire element or a specific set of moves) will be the correct answer. Otherwise it's wrong and you get a penalty. (I'd also like to set it to where not attacking the boss in three turns will also net you a penalty. But I can skip that part).

Any way to pull this off? Or if I can't pull it off directly, perhaps some other sort of workaround?
there are many ways depending on how you handle this.

I would probably use three different bosses and have it transform to one depending on the color choosen, then have each boss immune to all other element damages.
and make a troop event compare health at end of turn with health on beginning of the turn: if identical then all attacks were wrong.
I think you're on the right track. Though for this one, I'm currently using status conditions to highlight the different immunities, but if need be, I can adjust.

Though I got another question: How would I be able to compare its health to that of the previous turn?
control variable in a troop event.
you'll need two variables, one for past HP and one for current HP.
load the current HP into the second variable, compare it to the first variable and then update the past HP with the current one to prepare for next turn.
I think I'm on the right track....

I'll let you know how if I have anymore questions. Thanks.

P.S.: Alright. Pulled it off.

This is what I ended up with with states:

RED
Fire - 200%
Thunder 0%
Ice 0%

YELLOW
Fire - 0%
Thunder - 200%
Ice - 0%

BLUE
Fire - 0%
Thunder - 0%
Ice - 200%

So if you're changing your boss from red to blue, make sure you have it so that the other states are removed like so:

- Red, - Yellow, + Blue.

If you don't. You'll end up with:

RED + BLUE
Fire - 0%
Thunder - 0%
Ice - 0%

Original thread: https://forums.rpgmakerweb.com/threads/gimmick-boss-element-shifting-game.152502/