Change specific party member class

Hi all!


I am pretty new with RPG Maker, so I've started my first small project, but I am having some issues with it.


I would like to have "Class Masters" that make a member of your party to become that Class.


Example:


I have Eric the Soldier, Natalie the Monk and Terence the Paladin in my party. I speak with an NPC that is a Samurai Master. He asks me "Would you like to become a Samurai?" (Yes/No). If Yes, then it gives me the option to choose among all the members of my party. I choose Natalie, so now she becomes Natalie the Samurai.


I know how to change an specific actor class, but I don't know how to make the player able to select the party member he wants to assign the new class.


Thanks and sorry for my english!
What I would do is when you can select "Yes" make is so then it asks something like "Who do you want to become a Samurai?", then give choices for the actors.
What I would do is when you can select "Yes" make is so then it asks something like "Who do you want to become a Samurai?", then give choices for the actors.

I thought about this, but the problem is that I have a lot of "potentially recruitable" characters. Furthermore, not all of them are going to be in party at the same time...


Thanks for the answer!
You could use \P[1] to display the names of members within your party in choice boxes.


Then use a script call to change the class of that member in the party.


$game_party.members[0].change_class(2)


(Above examples display the name of the first actor in the party and changes their class)


If you need to hide choices (based on party size), Hime has a script for that.


Choice Options
That has worked really well. Both scripts also have made me able to solve another little issue I was having. Thank you a lot!

Original thread: https://forums.rpgmakerweb.com/threads/change-specific-party-member-class.68530/