How do I...work with Party Member/Actor ID's for UI configuration?

Hey everyone! I am afraid this might be a bigger core issue, but I'm not too sure.
I will try to break this down as much as I can think:


So in my game, I have (up to 4) party members that are able to be played during the course of the entire game.
Here is that database:
Screen Shot 2023-03-12 at 3.05.06 PM.png


So during battle and gameplay, the UI looks like this during battles:

Screen Shot 2023-03-12 at 3.11.43 PM.png


The formation is like this:
001 003
002 004

This is how I constructed the UI:
I am using SRD's HUD Plugin to display the the MP/HP bars, the MP/HP texts, and the 8-bit little corner icons in the boxes, as well as the "What will HELM do?", which is really just an image that shows up when I'm deciding Actor001's (Helms) turn.
The actors themselves are just sprites, so the boxes/names are fine.


I do not intend to have any "formations" accessible.


Now here's my problem. The thing is, I do want to have segments in my game where some of the party members are separated.

So you will only be playing as certain members in some segments. I was experimenting with adding/removing actors, and I keep running into this problem where the UI will sort of mess up when I have any other formation besides the one I described above.

Screen Shot 2023-03-12 at 3.12.15 PM.png


Here is 1 such instance where I get rid of Actor001 (Helm), and change up the formation of the other party members.

All of their stats are still correctly linked to each member, so the text is fine. But as you can see, some of the UI gets messed up.


What is happening (I think), is that when I remove actors/change formation, those actors don't keep their ID's. Like, when I remove Helm who is usually Actor001, now Wilburt (Actor003) becomes the new Actor001, and so forth for the other reapers depending on the formation.
It would explain why the positions are in where they are as well, and why the colors I have for their bars don't match like they are supposed to.


My question is, is there a way I can prevent this from happening with the UI? Perhaps there is some way to directly tie the actor ID's to their characters?

I would like to make it to where... if an actors is missing from the party, their usual spot on the UI screen is just blank, without moving all the other actors around as a result, and messing with the UI.

I considered using "Dummy Actors" where it's really just a blank placeholder, so the actors could always be in their proper spots, but I'm not sure how that could work during battle/combat to skip their turns and not include them as "part of the fight"....


Any suggestions?
It’s possible to make dummy actors, seal the actor’s attack, guard, and wait skills, plus magic and special skill types, set the target rate on them to 0 in sp-parameters, and add the auto battle flag. That will keep enemies from attacking them and prevent them from having any sort of input in the battle.

The problem is that they’ll still have visible HP/MP gauges, will be hit by any skill the Bad Guys™ have that targets all enemies, can still be targeted by the player regardless, and will require special handling in the event that the actual party gets TPK’d.

I would suggest simply setting their max HP to 0, but the editor won’t allow that. Neither does the engine, even via script call. (A plugin would be able to change that, of course, and probably even a fairly simple one. I’d offer to write it, myself, but JavaScript is still a bit above my paygrade.) Even then, the dummy actor would be targetable by anything that can affect a dead party member, even if it wouldn’t do anything unless it was something that could raise the max HP of a dead actor (which I mainly mention because I have *seen* something like that before).
It’s possible to make dummy actors, seal the actor’s attack, guard, and wait skills, plus magic and special skill types, set the target rate on them to 0 in sp-parameters, and add the auto battle flag. That will keep enemies from attacking them and prevent them from having any sort of input in the battle.

The problem is that they’ll still have visible HP/MP gauges, will be hit by any skill the Bad Guys™ have that targets all enemies, can still be targeted by the player regardless, and will require special handling in the event that the actual party gets TPK’d.

I would suggest simply setting their max HP to 0, but the editor won’t allow that. Neither does the engine, even via script call. (A plugin would be able to change that, of course, and probably even a fairly simple one. I’d offer to write it, myself, but JavaScript is still a bit above my paygrade.) Even then, the dummy actor would be targetable by anything that can affect a dead party member, even if it wouldn’t do anything unless it was something that could raise the max HP of a dead actor (which I mainly mention because I have *seen* something like that before).


Ahh yeah, this was my concern. Seems like that is not going to be a feasible route then.

Is there a way to "lock" an actor ID with the actor themselves? If I could somehow make it to where Actor003 is always defined as 003, without turning into Actor001, even when 001 is not present, that would make things so much easier.
bump

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-work-with-party-member-actor-ids-for-ui-configuration.155753/