Rpg Maker Mz - HUD Maker Ultra: Character selection in battle

Hi everyone, I'm trying to make a battle system similar to Earthbound with HUD Maker Ultra. My problem is that it's not clear which character's turn it is. I would like to make it so that the character's image (the one above the rectangle with the HP) appears only when it is his turn. Do you know how I can do it?
Thank you <3
assuming you're setting up your UI/ Images with party index 0 on the left and counting up from there


Something like:

if (BattleManager?._subject?.isActor()) {
if (BattleManager._subject.index() === 0) return true;
}
return false;

Should do the trick as a Display condition

1736710779152.png


Just adjust the index number to match each position. Then the picture will only show if its that party members turn.


If it is based on Actor name then it would be:

if (BattleManager?._subject?.isActor()) {
if (BattleManager._subject.name() === "Replace with Actor Name") return true;
}
return false;
assuming you're setting up your UI/ Images with party index 0 on the left and counting up from there


Something like:

if (BattleManager?._subject?.isActor()) {
if (BattleManager._subject.index() === 0) return true;
}
return false;

Should do the trick as a Display condition

View attachment 328742

Just adjust the index number to match each position. Then the picture will only show if its that party members turn.


If it is based on Actor name then it would be:

if (BattleManager?._subject?.isActor()) {
if (BattleManager._subject.name() === "Replace with Actor Name") return true;
}
return false;
Thanks for the help! Unfortunately in this way the image of the character appears during the attack animation but not during the selection D: I need it to appear during selection to let the player understand which character they are using.
Try:

if (BattleManager.actor() !== null) {
if (BattleManager.actor().name() === "Replace with Actor Name") return true;
}
return false;
Try:

if (BattleManager.actor() !== null) {
if (BattleManager.actor().name() === "Replace with Actor Name") return true;
}
return false;
Works!!! I changed it to work with index and it still works.

Code:
if (BattleManager.actor() !== null) {
    if (BattleManager.actor().index()  === 0) return true;
}
return false;

Thank you so much! 😍
Thank you so much! 😍

Happy to help! I saw "HUD Maker Ultra" and had to help, I know it can be daunting at times haha,

Don't hesitate to shoot me a dm here if you need any help with it or add me on discord. Will help whenever I can

Original thread: https://forums.rpgmakerweb.com/threads/rpg-maker-mz-hud-maker-ultra-character-selection-in-battle.174642/