设为首页收藏本站同能贴吧 切换语言 繁体中文
开启辅助访问 切换到窄版
搜索附件  
同能RPG制作大师 › 附件中心 › 同能RM技术讨论区 › RPG Maker MV 讨论区 › Class Name Input: Rata_ClassNameInput.js

Class Name Input: Rata_ClassNameInput.js

 

Class Name Input:
Class Name Input - v1.0.0
for RMMV
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 plugin command or script call.

NOTE: The class that will be renamed is determined by the current class of the actor whose ID you specify in the plugin command or 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.














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
​


Plugin Command:
                        nameclass actorId maxLength               
Click to expand...


Key:
   nameclass  => the command (do not change or omit this)
   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:
                        nameclass 14 10               
Click to expand...

- The class name input window will allow renaming of the current class of actor 14, with a character limit of 10.



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 MV.​



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.147269/
简体中文
繁體中文
English(英语)
日本語(日语)
Deutsch(德语)
Русский язык(俄语)
بالعربية(阿拉伯语)
Türkçe(土耳其语)
Português(葡萄牙语)
ภาษาไทย(泰国语)
한어(朝鲜语/韩语)
Français(法语)
关闭

幸运抽奖

社区每日抽奖来袭,快来试试你是欧皇还是非酋~

立即查看

Loading...

QQ|Archiver|手机版|小黑屋|同能RPG制作大师 ( 沪ICP备12027754号-3 )

GMT+8, 2026-10-4 04:27 , Processed in 0.087821 second(s), 19 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

返回顶部