MV Yanfly Class Change Core: Need help changing Face graphic when dead

Keeping it short,

I'm trying to make it so that when a party member is dead/KO their face graphic in the main menu changes to a simple gravestone and switch back when they're alive again. I can't seem to figure out how to change the face back to the correct class picture after reviving the party member.
I don't see how this is related to the plugin you're talking about. Is "being dead" a class?

If not, how are you turning them into the gravestone now?

I would use waynee95's Face Eval for this.
I don't see how this is related to the plugin you're talking about. Is "being dead" a class?

If not, how are you turning them into the gravestone now?

I would use waynee95's Face Eval for this
I'm changing the face sprite in the main menu by using a parallel event that checks if the character is dead.

The plugin tends to refuse to change the sprite despite the event running, but somehow I got it working as soon as I made this post. The irony. Anyway, the issue of changing the face image back to its original class image when the character is revived is still a problem. I genuinely don't know how to word it better than that. I'll look into that plugin you suggested. Thank you.
No, I understand that part of it, but my point was you didn't explain (and still haven't shown) how you're changing their face away from the class-granted one in the first place.

You can just save the original filename in a property on the actor and have it to change back to later. That means whether the face comes from the class or is defined in the database is irrelevant.

Aside from the face eval, you could also use Yanfly's Buffs & States Core. For example, give your state 1:
Code:
<Custom Apply Eval>
if (user.isActor())
{
    user.oldFace = user.faceName();
    user.oldFaceIndex = user.faceIndex();
// Change the below to the filename and index of your tombstone face
    user.setFaceImage("tombstone", 0);
}
</Custom Apply Eval>

<Custom Remove Effect>
if (user.isActor())
{
    user.setFaceImage(user.oldFace, user.oldFaceIndex);
    delete user.oldFace;
    delete user.oldFaceIndex;
}
</Custom Remove Effect>
No, I understand that part of it, but my point was you didn't explain (and still haven't shown) how you're changing their face away from the class-granted one in the first place.

You can just save the original filename in a property on the actor and have it to change back to later. That means whether the face comes from the class or is defined in the database is irrelevant.

Aside from the face eval, you could also use Yanfly's Buffs & States Core. For example, give your state 1:
Code:
<Custom Apply Eval>
if (user.isActor())
{
    user.oldFace = user.faceName();
    user.oldFaceIndex = user.faceIndex();
// Change the below to the filename and index of your tombstone face
    user.setFaceImage("tombstone", 0);
}
</Custom Apply Eval>

<Custom Remove Effect>
if (user.isActor())
{
    user.setFaceImage(user.oldFace, user.oldFaceIndex);
    delete user.oldFace;
    delete user.oldFaceIndex;
}
</Custom Remove Effect>
(Late Reply, working my life away QQ)

Sorry. The face sprite is changed using a Parallel event that checks specifically for when a party member has died. If so, the event changes the face sprite in the main menu to the gravestone.

EVENT:
IF: Member #1 is affected by Death
-> Change Actor Images: Actor_Dead (0), (Unchanged), (Unchanged)
ELSE
-> Change Actor Images: (Unchanged), (Unchanged), (Unchanged)

It's as simple as that, but as I said before, Yanfly's ClassChangeCore seems to get in the way when changing that specific sprite for some reason at random. Frankly, I'm still pretty new to messing with something like this so I understand that my method could be the problem instead of the plugin itself.
Next time, please post screenshots instead of just describing an event.

Unless you're using slip damage from states or floor damage from map tiles and that can kill you, there's no need for a parallel event that's running all the time. If you can only die in battle, then you only need this to run one time after each battle.

Since you're new, something else to check is that your parallel event has a Wait command in it. You should almost never have a parallel event without a Wait, since they try to run every frame - 60 times a second.

Logically, it's your Else branch. When you say "unchanged," I assume that means you're setting them back to the original image from their database entry. Obviously that would be why they're going to that face instead of what you specified in the Class Change notetags.

All that being said, did you try the solution I already gave you in my previous post? That would eliminate your entire parallel event.
Next time, please post screenshots instead of just describing an event.

Unless you're using slip damage from states or floor damage from map tiles and that can kill you, there's no need for a parallel event that's running all the time. If you can only die in battle, then you only need this to run one time after each battle.

Since you're new, something else to check is that your parallel event has a Wait command in it. You should almost never have a parallel event without a Wait, since they try to run every frame - 60 times a second.

Logically, it's your Else branch. When you say "unchanged," I assume that means you're setting them back to the original image from their database entry. Obviously that would be why they're going to that face instead of what you specified in the Class Change notetags.

All that being said, did you try the solution I already gave you in my previous post? That would eliminate your entire parallel event.
Only typed it out because that's quite literally all the event is--minus the repeated instances for each party member and classes. A screenshot would've been redundant, and I'm also not at my desk either. You get what I can offer in the moment, unfortunately. I'll put what you've said to practice and see if that helps. Thank you very much.
A screenshot would've been redundant
It would not have been. Your description doesn't say whether this is a parallel common event or a map event. It shows none of the related settings for either screen. I understand that, given the simplicity of the event, that's unlikely to matter, but it's never superfluous to provide all information.

Especially when you don't know why something isn't working, it doesn't make logical sense to decide which pieces of information are relevant or not 😉

You get what I can offer in the moment, unfortunately.
You could wait to reply 😉 If you're not at your software to provide screenshots, you're also in no position to try to implement any fixes.

But whatever - hopefully what I provided above should take care of your issue, and if not, someone else might have a better idea.

Good luck with your project.

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-class-change-core-need-help-changing-face-graphic-when-dead.169956/