We keep working on making our own combat UI and we are thrilled with the result. But we hit a wall. I’m using RPG Maker MZ with some Visustella plugins and HUD Maker Ultra for the HUD.
When I target an ally to apply an effect (either a skill or an item), I need a line of code to know who I’m targeting so I can show the corresponding UI element.
The goal would be this:
The yellow outline indicates who is performing the action, and the blue outline shows who it’s directed at before confirming.
So far, I have tried:
But it only showed the UI element on all allies (even if it was an individual target).
When I target an ally to apply an effect (either a skill or an item), I need a line of code to know who I’m targeting so I can show the corresponding UI element.
The goal would be this:
The yellow outline indicates who is performing the action, and the blue outline shows who it’s directed at before confirming.
So far, I have tried:
Code:
return window._selectedAllyIndex >= 0;
return _allyTargetMode === true;
return _allyTargetMode;
But it only showed the UI element on all allies (even if it was an individual target).