How could I create and item like Power Rush from Paper Mario?

For context, Power Rush is a badge from Paper Mario which will increase Mario's attack when he's in danger. (Low HP) Does anyone have any idea how this could be done in RPG Maker? I just thought it might be cool with what I'm making, so I decided to ask here.
Create a state that increases his attack (Features > Param > Parameter > ATK * x%) and in the Troops page for every battle, set a condition Actor's HP is x% or below (say 20%) and Span Moment.

Inside the page, check with a conditional branch to see if the actor is wearing the Badge piece of equipment, if so, apply the state. The state itself should remove only at battle.

EDIT: If you have multiple party members you'll need to set a separate troop event page for each actor. A little annoying but that should be the only way (minus plugins that I don't even know if they exist)
Create a state that increases his attack (Features > Param > Parameter > ATK * x%) and in the Troops page for every battle, set a condition Actor's HP is x% or below (say 20%) and Span Moment.

Inside the page, check with a conditional branch to see if the actor is wearing the Badge piece of equipment, if so, apply the state. The state itself should remove only at battle.

EDIT: If you have multiple party members you'll need to set a separate troop event page for each actor. A little annoying but that should be the only way (minus plugins that I don't even know if they exist)
Alright, thank you 🙂
Don't use Moment for the span. The moment the condition is fulfilled, the battle will be stuck. Instead, set it to Turn and use this as the condition:
1645303058353.png

This will make it so that the condition will happen at the start of every turn when applicable. Also, you won't need separate troop pages, just separate Conditionals:
1645303153622.png

It'll run the next conditional even if the Conditional at the top returns true.
@zXManyRegretsXz Thanks, I hadn't thought about how it'd get stuck.
I'm a little surprised it hasn't been mentioned already - instead of making a somewhat convoluted event and copying it into every troop in your game, this could be done quite easily with Yanfly's Auto Passive States, which is free.
@Levthelion Here is a different way via a plugin:


Say the power rush state is State 2. Put this notetag in the Power Rush accessory notebox: <Passive State: 2>. In State 2, put the notetag <Passive Condition: HP Below 20%> or whatever percentage you like.

This method is a lot better if you don't mind using plugins because it is simpler does not use troop events and does not check continually every turn.

EDIT: Ninja'd by @ATT_Turan
I'm a little surprised it hasn't been mentioned already - instead of making a somewhat convoluted event and copying it into every troop in your game, this could be done quite easily with Yanfly's Auto Passive States, which is free.
I've been mainly messing with how to do things pluginless, so it didn't really pop into my mind, hehe.
@Levthelion Here is a different way via a plugin:


Say the power rush state is State 2. Put this notetag in the Power Rush accessory notebox: <Passive State: 2>. In State 2, put the notetag <Passive Condition: HP Below 20%> or whatever percentage you like.

This method is a lot better if you don't mind using plugins because it is simpler does not use troop events and does not check continually every turn.

EDIT: Ninja'd by @ATT_Turan
Wow, thank you so much! This definitely makes it easy.
@Levthelion No problem. Btw, if your problem is solved, you can report your main post and write something like "issue solved, please close" to get a mod to close it 🙂
Closed due to solved.

Original thread: https://forums.rpgmakerweb.com/threads/how-could-i-create-and-item-like-power-rush-from-paper-mario.145079/