Change specific party member class

Phonon

Villager
Member
Joined
Sep 19, 2016
Messages
5
Reaction score
0
First Language
Spanish
Primarily Uses
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!
 

mlogan

Global Moderators
Global Mod
Joined
Mar 18, 2012
Messages
15,354
Reaction score
8,536
First Language
English
Primarily Uses
RMMV
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.
 

Phonon

Villager
Member
Joined
Sep 19, 2016
Messages
5
Reaction score
0
First Language
Spanish
Primarily Uses
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!
 
Last edited by a moderator:

Rinobi

Veteran
Veteran
Joined
Mar 24, 2014
Messages
579
Reaction score
219
First Language
English
Primarily Uses
RMVXA
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
 
Last edited by a moderator:

Phonon

Villager
Member
Joined
Sep 19, 2016
Messages
5
Reaction score
0
First Language
Spanish
Primarily Uses
That has worked really well. Both scripts also have made me able to solve another little issue I was having. Thank you a lot!
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

"You can thank my later", "But you haven't done anything", "Well, that's why ..."
Are we allowed to post about non-RPG Maker games?
I should realize that error was produced by a outdated version of MZ so that's why it pop up like that
Ami
i can't wait to drink some ice after struggling with my illness in 9 days. 9 days is really bad for me,i can't focus with my shop and even can't do something with my project
How many hours have you got in mz so far?

Forum statistics

Threads
105,884
Messages
1,017,238
Members
137,608
Latest member
Arm9
Top