Switching playable characters midgame

Hello everybody

I am new to RPG maker and I have a question. I googled it a bit, but I can’t seem to find the answer.

I use RPG maker MZ, no plugins, and I have only one map (for now). It's very, very basic.

My question is => how to change the playable character, and how to change back to the original character ? So from Reid to Priscilla and back to Reid and so on.

Now I know it should be easy when you use Change Party Member, but for some reason it doesn’t work very well.

The files show the map and the 2 event pages I made.

I know I made an error somewhere, because after changing, the playable character moves in a really weird way, and sometimes I have the same two characters on the map.

What did I do wrong ? I think it may have something to do with the self switch, but I am not sure. Can somebody help me ?

Thanks in advance !
The player character will be whoever is in the first (0th) position of the party. I don't know what you mean by moving "in a very weird way". You can also try this script:
$gameParty.swapOrder(0, 1);

On your second event page you're removing the player character (Priscilla) before adding the new character (Reid) so you briefly have no one in the party, maybe that's causing the issue. You also don't toggle the self switch off on the second page to switch the map event back.
You seem to be wanting basically 2 separate parties. If so, look into Himeworks Party Manager, and FOSSIL
Hello everybody

Thanks for the help & tips. I experimented a bit with your tips, but it doesn't seem to work.

It's a bit frustrating that something pretty basic (at least I think it is basic) is such a hassle.

The only thing I want is to switch from actor 1 to actor 2 (and back again), so that at one point I control actor 1, and later I can return to controlling actor 2.

I'll keep trying, and thanks anyway !
It's a bit frustrating that something pretty basic (at least I think it is basic) is such a hassle.
The problem here is that you haven't been clear on what you want, so no one can give an accurate answer. So, allow me to ask some clarifying questions.

1. Are both actors meant to be in the same party, or different parties?

2. If the answer to the first question is "in the same party", does adding the second character, then removing the first not work?
The way the OP has the map event written it will only work the first time. The second time you talk to the event, it will remove Priscilla from the party and add Reid, but the map event is still stuck on the second page because you never turn Self Switch A off to go back to the first page, so you will play as Reid, but the event is also still Reid. Talk to it a third time and it will just keep trying to remove Priscilla and add Reid to the party even though he is already the only person in the party.
Hi

I apologize if it wasn’t very clear. I am still in the experimenting stage.

I only have one party with two actors (Reid and Priscilla). It’s very basic.

Priscilla is standing there, and Reid is the playable character, the one who goes where I click my mouse.

I would like to change the playable character, so that Reid becomes the one just standing there in the place of Priscilla, and Priscilla becomes the one who goes wherever I click my mouse instead of Reid. And obviously change again when I want to.

I think it could be done with switches or variables, but truth be told, I thought that Change Party Member would do the trick, but nope.
The problem here is that you haven't been clear on what you want, so no one can give an accurate answer. So, allow me to ask some clarifying questions.

1. Are both actors meant to be in the same party, or different parties?

2. If the answer to the first question is "in the same party", does adding the second character, then removing the first not work?
1. No, same party.

2. No sometimes I have two Reids, and afther the change of character, the playable character moves in a strange way. For instance, when I click left, he goes right and so on.
The way the OP has the map event written it will only work the first time. The second time you talk to the event, it will remove Priscilla from the party and add Reid, but the map event is still stuck on the second page because you never turn Self Switch A off to go back to the first page, so you will play as Reid, but the event is also still Reid. Talk to it a third time and it will just keep trying to remove Priscilla and add Reid to the party even though he is already the only person in the party.
Thanks for your help.

I understand what you are saying. I already turned the Self Switch A off on the second page, but it doesn't help.
Thanks for your help.

I understand what you are saying. I already turned the Self Switch A off on the second page, but it doesn't help.
Why don't you post what your event pages look like now since you made some changes?
The first event page seems fine, but the second one is OK but there's no way for it to loop back to the first one.

Like Page1 turns on Self Switch A, but Page2 doesn't have a way to turn off Self Switch A. So just have a Self Switch A off in the same position you had it on in Page1.

Like below, same exact page. Just changed who is added, the sprite, and turning off self switch A.

EDIT: Also your second event page has an issue. When changing party members you REMOVE first then ADD later. Meaning your party goes from 1person, to 0, then 1. You can't have 0 in your party. So you have to ADD Reid first, then Remove Priscilla. So the Party size should look like this: 1person, 2persons, 1persons.

Untitled 2.png


Untitled 4.png
I did have a similar idea kinda.
So this thread is really helpful for what I had in mind.
Why don't you post what your event pages look like now since you made some changes?
I get it, but that ship has sailed lol.

I have tried and experimented so many times that I don’t know anymore what changes I made and at the end of the day, it's not that important, it was more annoying than really necessary.
I have tried and experimented so many times that I don’t know anymore what changes I made and at the end of the day, it's not that important, it was more annoying than really necessary.
The computer is just going to follow the instructions you give in the order you give them. If you leave out a line or put it in the wrong place it will lead to the wrong result. If you want help you need to show the exact instructions you're giving to the computer.
I have tried and experimented so many times that I don’t know anymore what changes I made and at the end of the day, it's not that important, it was more annoying than really necessary.
But swapping out party members should be an extremely simple process. All you gotta do is post what you have at this moment and we can fix you right up. Don't sweat about the changes you've made.

I've moved this thread to MZ Support. Thank you.

General Discussion is meant for talking about wider topics, not help with specific problems.

Original thread: https://forums.rpgmakerweb.com/threads/switching-playable-characters-midgame.162613/