MV SRD Hudmaker: Condition Statement

This is for MV. I'm not 100% sure how I should write this out:

1660732229911.png


In case you're not sure how this works... you can display images, text, bars, etc. via a tool. My question is regarding the players TP bar. I have it working just fine, but the issue I'm having... is the # text displaying total TP shows up even if that character isn't in the party. I'm wanting to only have it show if they're in the party. I could assign a switch to this, but I was wondering what the condition would be to have it check if a particular actor is in the party, and only if they are... does it display that text?

Thanks and let me know if you need anything else or any other details.
check if battleMember of that actor exist.
I got a scriptcall how to cycle through it, I can check later for you
if you still need it once I'm back.

EDIT:
this check for the partyMember ID which is currently in your party,
so if you switch formation, it should switch through it too.

JavaScript:
$gameParty.members()[memberID]._actorId

change memberID to a fix number, so if you use 4 members in party,
you probably need all 4 of them.

cycle through if you have 1 hud instead of seperately, you can use:
JavaScript:
BattleManager.actor().actorId()
otherwise, I dont know.
There's no need to check different members of your party and cross-reference their actor IDs or cycle through anything - just check whether that one specific actor is in your battle party:
Code:
$gameActors.actor(ID).isBattleMember()
I compleetly forget that one, I save that one as well, can come in handy ^^
nice catch Turan 😀
There's no need to check different members of your party and cross-reference their actor IDs or cycle through anything - just check whether that one specific actor is in your battle party:
Code:
$gameActors.actor(ID).isBattleMember()
That did it. Thanks for the help, Turan!

@ShadowDragon Thanks for your help, as well! You're both amazing 😂
Thread closed

Original thread: https://forums.rpgmakerweb.com/threads/srd-hudmaker-condition-statement.150525/