Change the main character without affect the level.

In my game I want to give the player the possibility to control another character besides the main actor, something like quests for a specific character. But I couldn't change characters without changing their level.

For example, I start the game with "Dex" level 5 and get to level 8 with him, then the character changes to "Sun" because of a quest, but when I come back with "Dex" he goes back to level 5.

Is there anything I can do to keep him level?
There are two main ways I know of to do this:

1.) Use the same actor for both characters, and use events to change the name, sprites, etc. This is the clunkier way to do it, and I'm mostly just including this option to draw attention to the fact that it exists, because it can be useful in some niche situations.

2.) Eventing. Let's say you want to set Bob's level to be the same as Alice's.
  1. Set a variable to Alice's level.
  2. Subtract 1 from that variable (so it equals her level - 1)
  3. Use "change level" event to subtract 98 from Bob's level (resetting his level to 1 no matter what his current level is).
  4. Use "change level" to add the variable to Bob's level. His level should now be the same as Alice's.
This would be a lot easier if there was a "set level" option, but this work around works fine. 🙂
1658639010933.png


Make sure you don't check that box up there marked 'Initialize'. Default behavior is to retain a character's level unless you use variables to change it. Having the Initialize box checked will reset a character to their base level. Just uncheck that box in your Change Party Member command, and you should get Dex back at whatever level he was removed at. If it doesn't, then you may have a problem.
View attachment 235550

Make sure you don't check that box up there marked 'Initialize'. Default behavior is to retain a character's level unless you use variables to change it. Having the Initialize box checked will reset a character to their base level. Just uncheck that box in your Change Party Member command, and you should get Dex back at whatever level he was removed at. If it doesn't, then you may have a problem.
Yes this worked, thanks 🙂

Original thread: https://forums.rpgmakerweb.com/threads/change-the-main-character-without-affect-the-level.149765/