MV Looking for a way to get this working in SRD HUD Maker

Hey, hope you're all doing well.
I'm having a bit of trouble with status effect stuff in HUD Maker and I'm wondering if there's someway I can get this to work.

So, in my game I have actor portraits on the battle screen to indicate which character it is and what their status is. My problem comes with party members besides the leader and status effects.
1709708499473.png

These 4 aren't the only party members that battle in the game, there's 2 more actors who occupy the second and third slot while they're in the party. This works how it should, all their info is displayed correctly, but their status effect portraits are where my problem here is.

$gameParty.leader().isStateAffected()
is the code for checking if the party leader is inflicted with a status effect, this works fine because in the point of the game where the player is able to die/be inflicted with status effects, Ross is the leader and isn't changed out by another character, so his status effects are fine as just "show this when party member 1 is inflicted with blank".

With the other party members though, it's a little more challenging. The second and third party members are changed to other characters throughout the game. But if these characters are inflicted with a status effect, their face graphic will change to a character that they're not.

1709752141742.png

(I meant pictureEX not graphic EX, sorry I just woke up.)

super basic visual if you aren't following, it's working and displaying a different graphic but it isn't displaying it based on which actor is the first party member, its just displaying it based off if there is an actor in that slot.

My question is, is there a way to display information based on a characters class (for example) rather than their position in the party? My best thought to figuring this out is basing off of an actors class, since every actor has a different class and I can then ID each one off of that, but I don't know any JS and can't seem to find what im looking for on the script call speadsheet.

If anyone has any ideas it would be a big help. Thank you!
best is to use $gameParty.members()[0] (for party leader) so if you can swap
party members, this will be correctly assigned.

for starts, you can try: BattleManager.actor().actorId().isStateAffected(ID)
to check current actor ID, so its easy to swap or use the scriptcall above.

$gameParty.members()[0] && $gameParty.members()[0].isStateAffected(ID)

when they have that state, it turns into that images or overlap the current one.
it should be removed when its not if not mistaken.
best is to use $gameParty.members()[0] (for party leader) so if you can swap
party members, this will be correctly assigned.

for starts, you can try: BattleManager.actor().actorId().isStateAffected(ID)
to check current actor ID, so its easy to swap or use the scriptcall above.

$gameParty.members()[0] && $gameParty.members()[0].isStateAffected(ID)

when they have that state, it turns into that images or overlap the current one.
it should be removed when its not if not mistaken.
Tried these and I couldn't get them working the way I wanted them to, but I did play around with

$gameParty.members()[0].isStateAffected(ID)

and ended up with

$gameActors.actor(ID).isStateAffected(ID)
which worked for me. Thank you for your help @ShadowDragon 🙂
$gameParty might work, maybe a bit differently, but there is also
a scriptly if an actor is a battlemember, if it isn't it wont crash, as if that
actor work and left the party, it could crash if not in battle, so you need to
make sure its part of the battle to avoid crash.

but good luck on your project and that it worked out for you.

Original thread: https://forums.rpgmakerweb.com/threads/looking-for-a-way-to-get-this-working-in-srd-hud-maker.166541/