Reseting Player

Hello,

I was working on my final lesson (Battles, of Learn RPG Maker MV), when I noticed that by changing the character back to Level 1, s/he doesn't "forget" his learned skills. Is that right?

I'm needing to manually reset the learned skills, but wanted to ask anyway if the engine is working as intended.

You can check my project and play it in the browser:

I didn't published the lesson yet, but you can easily recreate what I did by making a avatar select screen like the one I did, only with the Show Choice event command, then making a reset with the Change Level event command.
Remove the Actor from the Party and when adding the Actor back to the Party,
mark the Checkbox for "Initialise", than that Actor should be totaly reset.

Edit:
You made an interesting observation of engine behavior.
Thank you for sharing.
Bex, thanks for the idea, but by doing so, I also "reset" the sprite chosen in the avatar selection screen.

Is there any way to save the avatar on a variable of sorts? Or maybe, there's a game command script for doing (like the $gameSelfSwitches.clear for reseting the Self Switches)?
I also "reset" the sprite chosen in the avatar selection screen.
that screen is something you added, and depending on what it is and how it works you should be able to save any data when storing that selection - including which sprite is used.
unless it is a plugin you got from somewhere else, but even then it would help to get a link to see what can be done.
What @Andar said.

or:

I wanted to find another Workaround, by using change class, but the Eventcommand
does not learn skills of the new class, nor unlearn Skills of the previous class, which is strange,
or me just not understanding at the moment.
that screen is something you added, and depending on what it is and how it works you should be able to save any data when storing that selection - including which sprite is used.
unless it is a plugin you got from somewhere else, but even then it would help to get a link to see what can be done.

I added the link to my original post Andar.

When I created the main character, I made it with no sprite, then change it through an event command when the player selects it. Doing the Initialize reverts the sprite to the blank one from Database.
When the player selects the sprite, you can store a number in a variable (e.g. 1, 2, or 3 for three choices). That variable lets you remember what was picked. When you want to reset, you can do the Initialize thing and then reapply the sprite based on the value of that variable.
I noticed that by changing the character back to Level 1, the character doesn't "forget" the learned skills. Is that right?

I'm needing to manually reset the learned skills

Made a small plugin for you to correct that issue... from my brief tests works as it should:
CTB_RemoveSkillsWhenLevelDownMV Plugin: Click Here to Download

That will automatically initialize skills to the appropriate level when changing levels.

Alternatively use can simply use this script without the plugin to do it yourself manually after changing an actors level:
Spoiler: Examples
Examples:
Code:
$gameParty.leader().initSkills();
Use that to reinitialize the party leaders skills to the correct level

Code:
$gameActors.actor(2).initSkills();
Use that to reinitialize actor #2 skills to the correct level

Hope that helps ☺️
@caethyril and @ct_bolt , many thanks! Both solutions are great!

I think I'll stick to the ct_bolt plugin though, this way, I can add it to a Plugin lesson I probably will release anyway (of course, if I have your permission to do so ct_bolt).
@caethyril and @ct_bolt , many thanks! Both solutions are great!

I think I'll stick to the ct_bolt plugin though, this way, I can add it to a Plugin lesson I probably will release anyway (of course, if I have your permission to do so ct_bolt).
No prob. Happy to help out ☺️
Yep for sure feel free to do anything you want with that ☺️👍

Original thread: https://forums.rpgmakerweb.com/threads/reseting-player.151109/