Was wondering if there was a way to change a character's class when a certain state is applied. I wanted this to apply to any character in the player's party and not just the player. I've googled it and I can't find an answer. Would appreciate some help. Thanks in advance.
Can States change a characters Class?
RPG Maker MV SupportYou actually sort of can
no, class is static in the engine
states can only change the effects of a class
states can only change the effects of a class
i think u misunderstand. i don't want to change anything about the class, i just want to change the character's actual class.
Find a script that can link the adding of a state to a common event. A common events/events in general have a "change class" option
Yes, easily.
This part of your question confuses me. There's no functional difference between "the player" and all other characters in the party. Are you saying you want a state on the actor representing your main character to change other people's classes? Or just that you want it to work on whomever gets the state (which it will by default)?
Get Yanfly's Buffs & States Core, free plugin.
In your state, put the notetag:
Code:
<Custom Apply Effect>
user.changeClass(X, true/false);
</Custom Apply Effect>
Replace X with the ID of the class you want to change into. Put
true if you want them to retain their experience, or false if you want them to restart at level 1.Note that by default, changing classes doesn't do anything to the character's learned skills. If you want a state that turns a warrior into a mage and immediately gives them the skills of their level, you should look at plugins to achieve that - one is Yanfly's Class Change Core, which is a paid plugin that gives many options for how changing classes works.
This solution also doesn't do anything with the user changing back to their previous class if the state is removed, which is a bit more of a complicated process if you want it.
this is what i was looking for. thanks.
"This part of your question confuses me. There's no functional difference between "the player" and all other characters in the party. Are you saying you want a state on the actor representing your main character to change other people's classes? Or just that you want it to work on whomever gets the state (which it will by default)?"
Didn't intend to cause confusion. I thought I was pretty strait forward. "How do you use a state to change a character's class?" I was not aware of the custom apply effect much less the boundaries of the effect's reach. I don't need them to change back when the state is removed because i'm making it a part of my custom class system, and instead of being removed, the option to replace the state will be implemented.
That much is straightforward - as I already said, the confusion is when you said "I wanted this to apply to any character in the player's party and not just the player," because it's giving details on functionality that don't exist. There is, as far as RPG Maker is concerned, no such thing as "the player" versus "any character in the player's party."
So it was unclear whether you didn't understand that fact or you did know it and were trying to request something using ambiguous wording.
But that's not relevant at this point - I'm glad this works for your purposes! Good luck with your game.
Much thanks sir!
*S.N. The reason I specified to that effect was that I recently ran into a snag in my research where I could achieve the class change for actor 1 (which would be "Player"), but to do so for all of the possible party members; or actors, would take some serious eventing. That's why I wanted to find a possible script call, or preferably(TYVM BTW!) a state notetag. I still don't know if I explained that right but, thanks again.
Original thread: https://forums.rpgmakerweb.com/threads/can-states-change-a-characters-class.139302/