MZ How can I change the status of an image on screen depending on my Pv?

HI, I have an image of my character on the map that's constantly displayed. How can I make it change to another image when it takes damage? And when it receives health points, it returns to the original image.

It's a kind of on-screen character status that works based on the character's HP.

Is there any way to do this?

thank you for your time
This is just me spit-balling:
Could you not set up the event to look at player HP via a variable, and when it gets to a certain value, it changes the image?

I am not sure how it could work if you wanted to use a percentage, rather than absolute value, though.
This is just me spit-balling:
Could you not set up the event to look at player HP via a variable, and when it gets to a certain value, it changes the image?

I am not sure how it could work if you wanted to use a percentage, rather than absolute value, though.

You could paste an event into every troop event that checks this. Or some kind of Common Event, I guess. You might have to use a variable to do the math.

This is a common request and I have yet to see a completed plugin that will do this. But it's very doable; there are already plugins that do this for static enemy battlers, should be similar principle. Maybe time for a plugin request?
This is just me spit-balling:
Could you not set up the event to look at player HP via a variable, and when it gets to a certain value, it changes the image?

I am not sure how it could work if you wanted to use a percentage, rather than absolute value, though.
I'm doing something like this and it works, but only when damage is received.

I tried a conditional derivation in a common event. What it does is, if my HP is less than 60, it changes the image to one where my character is more damaged. If it's not true, it leaves me with the main image of my character. This process works, but if I receive health points and my HP increases to more than 60, it no longer works because it stays on the image that changed. Or is there a way to reset this common event so that it checks my character's HP status again and changes to the previous image?
Podrías pegar un evento en cada evento de tropa que marque esto. O algún tipo de evento común, supongo. Quizás tengas que usar una variable para hacer los cálculos.

Esta es una solicitud frecuente y aún no he visto un plugin completo que lo haga. Pero es muy factible; Ya existen complementos que lo hacen para luchadores enemigos estáticos; debería ser un principio similar. ¿Quizás sea hora de solicitar un complemento?
Seriously? There isn't a plugin for this yet? 😢
I'm doing something like this and it works, but only when damage is received.

I tried a conditional derivation in a common event. What it does is, if my HP is less than 60, it changes the image to one where my character is more damaged. If it's not true, it leaves me with the main image of my character. This process works, but if I receive health points and my HP increases to more than 60, it no longer works because it stays on the image that changed. Or is there a way to reset this common event so that it checks my character's HP status again and changes to the previous image?

If health above 60%
show image 1
If health above 40%
show image 2
if health above 20%
show image 3
else
if health = 0
delete image
end


Fill in accordingly ^^
You need to check HP in both ways, a way to do this is to check the condition itself, rather than how you got there. (Aka, check for HP instead of if you took damage or got healed)

(There are plenty of ways to do this by the way)

Original thread: https://forums.rpgmakerweb.com/threads/how-can-i-change-the-status-of-an-image-on-screen-depending-on-my-pv.178732/