NameInput Upgrades (let players enter name, pronouns, custom data..)

LyraVultur

Non-binary Catbat
Veteran
Joined
Apr 24, 2021
Messages
61
Reaction score
108
First Language
English
Primarily Uses
RMMZ
Lyra's NameInput Upgrades & Party Pronoun Management

pro3.png

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.
pro2.png
pro4.png

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.
 
Last edited:

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
10,227
Reaction score
6,440
First Language
Dutch
Primarily Uses
RMXP
I'm getting a 404 error when I click on the link for the plugin. (The example project link works fine.)
 

LyraVultur

Non-binary Catbat
Veteran
Joined
Apr 24, 2021
Messages
61
Reaction score
108
First Language
English
Primarily Uses
RMMZ
oops, double pasted the link :rswt all fixed now!
 

tammie

7 years with RM | ️‍⚧️
Veteran
Joined
Nov 10, 2016
Messages
2,544
Reaction score
4,921
First Language
English
Primarily Uses
RMMV
Loving this plugin, thanks for making it! I especially appreciate this:
  • \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.
So much easier than a workaround where every dialogue box has a second option if the player chose they/them.
 

LyraVultur

Non-binary Catbat
Veteran
Joined
Apr 24, 2021
Messages
61
Reaction score
108
First Language
English
Primarily Uses
RMMZ
thank you, and you're welcome! I think you and I both had the same problem with trying to work they/them into dialogue boxes :p
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
6,152
Reaction score
6,301
First Language
English
Primarily Uses
RMMZ
How does it determine the different conjugations?
 

LyraVultur

Non-binary Catbat
Veteran
Joined
Apr 24, 2021
Messages
61
Reaction score
108
First Language
English
Primarily Uses
RMMZ
you (the developer) put data into it, or get the player to enter it, then use text codes to slot the right data into place in a sentence (like in the two pictures with the talking cat, both the same Show Text call, I just changed the actor's pronouns). Actors hold some strings and booleans that let the plugin know what words they want.

have a look at the example project if you're curious :)
 

JamieSabriel

Dope Enby Vibes
Veteran
Joined
Feb 26, 2022
Messages
110
Reaction score
193
First Language
English
Primarily Uses
RMMZ
This is incredible, thank you for making it!
 

LyraVultur

Non-binary Catbat
Veteran
Joined
Apr 24, 2021
Messages
61
Reaction score
108
First Language
English
Primarily Uses
RMMZ
As detailed in this thread, there was a crash if it couldn't find this._buttonAssistWindow. Updated to v1.1 to fix it! (Same fix as Eli's, thanks for responding since I was out lol)
 

DanMycroft

Warper
Member
Joined
Sep 20, 2022
Messages
1
Reaction score
0
First Language
Italian
Primarily Uses
RMMZ
Is there a way to have the "ShowVariableEntry" command -not- default to the leader's name?
 

LyraVultur

Non-binary Catbat
Veteran
Joined
Apr 24, 2021
Messages
61
Reaction score
108
First Language
English
Primarily Uses
RMMZ
Is there a way to have the "ShowVariableEntry" command -not- default to the leader's name?
You can use 'ChangeInputSceneSettings' to turn off showing a face.
'ShowVariableEntry' using the party leader's name however was a bug, so I fixed it and put an updated version on GitHub :) It will now use the value of whatever variable you pointed it at.
 

bookco

Villager
Member
Joined
May 29, 2023
Messages
12
Reaction score
1
First Language
English
Primarily Uses
RMMZ
Hello, I have a user error question. Hopefully someone will be patient enough to answer. When I try to execute the plugin command twice or more for separate actors, I get a TypeError: Cannot read property '2' of undefined. Please help.
 

LyraVultur

Non-binary Catbat
Veteran
Joined
Apr 24, 2021
Messages
61
Reaction score
108
First Language
English
Primarily Uses
RMMZ
Which plugin command are you using?
I tried to replicate it on my end and couldn't get an error.
Post a screenshot of the event page if you can.
 

bookco

Villager
Member
Joined
May 29, 2023
Messages
12
Reaction score
1
First Language
English
Primarily Uses
RMMZ
Which plugin command are you using?
Name Input Entry.

My mistake—I noticed that there was an error in how I had set up the party in System1! I just quickly drafted an event for two characters using plugin commands alone and it works just fine.

Plugin Command : FOSSIL, 'Enter MV plugin commands'
: OldPluginCommand = OpenCharacterCreator 1
Plugin Command : Lyra_PartyPronouns, Change Input Scene Settings
: Show Face = true
: Show Help = true
: Show Backgrounds = true
: Show Frames = true
: Allow Blank = false
Plugin Command : Lyra_PartyPronouns, Change Input Scene Hint
: Description = What is your name?
Plugin Command : Lyra_PartyPronouns, Show Name Entry
: Actor ID = 1
Plugin Command : FOSSIL, 'Enter MV plugin commands'
: OldPluginCommand = OpenCharacterCreator 2
Plugin Command : Lyra_PartyPronouns, Show Name Entry
: Actor ID = 2
Erase Event
 

Latest Threads

Latest Posts

Latest Profile Posts

I made a self-rule to make full-color art with a background once a month. But it doesn't mean I'm not allowed to make more.
I hope all our Canadian friends are doing well. It’s wild enough how much the smoke has impacted the Northern states (sky is very hazy, can’t have my windows open even though the temp is gorgeous)…so I hope those actually being threatened by the fire are safe.
It is important to remember, in a world where everyone quickly resorts to hate, that few people actually deserve your rude thoughts about them. They're just different from you in most cases and aren't malicious.
Life is strange. I am currently in a train-the-trainer course for Fraud Docs and Counterfeiting Techniques. And our assignment last night was to make several counterfeit documents using simple tools like Paint and such. And I actually learned stuff that might be helpful in trying to make/edit things for RM assets. I don't think that is what the course developer had in mind! :)

Forum statistics

Threads
131,715
Messages
1,222,482
Members
173,455
Latest member
Erishu
Top