Class Name Input - v1.0.0
for RMMZ
by Ratatattat
Introduction
Do you want your players to be able to name/rename their own classes, whether as a simple customization option, or part of a larger class creation system
à la Morrowind or Oblivion? This plugin allows you to open a name input processing window for your players to do just this. You can call this window via script call.
NOTE: The class that will be renamed is determined by the current class of the actor whose ID you specify in the script call parameters. However, the class will still be renamed for all actors who share it. If you want to ensure each actor can have their own uniquely-named class, you'll need to dedicate a unique class in the database to that actor alone.
Features
- Call a name input processing window that renames the current class of a specific actor.
Screenshots
Spoiler: Screenshots
Disclaimer: Plugin does not include the custom window skin seen in the screenshots. Screenshots are only to show functionality. Also, these are screenshots of the RMMV version of this plugin, but the effective functionality is the same.



How to Use
Setting Up:
You must set up one parameter before this plugin can work. In the parameters section in the plugin manager, pick a game variable to store all of the player's custom class names.
WARNING: Changing the value of this variable at any point in the game will permanently erase all of the class names stored in it, and every class that the player has renamed over the course of the game will revert back to its database name the next time the player opens the game. So it's probably best to avoid that

Script Call:
Rata.CNI.nameClass(actorId, maxLength);
Click to expand...
Key:
actorId => the actor whose class you want the player to rename
maxLength => the maximum number of characters you want the player to be able to enter
Example:
Rata.CNI.nameClass(2, 12);
Click to expand...
- The class name input window will allow renaming of the current class of actor 2, with a character limit of 12.
Plugin
Download the attachment or copy and paste the code from
here into a new .js file, and place into your game's plugins folder.
Note: This version of the plugin is for RPG Maker MZ.
Terms of Use
This plugin is free for both non-commercial and commercial use, with credit given to Ratatattat.
This plugin may be altered and redistributed in any way that suits the user's needs, as long as the original code, in part or in full, is not:
i. Passed off as the work of someone else
ii. Monetarily profited from outside of its use in an RPG Maker game - (exception for commissions to alter this plugin for compatibility or porting purposes, or to add new features; however, these terms may not be altered and the resulting altered plugin may not be sold to anyone besides the commissioner)
iii. Used in any way that would prevent others from using it as freely as outlined in these terms
iv. Redistributed either in the absence of, or with an edited version of, these terms
This plugin is provided as is. Ratatattat is not liable for any harm that may result from its use or misuse.
Changelog
Version 1.0.0 - Finished plugin.
Credit and Thanks
- Ratatattat (author)
- Willibab (requester)
本贴来自国际rpgmaker官方论坛作者:Ratatattat处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:
https://forums.rpgmakerweb.com/threads/class-name-input.147270/