Checking Actor turn and swapping pictures accordingly

Hello everyone! I begin by saying that I am totally a newbie and I do not understand a lot about programming. I started working on MZ and I had this vision of making a battle system in which, in each character's turn, their Image gets displayed on the bottom left and when the turn changes the next party member is displayed.
I was using HUD Maker Ultra to edit my layouts and I think It's the easiest way to achieve this.
Now, what i think is that obviously I need a Check that determines which actor's turn it is so that, based on that check, I can decide which Image must appear. But I really cannot understand how.
I looked around and tried using scripts like BattleManager.actor() ? BattleManager.actor().index() === 0 : false and similiar but, as I said, I don't know the first thing when it comes to inputting these scripts.
Can anybody help me?? Is there an easier way or like a very dumb down explanation on how to make it work?
I appreciate every answer, thanks in advance to everyone!
How did you use those scripts? I think BattleManager.actor().actorId() gives you the id of your actor for the input phase.
I don't know the first thing when it comes to inputting these scripts.
You put them as the condition for the HUD Maker element.
Okay I managed that, looks like somehow in my copy-paste something went wrong so I wrote it down manually and it worked, but it looks like I am missing a part of the script that tells the image not to disappear when It's the enemies turn or something.
The image just disappears and the appears again when the turn is mine again.
I am missing a part of the script that tells the image not to disappear when It's the enemies turn or something.
The image just disappears and the appears again when the turn is mine again.
That's...the point of the code that you're using. You must have found it by looking up threads that ask how to display an image when it is an actor's turn. When it's the enemies' turn, it is necessarily not any actor's turn.

If you want to do something different, you should provide details of your own question for what you want to achieve.

Original thread: https://forums.rpgmakerweb.com/threads/checking-actor-turn-and-swapping-pictures-accordingly.169181/