Input Nickname Function

RealMrFaceMan

Villager
Member
Joined
May 29, 2015
Messages
6
Reaction score
0
First Language
English
Hello! So I'm messing around with setting up an arena where the player chooses their nickname; a personal touch to the protagonist. I only see the option for changing the character's regular name, but not nickname. I apologize if I put this in the wrong section, but I didn't see a section for MV scripting. What I've tried so far changing the regular name input to this:

SceneManager.push(Scene_Nickname);SceneManager.prepareNextScene(1, 10);The 1 being the actor ID, and the 10 being the max character limit. I don't really know anything about coding, so if my attempt at this looks completely insane, then that is why. When I try to run it in game, it says, "ReferenceError Scene_Nickname is not defined". Here is the original (retrieved from the Script Call List post):

SceneManager.push(Scene_Name);SceneManager.prepareNextScene(actorId, name length);Thanks for any and all help in advance  :D  
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,111
Reaction score
13,715
First Language
English
Primarily Uses
RMMV
The section for MV scripting is towards the bottom of the forum.

The reason you got the error is that there is no script for Scene_Nickname.  In order to do a SceneManager.push(), the scene you're pushing has to have been created in the scripts.

tbh I would not do it this way at all.  I would create a 'dummy' actor and give it the same picture as the actor they're selecting (use the Change Actor Graphics command if you let them select their own images), then use that actor in a Name Input window, and then do a script call to set the real actor's nickname to the dummy actor's name that they've just input.  You should be able to find the script call for changing the nickname and for getting the dummy actor's name in the pinned thread for script call equivalents of event commands.
 

RealMrFaceMan

Villager
Member
Joined
May 29, 2015
Messages
6
Reaction score
0
First Language
English
That does sound a lot easier, but I haven't done anything like that before so it is a little intimidating. I understand the dummy actor part, but I can't see the script call you're referring too, unless it is these ones:

$gameActors.actor(actorId).name()$gameActors.actor(actorId).nickname()Although for those ones, I'm not sure how I could use those to do the idea you mentioned.

I shall keep in mind the correct place for scripting questions! Thank you for letting me know where it is.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,111
Reaction score
13,715
First Language
English
Primarily Uses
RMMV
Code:
Name Input Processing: (choose actor 2), 10 characters
Script: $gameActors.actor(1).setNickname($gameActors.actor(2).name())
These are the event commands to use.  Assuming actor 1 is your real actor, and actor 2 is your dummy actor.

Code:
Name Input Processing: (choose actor 2), 10 characters
Script: $gameActors.actor(1).setNickname($gameActors.actor(2).name())
 
Last edited by a moderator:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

On my journey of character rework: I had this character, she was meant to be just a princess that joins your party. And at long term she was just uninteresting... So I tweaked her to be a rebel agaisn't the royalty before meeting up with the party.

Quick tip for any other ametuer pixel artists! When trying to create a colour palette, enabling Antialiasing can speed up the process of creating different shades! Just place your lightest colour and your darkest colour next to each other, select both pixels, and stretch it out!
Revolutionizing the JRPG Industry: Knocking on Doors.

Take that, murderhobos.
Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.

Forum statistics

Threads
106,054
Messages
1,018,580
Members
137,843
Latest member
Betwixt000
Top