设为首页收藏本站同能贴吧 切换语言 繁体中文
开启辅助访问 切换到窄版
扫描二维码关注官方公众号
返回列表
+ 发新帖
查看: 71|回复: 0

[转载发布] Class Name Input

[复制链接]
累计送礼:
0 个
累计收礼:
1 个
  • TA的每日心情
    开心
    4 天前
  • 签到天数: 209 天

    连续签到: 2 天

    [LV.7]常住居民III

    4593

    主题

    864

    回帖

    2万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

    VIP
    7
    卡币
    23193
    OK点
    16
    推广点
    0
    同能卷
    50
    积分
    28680

    灌水之王

    发表于 昨天 14:26 | 显示全部楼层 |阅读模式
    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/

    本帖子中包含更多资源

    您需要 登录 才可以下载或查看,没有账号?立即注册

    x
    天天去同能,天天有童年!
    回复 送礼论坛版权

    使用道具 举报

    文明发言,和谐互动
    文明发言,和谐互动
    高级模式
    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

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

    幸运抽奖

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

    立即查看

    聊天机器人
    Loading...

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

    GMT+8, 2026-7-16 14:19 , Processed in 0.108361 second(s), 55 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

    快速回复 返回顶部 返回列表