MZ Way to change class name in-game?

I am making a class that I want the player to be able to rename in-game. It's like a "make-your-own-class" feature. How difficult would this be?
You would need to make a plugin for it. The class names are read from the database, so you can't change them once the game boots up.

@Trihan has a Prestige Title plugin that replaces the class display name, I don't know if it has any way to use dynamic text chosen during gameplay.
As ATT_Turan suggest, it cannot be done, not even with the plugin by Trihan.
it needs to be edited in the code for that to be able or a plugin that saves
the database entries inside the game (use this alot also increase save file).

so you need to use that wisely as well.
I assume you only need to change what the player sees, not the actual game data.

With that in mind, something like this might suffice:
Spoiler: plugin code
JavaScript:
/*:
 * @target MZ
 * @plugindesc Process text codes in class names.
 * @author Caethyril
 * @url https://forums.rpgmakerweb.com/threads/159534/
 * @help Free to use and/or modify for any project, no credit required.
 */
// Override!
Window_StatusBase.prototype.drawActorClass = function(actor, x, y, width) {
    width = width || 168;
    this.resetTextColor();
    this.drawTextEx(actor.currentClass().name, x, y, width);  // edit 1 of 1
};
Then you could name the class, e.g. \N[123] (name of actor ID 123).

If you're using plugins already, though, you may as well check first to see if text codes work with only those plugins.

An alternative option for this approach would be a "global text codes" plugin...I think Eliaquim has one.
My plugin can't do this currently but I could easily add something for it.
Hi there!

You can change the class name using that script call:

$dataClasses[classId].name = "My new name"

The problem with that approach, is that this changes are erased when you load a save file/ close/open the game.

I can think of two ways of doing that, without creating a new plugin:

1 - Find a plugin that plays a common event everytime you load a save file.
With this, you can change the class name, by storing a new name for it on a variable. When the game is loaded, the common event would assign the classes names according to the variables that holds their names. Something like that:
1689888648027.png


2 - Using my Global Text plugin, you can set the escape code \v[ID] Into your class names on the database. This way, the classes will always get the name you set for that specifics variable ids.
Jumping in here as well, for the actual naming part, you could make a blank Actor so you can call the Name input processing, follow that up immediately with storing that actors name as the variable, and use that variable to update the class name with Elis script

$dataClasses[classId].name = "My new name"


This sequence in an event or common event:
1689893344652.png




1689893220260.png


1689893250140.png


1689893314953.png





Making the name input not look like your renaming a character is something you can look into, but otherwise I think this will help with your players ease of access with naming


For loading a common event on Load, look into Galvs Auto Common Event Plugin

Original thread: https://forums.rpgmakerweb.com/threads/way-to-change-class-name-in-game.159534/