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

[转载发布] NameInput Upgrades (let players enter name, pronouns, custom data..)

[复制链接]
累计送礼:
0 个
累计收礼:
1 个
  • TA的每日心情
    开心
    2026-7-12 04:10
  • 签到天数: 209 天

    连续签到: 2 天

    [LV.7]常住居民III

    5778

    主题

    864

    回帖

    3万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

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

    灌水之王

    发表于 前天 09:49 | 显示全部楼层 |阅读模式
    Lyra's NameInput Upgrades & Party Pronoun Management





    Another plugin spawned from the needs of my own game in progress. This plugin enables customising the NameInput scene (hide/show face image, border, background, hint text). As well it can enable simple keyboard typing support. You can have the data the player enters be used to rename the player (as normal), change the player's nickname, change the player's pronouns, or save it to a variable! If you choose to use the pronoun functionality, all the complexities of the pronouns are handled by the plugin including extra text codes to make sentence construction simpler. Pronouns are stored per-actor to make things easy to manage. If you're letting the player rename the whole party, why not let them change their pronouns too? Or maybe like Shovel Knight you have fixed characters but want a feature to swap their pronouns for fun. Or perhaps you just want your game to have the option to trans your gender like Stardew Valley.

    How to Use
    Add the .js file to your project's js/plugin folder, then open up the plugin manager in the editor and add the plugin.
    There's general help to the side and specific settings help if you double-click on them. It's recommended to setup some default pronouns for your actors if you plan to use the pronoun handling.

    You can call these new functions by using the Plugin Commands in an event. You can download an example project at the bottom of this post to see it in action, and open the example project to see how you might use it in your own projects.

    CAUTION: If you already use a plugin that adds keyboard support to the default Change Name scene (such as VisuMZ_0_CoreEngine) then set "Add Keyboard Support" to false in the plugin settings to disable the basic keyboard support of this plugin, or else keyboard support won't work!

    Plugin Commands
    Any of these that take an actor will accept "None" - they'll interpret it as the party leader.

    • Change Input Scene Settings - changes the appearance of any following NameInput scenes. You can choose to show or hide the actor face, button help window, window background, window border, and set whether to allow a blank entry to be submitted.
    • Change Input Scene Hint - sets a message to show on the InputName screen, or leave blank for none.
    • Show (Name/Nickname/Variable) Entry - shows the relevant input screen.
    • Set Actor's Pronouns - Directly lets you the developer set an actor's entire pronoun set. No player input.
    • Show Pronoun Entry - Repeatedly shows the NameInput screen to let the player enter the majority of an actor's pronouns. The ones that are booleans will still need to be set. See the example project for more details.
    • Show Single Pronoun Entry - show the entry screen for a particular type of pronoun only.
    • Set (Name/Nickname/Pronoun/Variable) Character Limit - adjusts the maximum amount of characters for the various input types.
    Text Codes
    Enter any of these in a message box to have them replaced with actor x's relevant pronoun etc. If x is 0, uses the party leader. If you use lowercase (eg \sub[0]) then the replacement text will be lowercase. You can also use Proper Case (eg \Sub[0]) or UPPER CASE (eg \SUB[0]) to have the text use the same case!

    • \sub[x] - Inserts actor x's subjective pronoun.
    • \obj[x] - Inserts actor x's objective pronoun.
    • \pod[x] - Inserts actor x's dependent possessive pronoun.
    • \poi[x] - Inserts actor x's independent possessive pronoun.
    • \rfx[x] - Inserts actor x's reflexive pronoun.
    • \isa[x] - Inserts is or are depending on the actor's setting.
    • \was[x] - Inserts was or were depending on the actor's setting.
    • \s?[x] - Inserts a single s if actor x has plural verb form on, nothing otherwise.







    Since English is a complicated mess, sometimes you need to check if an actor needs plural verb forms yourself. To do this in a Conditional Branch choose Script and copy-paste this line of code:
    LyraVultur.PartyPronouns.needsPluralVerbs(x);
    Make sure you change x to an actor id, or use 0 for the party leader.

    If you don't know what text codes translate to what, see the example project for a demonstration.

    Terms of Use
    You can view the license here.
    In short, it is free for commercial or non-commercial use. Credit is optional. Don't claim it as your own work.

    Downloads
    You can download the example project here(includes example usage of all the plugin functions).
    You can download just the plugin here.


    本贴来自国际rpgmaker官方论坛作者:LyraVultur处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/nameinput-upgrades-let-players-enter-name-pronouns-custom-data.146009/

    本帖子中包含更多资源

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

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

    使用道具 举报

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

    本版积分规则

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

    幸运抽奖

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

    立即查看

    聊天机器人
    Loading...

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

    GMT+8, 2026-7-26 04:52 , Processed in 0.121731 second(s), 53 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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