Changing Actor Battler Based on HP

So, I've been trying to set up a state that changes the actors battler image when the actor's HP reaches a certain number.

Currently, I several different states that change the actor battler but those are trigger by skills. So those aren't an issue.

I've been using Yanfly's Auto Passive States to trigger the state:
<Custom Passive Condition>
if (user.hp / user.mhp <= 0.50) {
condition = true;
} else {
condition = false;
}
</Custom Passive Condition>

To trigger the state but after that I can't get the state to change the actor's battler. I've even tried to use the methods I used to change the actor's battler I used for the other instances and nothing.

I guess I can't use Custom Passive Conditions and Custom Apply Effects together on the same state?

Can anyone shed some light on this situation for me?
See if this does what you're looking for:
See if this does what you're looking for:

Yeah, I'm using this method to pull off transformations.

However when you add these notes in the notes of the state that is triggered by HP it doesn't take.
It won't transform the actor which leads me to believe that the Custom Passive Conditions and Custom Apply Effects don't run together or consecutively...
Oh it doesn't work? Man that sucks. I don't know of a fix as I'm not using transformations in my game but I'm sure somebody else here does.
Oh it doesn't work? Man that sucks. I don't know of a fix as I'm not using transformations in my game but I'm sure somebody else here does.
Yeah, I've been messing around with the notes and I can get it to transform OR I can get it to wait till the HP triggers the state but I can't get it to where the HP triggers the state which then makes the actor transform.
Tried so many angles on making this work. Anyone?

I've rearranged note tags, plugins, tried to put a state within a state, etc....lol
Passive states won't trigger the sprite change. I had a similar issue using passive states on equipment to trigger a battler change. You'll have to use a different plugin to re evaluate the passive state to trigger a battler change.
Waynee95 helped me with an add on plugin of his.

He has a plugin to change the faceset if an actors HP is low not sure for the battler. Link to his post: https://forums.rpgmakerweb.com/inde...-addons-newest-way_customfaceimageeval.78979/
You could my plugin for that.
Just add the function for changing the battler graphic. If you don't want to change the face image just delete those 2 lines above it.
Code:
<Custom Face Image Eval>
if (user.hp / user.mhp <= 0) {
faceName = 'Actor1';
faceIndex = 0;
user.setBattlerImage("Actor1_4");
} else if (user.hp / user.mhp <= 0.5) {
faceName = 'Actor1';
faceIndex = 1;
user.setBattlerImage("Actor1_3");
} else if (user.hp / user.mhp <= 1) {
faceName = 'Actor1';
faceIndex = 2;
user.setBattlerImage("Actor1_2");
}
if (user.isStateAffected(42)) {
faceName = 'Nature';
faceIndex = 2;
user.setBattlerImage("Actor1_6");
}
</Custom Face Image Eval>

I haven't tested it, but it should work. If not, I will look into it.

Original thread: https://forums.rpgmakerweb.com/threads/changing-actor-battler-based-on-hp.83669/