Hello!
I was wondering if there’s a script or something similar where you can play three different characters and you can switch to each one by pressing a button.
Ty in advance!
You mean on the main-map, right? Like, you change who's going to be the party leader.
Well, you can switch party members in-and-out by default, if that is what you mean. To activate it with a button, you might need a script indeed, but it would be easy to do with an event, or a common event triggered by an item, or a skill.
If you know of a script to trigger a common event by the touch of a button, than that would do the trick. Simply make that common event assign the new party leader. There is probably a script to do this properly, but you can just remove all character from the party, and then add them again, adding the party new leader first. Then that would be the new character you see on the map.
There is probably a script that can do all this, but as far as events go, that is how I would do it. I just don't know how you'd trigger the event by a button. I'd probably use an item or skill instead.
If I understood your request correctly, any party manager or group manager script could help you accomplish this. Just make sure each hero belongs to a different group or party and that would be it.