Yanfly Party Script - Issues

Hey guys, I'm currently using Yanfly's Party Script, and I was wondering how I can add an actor to my party and make it to where it cannot be used in the active battle party?

For instance, I have

Actor 1

Actor 2

Actor 3

Actor 4

in my party, but I've set the battle size to Three characters. However, even though I have 3 slots to fill in battle, I only want Actors 1 and 2 available to use and have the other two greyed out.
Is it a requirement that you "grey out" the other actor graphics, in battle? If so, and I am assuming that you are using some sort of visual battlers, you will have to use another script such as Neon Black's State Graphics to change the Actor graphics to be grey (desaturated by yourself in an image editor like GIMP). In order to make them non-commandable, just set the restriction for the new state you are creating as Cannot Move, make some variables for the other actors (Control Variables: [0002] = Member #3's Actor ID) and then use event command Change State, set it to the former variable and apply the new Grey state (Change State: Variable [0002] + [Greyed]).

I do not know how exactly the same effect could be accomplished in the default battle system. However, if you're at least using the Yanfly Battle Engine, Tsukihime wrote a wonderful script called State Faces to change your actor's faces according to different state inflictions. Changing your actor portraits to grey when you are in your newly created state should work, just as well, and even in addition to the State Graphics approach. Hope that helps!
I'm afraid that's not what I'm asking. I would like to change the number of party members in battle to be two, but not allow actor 3 or 4 to switch into battle or be able to switch from the Yanfly Party menu.
Ah, thank you for clarifying your question.

Well, surprisingly, this Yanfly script has a big bug. I looked closely at the lock_actor(x) and it didn't work at all. I searched and you can find a fix for it, partially, here on the boards. This won't completely help you, though.

Unfortunately, the Yanfly Party System doesn't allow you to apply the lock_actor script on any actor that is NOT in the current party. You can't apply a lock to a reserved party actor, as far as I can see. You can do it and the yellow star will show up on their graphic, but it doesn't do anything. If anyone can suggest any fix, that would be great.

To answer your question about the battle party, for changing the number of party members in battle to be two, go to your Party System script and to about line 98. Set MAX_MEMBERS_VARIABLE = 99 (just using 99 as an example, it can be any control variable greater than 0 that you wish). This is the in-game variable ID that the Party System uses for determining a change to the maximum number of members in your active battle party. It is not the determining number itself. Then, go ahead in your project and set Control Variables: [0099] = 2.

Also, you can use the require_actor(1) and require_actor(2) script calls to keep the first two actors inside of your party. Actor 3 or 4 will not be able to switch into battle, either, with the add-on Command Party. Ironically, your active battle party will be made greyed out, instead. This won't work well with larger parties or special conditions and circumstances. I think, though, this is the best that Yanfly Party System can do, unless someone transferred the KGC Large Party script from VX or until someone writes a workaround. Hope this helps, anyhow.

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-party-script-issues.22933/