Sumrnddde's Hud Maker Help Request

I've been using Sumrndde's Hud maker to make my own battle hud. I've been doing fairly well with it, but there's one thing I'd like to change so far...

YCTqO0r.png

This is how the hud normally looks. What I would like to change is the faces used in the hud. Mainly, I'd like to change them in the event that when a character dies in battle, they use a different face from their faceset and the picture would be grayed out until they're revived. Is there a way to do this?

5rXYxjX.png
If you just change the character face image with event command to the face image that you want, the Hud will not update itself?

If you put in the hud configuration to show only the face for character id or party index i think it will update itself.
That would require something to call a common event after each turn, to see if a character is alive or dead.

Can't you use conditions in the SRD hud? Something like "if actor HP > 1 then use this image, else use that image"
The conditions seem easy enough to fix, but it's the required code to draw a different face from the face set I don't know.

vp0FFqE.png


The code to call the default face for the character in the second slot for example, is "$gameParty.members()[1].actorId()". Is there a place in the coding I change a value to pick which face it uses instead? :x
Anyone at all?

I've moved this thread to Plug-in Support. Thank you.

No. There isn't the option to choose a face from a sheet. You still have two options to get around it though.

1) Set up new actors in the database with the dead faces. Since you're using$gameParty.members()[1], I presume you have more than 3 actors and your party is changeable. To make this manageable I would suggest having the dead actors be set up a fixed number of positions from the alive actor. For instance, if you have 10 actors, actor 1's dead actor is actor 11, actor 2's is 12, and so on. From here you have 2 ways of dealing with the overlay. The first is to use two HUD elements, one for each face, and set them up like so:

Code:
//Alive face

//Actor ID:
$gameParty.members()[0].actorId()

//Condition:
$gameParty.members()[0].isAlive()


//Dead face

//Actor ID:
$gameParty.members()[0].actorId() + 10

//Condition:
$gameParty.members()[0].isDead()

Replace the "10" with the number of spaces away the dead actor is from the alive actor.

Your second option is to have a single HUD element for each actor and use an if statement or ternary operator to determine which face to use. I'll be using a ternary operator.

Code:
//Actor ID:
$gameParty.members()[0].actorId() + ($gameParty.members()[0].isAlive() ? 0 : 10)

//Condition:
$gameParty.members()[0]

Again, replace 10 with the number of spaces away the dead actor is from the alive actor.

2) Use Picture EX, save a picture of the actors dead face to the img\SumRndmDde\hud\pictures folder. Name it something like deadactor1 . Using Picture EX you just need to make a js eval that evaluates to the files name to show it, so for this example you would set it up like so

Code:
//Eval:
"deadactor" + $gameParty.members()[0].actorId()

//Condition:
$gameParty.members()[0].isDead()

You'll need to make sure that this displays above your alive HUD element.
Thank you so much, Silva. Your method worked and I was able to get the faces to change how I need them to. Consider this issue resolved!

Original thread: https://forums.rpgmakerweb.com/threads/sumrndddes-hud-maker-help-request.108427/