100% Evented Party Switch with 4+ Reserve Members, no plugins

Hello, I'm new here, I use RMMV v1.6.2. For my game, I tried eventing a party system. Its purpose is basic, to switch actors part of the battling party out for any members "in reserve" of the player's choice. For the most part, it works, and you can see the results below:


Spoiler
For the events representing each possible party member, It looks like this. There are four variables for each "reserve member" that matches their actor ID. Whoever that player unlocks, this variable gets stored, and the event that shows their graphic will run a check and activate the appropriate page. I did it this way for instances where a player will unlock characters "out of order."

2.png
1.png

The other pages for the event shown in the first image would appear as Rue's in the second. Whether they step in place or not will serve as a visual indicator of whether they're in the party or not.

Spoiler
This is the event that runs the entire party switching process. There are different pages reflecting how many "reserve" members you have. For both testing and convenience, I've enabled all four "reserve" members, so page 2 becomes active. I had the idea that gear should be unequipped from actors that have been removed from the party, and what resulted from that train of thought was to include an "Undo" sort of function that reverts your party to its previous state before switching.
3.png
5.png
6.png
7.png
8.png
9.png
10.png
11.png

If the player chooses to proceed with the party they've selected, then the gear is unequipped. I haven't tested this yet, but please let me know if I got the script calls wrong. ;w;"

I've used variables instead of names to take two things into account; again, the order the characters were unlocked, and to show that they've actually switched. Basically, I use PartySize for the party size, ReserveMember1~4 for the actor IDs of the unlockables, Slot2~4 to ID the actors being switched from their party slots, and then ReserveMember1~4 is set to the value of Slot2~4, which again, should match with the actor IDs. CurrentPartyM1~3 is supposed to ID the initial actors before the switching takes place, so that when the player undoes the changes, the party is cleared completely and those initial members are re-added.

Note that the party leader isn't meant to be switched at this point in the game... not yet. But I'm aware eventing that from this will be another hurdle.


Note, I have tried out Mr. Trivel's Party Manager [ https://mrtrivelrpg.wordpress.com/2016/03/28/party-manager/ ] beforehand, and my sprites are too tall for his UI setup. Plus, you can't just back out of it if you decide you don't want to form a party. I can't afford to get Yanfly's Party System, either. And HIME's Party Switch has a serious bug. So here is my attempt at a party manager of my own.

Now, I wanted to make this as flexible as possible and avoid using "Change Party Member"... but there's a problem. After significant switching, one of two things occur; an actor's name appears twice:


Spoiler
How it normally should be:
13.png
14.png

VS this:
15.png
16.png


And the big one: remember that them moving indicates they're in the party. The "Undo" function doesn't work after significant switching takes place:


Spoiler
17.png
Ann is still moving in this picture, even though the initial party members were Rue, Aoi and Zeeruma.


I've double-checked to make sure I got all the IDs correct for the variable-dependent script calls. Only thing I can assume is the way I evented it... but there's too much to check. It could've broke anywhere. Any suggestions how I can simplify this? A working party system is something my game absolutely needs- ;;

TL,DR; The plugin way didn't work so I spent hours looking up script calls and figuring out how to set up this event only to find that it only half works...
Are you better off going back to the plugin to get it to work? Someone might be able to change Mr Trivel's UI system for you. And what is the "serious bug" in Hime's plugin?
From what I've seen, even as you set a limit for maximum members, it still allows you to select an extra party member, which crashes the game.

I'll admit I... didn't actually test it, just the news alone made me wary.
You should test it. And if it happens, post a thread in Plugin Support, with a link to the plugin, and explanation of what you've done as far as setup goes, and how you managed to trigger the error, then a screenshot of the error (in MV, hit F8 to open Developer Tools, find the Console tab, and get a screenshot of that, rather than a screenshot of the single-line error shown in the game).

It seems it would be easier for someone to help you fix that, than to create a new system from scratch - unless you feel you are nearly there with your evented system and just need a little nudge over the finish line, but if you say it only "half works" it sounds like there's still a fair way to go.
The actual switching does work. Just not the other stuff I want to include for convenience of the player... but I'll test Hime's more thoroughly, then.

Thanks for the quick reply! ;w;
What I'd do is make a small scale version first, then add more on top once the first version is functional.
You should test it. And if it happens, post a thread in Plugin Support, with a link to the plugin, and explanation of what you've done as far as setup goes, and how you managed to trigger the error, then a screenshot of the error (in MV, hit F8 to open Developer Tools, find the Console tab, and get a screenshot of that, rather than a screenshot of the single-line error shown in the game).

It seems it would be easier for someone to help you fix that, than to create a new system from scratch - unless you feel you are nearly there with your evented system and just need a little nudge over the finish line, but if you say it only "half works" it sounds like there's still a fair way to go.
Tested Hime's, and the bug did happen for me. More details here: https://forums.rpgmakerweb.com/inde...itch-plugin-still-ignores-party-limit.132824/

But I have taken what you said into mind; using a plugin does sound infinitely simpler with what I had in mind. Might settle with Yanfly's or Mr. Trivel's if a fix isn't possible. 'w';

Original thread: https://forums.rpgmakerweb.com/threads/100-evented-party-switch-with-4-reserve-members-no-plugins.132812/