How to make current active battle member condition?(hudmaker)

This question was asked by another guy back in 2019, and the responses in his tread are close to what i want to do. Basically i'm using SRD hudmaker and as the tile says i want to show a image based on what battle member is active, so there is this :

BattleManager.actor() && BattleManager.actor().actorId() === 1

It works, but theres a problem. This command is actorid based witch means i'll have to repeat it for every actor id in the game. That wouldn't be much of a problem if i had like 5 playable characters, but my game 70+, and i still have plans to ad more. so this command ain't it.

i tried to : BattleManager.gameParty() && BattleManager.gameParty().members()[2]

but that didn't work. Is it possible to do what i want or i'll just have to repeat that first command 70+ times?

thx in advance for anybody that can answer me.
What are you specifically trying to check for? If the current inputting actor is the nth (e.g. 1st, 2nd, 3rd) party member?

You already know how to get the actor ID of the currently inputting actor. Are you trying to get their index in the party?

What do you want to do with that information? You said you want to show an image. But if you were to be much more specific (example: I want to show a wizard image if the current active battler is a wizard), we might be able to help you.

You also probably ought to link the thread that you are referring to. Don't assume that we've read it. Help us help you by providing ample information.
What are you specifically trying to check for? If the current inputting actor is the nth (e.g. 1st, 2nd, 3rd) party member?

You already know how to get the actor ID of the currently inputting actor. Are you trying to get their index in the party?

What do you want to do with that information? You said you want to show an image. But if you were to be much more specific (example: I want to show a wizard image if the current active battler is a wizard), we might be able to help you.

You also probably ought to link the thread that you are referring to. Don't assume that we've read it. Help us help you by providing ample information.
1. Yes

2. yes

3. Is just a lil arrow pointing at the actor's face

4. https://forums.rpgmakerweb.com/inde...urrent-active-battle-member-condition.116519/
You can give this a try:

$gameParty.battleMembers().indexOf(BattleManager._currentActor)

I'm not familiar with the plugin/framework that you are working with, so this may not work for your particular use case. I tested this with the default selectNextCommand function, and it fired the current inputting actor.
You can give this a try:

$gameParty.battleMembers().indexOf(BattleManager._currentActor)

I'm not familiar with the plugin/framework that you are working with, so this may not work for your particular use case. I tested this with the default selectNextCommand function, and it fired the current inputting actor.
yep, it didn't work
You can give this a try:

$gameParty.battleMembers().indexOf(BattleManager._currentActor)

I'm not familiar with the plugin/framework that you are working with, so this may not work for your particular use case. I tested this with the default selectNextCommand function, and it fired the current inputting actor.
Heres a lil example on how i want things look.

actor 1.png

actor 2.png

and so on.
Maybe try:
JavaScript:
$gameParty.battleMembers()[0].isInputting()

Use 0, 1, 2, or 3 for party members 1 through 4.
Maybe try:
JavaScript:
$gameParty.battleMembers()[0].isInputting()

Use 0, 1, 2, or 3 for party members 1 through 4.
sorry it took me so long to answer, but i just tried it out and is working perfectly!

thanks m8 0/

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-current-active-battle-member-condition-hudmaker.137851/