Battle Help Auto Actor

Hello everyone I'm in a bind and need help. I am trying to have a mini boss fight with one character being controlled by a human
and the other will be repeating the same command which is guard for the whole fight well until the human controlled is low on HP then battle ends. making the other character guard on their turn for the whole fight is what I'm stuck on? Please Help!
Go to Database.
Go to Enemies.
Change Maximum, add one.
Go to that new enemy.
Choose graphic.
Action Patterns: Guard Always.


Go to Database Troops.
Add that NEW Enemy.
Troops has Eventing inside, thus you can check each turn HP to end a battle.
Go to Database.
Go to Enemies.
Change Maximum, add one.
Go to that new enemy.
Choose graphic.
Action Patterns: Guard Always.


Go to Database Troops.
Add that NEW Enemy.
Troops has Eventing inside, thus you can check each turn HP to end a battle.
I tried and I get all of the characters fighting images on the screen by the way I'm using SV Actors. so my first actor is controlled by a human but the second actor is going to be auto guarding. sorry I was not clear.
Oh! This is really different. So you want party members to auto guard. That's a different issue and I am not so familiar with the SVB yet.
Oh! This is really different. So you want party members to auto guard. That's a different issue and I am not so familiar with the SVB yet.
Yes that's right my party member will auto guard. well thank you anyway I really appreciate it!
First you need this plugin and this plugin

Copy your gaurd state. In this new state make it where the person can't move.
Then in the notetag box put this in the state:
<Custom Turn End Effect>
var crisis = x;
if(user.hpRate() < crisis * 0.01){
user.removeState(y);
}
</Custom Turn End Effect>

Replace x with the percentage of max hp you want for this to be active. Ie when hp is less than 25% max health.
And y is the id of this new gaurd state.
The code says if the inflected hp rate ie the percent of hp, they have in comparision with crisis times 0.01, and the hp rate is less than crisis, then it's true and do what's in the conditional branch which is remove the state from the user.

If you want it where it's a set hp amount like at 75 Hp it get's removed in thge parenthesis use this code instead:
user.hp < crisis


Now in the troop command, use add state event command(the one that's in event tab 1 under actor) and add that new gaurd state to the player that's auto guarding.
And make it so this happens in Turn 0.

Original thread: https://forums.rpgmakerweb.com/threads/battle-help-auto-actor.92479/