Character swapping mechanic help

Hello.
I've started an RPG Maker MV project with 2 friends of mine and I'm trying to implement a character swapping mechanic.

The general idea is that in this game you play as 2 characters and at certain points you can switch between the characters during gameplay to be able to do certain tasks as particular characters.

I want to make it so if in the same party, pressing the c key swaps you to the other character in the party, but if separated, pressing c instead allows you to change view to the other character, allowing you easy access to puzzle solving when they get split up.

I would also like to disable character swapping if one character is unavailable in the story for one reason or another.

What would be the best way of going about this?
$gameParty.swapOrder(0, 1);
will swap the first follower and leader.

If you want the characters to be able to separate and work independently, you'll need to use a plugin like Tsukihime's Party Manager

Or make one of them an event and do
$gamePlayer.swap($gameMap.event(id));
combined with add and remove party member commands to change who you're controlling, and a self switch to change the follower event into the character you just swapped from. However, if you do this you will need a follower event on every map they can be separate on, or spawn them with an event spawner.
I tried giving that plugin a go, but im not sure if its working properly. its not showing the description in the plugin manager, makes me a bit worried that its not properly recognising even though im using mv
$gameParty.swapOrder(0, 1);
will swap the first follower and leader.

If you want the characters to be able to separate and work independently, you'll need to use a plugin like Tsukihime's Party Manager

Or make one of them an event and do
$gamePlayer.swap($gameMap.event(id));
combined with add and remove party member commands to change who you're controlling, and a self switch to change the follower event into the character you just swapped from. However, if you do this you will need a follower event on every map they can be separate on, or spawn them with an event spawner.
I tried giving that plugin a go, but im not sure if its working properly. its not showing the description in the plugin manager, makes me a bit worried that its not properly recognising even though im using mv

That's because they linked the VX Ace version of Party Manager.
That's because they linked the VX Ace version of Party Manager.
My bad, updated the link to the MV version
If you're feeling particularly adventurous, I'm sure this can be accomplished vanilla, without the use of any plugins. At least if I understood the scenario correctly.

Actually, I guess I'm the one feeling adventurous today, because I just did it.


Here is a sample project/demo I whipped up. Feel free to look through it if you think it'll help.

This is using an evented setup requiring 3 switches and 8 variables, but according to the very quick testing I did, it seems to work. You can swap characters by pressing PageDown (default buttons are in short supply). Talk to the green orb to split your party. Talk to your other party member or the green orb again to reunite. The setup keeps track of your other party member across maps.

1691044670035.png

1691044721401.png

1691044765905.png


All in all, using a plugin for this is probably easier, but doing it this way was a good exercise.
Ok I did look at how you got it, but it was after messing with the plugin.
I managed to get most of it to work, however im having trouble now making it so that pressing page down on the game switches to the other party when allowed. Heres how I tried to set it up:
1691087051247.png

1691087076560.png

1691087099817.png

1691087113377.png

1691087133524.png

1691087151690.png


Not sure where I went wrong but ill keep testing out things till this works as intended (the reason I have the general event that looks into the other general events is to hopefully make things quicker to pick, where all I have to do is set the number and then call the general event)

Original thread: https://forums.rpgmakerweb.com/threads/character-swapping-mechanic-help.159972/