How to get current active battle member condition ? (hudmaker MZ)

Hi there guys, it's been a few days that im looking for a way to switch some ui elements according to the active battler (currently waiting for input) as other before me tried to do and possibly manage to. I look many threads and tried out many solutions but I finaly found a way with this line of code BattleManager.actor() === $gameParty.members()[x] (inside the hud maker condition).

BUT for some reasons it's not working and I don't understand why. Every pictures (there is 3, one for each party members) show up all at the start of the battle and don't hide when they should. It's a very simple problem and I think im missing something obvious.

I have all the visustella plugins and nothing more. The projet is all new (based on the visustella game project sample).
In fact I have just one extra plugin named CBT_WindowExMZ


Maybe someone will be able to help me. Thanks a lot for your time !
the current turn is for MV at least is: BattleManager.actor().actorId()

so you need to test that with partyMembers

or for saver if the party member is in battle:

$gameActors.actor(ID).isBattleMember() as well.

or it might throw an error.
Im on MZ, you think it will work the same way ?
so you need to test that with partyMembers
How ?
I think it should as they are relitive close so far I know, it might
be slightly different as I cannot really check the files.

there are some people with the same issue that uses MV calls,
you might be able to find than or search for battleMembers
and gameParty member on the scriptcall list, you get quite alot of them.
Yes I already did and it's the one that i put in my first message BattleManager.actor() === $gameParty.members()[x] (it's working but just not for me apparently)

But I will continue to look for it thanks anyway !
Can you be more specific? Post a screenshot of what you actually have typed in, because unless x is a variable you've defined someplace, $gameParty.members()[x] doesn't mean anything.
Here it is (0 for party member 1 and etc)

BattleManager.actor() === $gameParty.members()[1] return true;
That is either a syntax error (return is invalid in top-level eval) or will always return true; the first line is irrelevant in both cases.

I'm not sure which format SRD's HUD Maker expects here, so...
  1. If the conditions are evals, remove the return line, i.e. (for member #2):

    BattleManager.actor() === $gameParty.members()[1]

  2. If the conditions are function code, try this instead (for member #2):

    return BattleManager.actor() === $gameParty.members()[1];
2. If the conditions are function code, try this instead (for member #2):

return BattleManager.actor() === $gameParty.members()[1];


It's working ! Thank you very much mate

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-get-current-active-battle-member-condition-hudmaker-mz.150548/