Have a party member when you're on a boat?

Hey all, this is a pretty weirdly specific question, but how would I be able to have a party member be in your party if and only if you're on a boat? Like let's say you have 3 players just wandering around, but you get onto a boat, and then you can have naval battles which have the boat be a playable character (and the only one able to do any kind of damage due to really inflated stats between human classes/boats).
It can be done - basically you need an event to switch party members when using a vehicle. But since that is not supported by default, you'll need to get tricky with eventing and preferably a few plugins.

I suggest starting with Tsukihime's plugins - If I remember correctly she has a party manager plugin for handling more than one party, and you can switch between a party containing the "landing party" and one containing the "ship" with a single command instead of manually removing and adding party members (which is complex if there are possible changes in the party)

How to get back from vehicle to landing party will depend on how you handle the the map movement - easiest if you use a plugin to force the player to only leave at ports, because then you can have a port event handle that. If you want to be able to leave the ship anywhere it gets more complex.
Change the hero image to a boat.
Changing the hero image to a boat doesn't actually help when you're on land. I'm gonna look into those plugins, because I could really use this.
http://yanfly.moe/2017/04/21/yep-133-utility-common-events-rpg-maker-mv/#more-5155

Just stumbled across this, seems like you might find it useful 🙂. You can use this to use a common event to add/remove the character when entering/exiting.
I actually just now realized that I was thinking too hard about this. Add an event to the world map and copy this. (note I'm using player 4 as a default, I'm gonna replace it with "Boat" soon)

38dgTteg.png
@MoonMoonGames
no, that is not the way to go - parallel processes are executed sixty times per second, which means that this event will try to remove (or add) the party member sixty times per second.
Besides a lot of other sideeffects that might happen, this will cause a lot of lag and make the game unplayable on slower computers.
There are good reasons why I didn't suggest that as a solution...
3E5RCGJ.png

Still 60 times a second but the double check takes up literally time measured in ns and then a bit more to add in a character. This was just tested on a PC with a 800MHz processor, so it's fine.
but lag is cumulative - everything adds up, and using that form of parallel will use up some of the reserves, add more like it and you will see the results.

If you're really fixed on that matter, at least add a wait(5) or so to reduce the lag.

Original thread: https://forums.rpgmakerweb.com/threads/have-a-party-member-when-youre-on-a-boat.77633/