(rpg maker VX ace) Player chooses name and NPC says name

Thalldor

Making a game.
Veteran
Joined
Aug 2, 2013
Messages
56
Reaction score
1
Primarily Uses
-To moderators-

(I'm unsure if this is a script or not as I have no idea, if so please excuse this and I'll / you'll put this in the right area!)

All right, I have searched for this for a bit now and all I got was how to change the actors name, although what I'm wondering is if the player can choose the name so it'll be his choice on the matter, -example: (I start up the game in play test and it'll ask me what do you want your character's name to be and I'll write fishsticks being the characters name for the rest of the game.)

As well, on a lower priority is it possible for NPCs to say a players name? -example: (-Npc- "Oh! Hey Fishsticks! How is the weather today?")

Sorry if I left out detail or important information, just tell me if I left out something and I'll get right back with you!
 
Last edited by a moderator:

Cadh20000

Veteran
Veteran
Joined
Sep 15, 2013
Messages
1,828
Reaction score
445
First Language
English
Primarily Uses
Name selection.png

"Event Commands" tab 1 > "Show Text"

has an NPC asking you to choose a name.

"Event Commands" tab 3 > "Name Input Processing"

allows the player to put the name of their choice. You can pick how many letters in the name.

"Event Commands" tab 1 > "Show Text"

you type in \N[x] (with x being the number of the character) where you want the name to appear. It will be replaced with whatever name they chose.
 

Uzuki

Kawaii on the streets, Senpai in the sheets
Veteran
Joined
Aug 18, 2012
Messages
1,933
Reaction score
1,326
First Language
English
Primarily Uses
RMMV

Athryl

The Reticent
Veteran
Joined
Jul 20, 2013
Messages
309
Reaction score
101
First Language
English
Primarily Uses
Cadh20000 has it right, you can do it without scripts.

Also, next time you're doing a show text event hover your mouse over the box you type dialog into for a second, a small window should show up with a list of useful commands, including the use actor name one Cadh mentioned.
 

Cadh20000

Veteran
Veteran
Joined
Sep 15, 2013
Messages
1,828
Reaction score
445
First Language
English
Primarily Uses
Why bother using a script just to let the player choose a name to go by when it can be done with a single event command? What else does it do that would make the script preferable?
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
There's no need at all to use scripts for this. Event commands handle the OP's needs perfectly. It's preferable that we DON'T encourage people to use scripts unless they NEED to - especially when they're just getting started with RPG Maker. Much better to find out what the engine is already capable of without resorting to scripts, and then head that way when you're familiar with what you can do without them and KNOW you need them because there's no other way :)
 
Joined
Nov 6, 2013
Messages
946
Reaction score
153
First Language
Cookie
Primarily Uses
Go to name input and put the "1" where the actor name is \N[1] example actor 1 (Ralph) actor 2 (Urika) so it would be \N[2] Urika. :)
 
Last edited by a moderator:

Uzuki

Kawaii on the streets, Senpai in the sheets
Veteran
Joined
Aug 18, 2012
Messages
1,933
Reaction score
1,326
First Language
English
Primarily Uses
RMMV
Sorry about that. I got so use to having yanfly's scripts in my projects I forgot that that line is part of the default program X3
 

Thalldor

Making a game.
Veteran
Joined
Aug 2, 2013
Messages
56
Reaction score
1
Primarily Uses
Name selection.png

"Event Commands" tab 1 > "Show Text"

has an NPC asking you to choose a name.

"Event Commands" tab 3 > "Name Input Processing"

allows the player to put the name of their choice. You can pick how many letters in the name.

"Event Commands" tab 1 > "Show Text"

you type in \N[x] (with x being the number of the character) where you want the name to appear. It will be replaced with whatever name they chose.
Worked like a charm! Thanks! Although is there a way to change all of the actors names when the player choose the name, because my current plan is the player is going to choose their class giving them a better appearence, Although through this it seems their name will vanish when the actor is changed. (Changing actor because of appearence and class unless there is a better way to do that.)
 
Last edited by a moderator:

Athryl

The Reticent
Veteran
Joined
Jul 20, 2013
Messages
309
Reaction score
101
First Language
English
Primarily Uses
Could you just have them choose their name last? After they have selected class? That way you can just pick the correct actor number for the class they select.

Edit: I wanted to add that you will probably want to save whatever actor they choose as a variable, so that NPCs down the road can call up the variable in order to know what actor they selected at the start of the game.  I know this stumped me the first time I tried to make a character selection intro.  This allows you to do things like ok they selected actor 4, but how does that NPC you want to greet them know they chose actor 4? Because you use the command \N[\V[1]] where variable 1 is set to be equal to the actor number they chose.

Edit 2: Shaz's way sounds wayyy easier, so go with that.  Always learning.
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Sounds like you have half a dozen actors set up when you really only need one. Just use one actor, then use the Change Class and Change Actor Graphic commands to make them act and look the way they should depending on the player's choice. Otherwise you're going to continually run into problems with "I don't know which actor they're using, so I have to test for all of them", just like you've done here.
 

Thalldor

Making a game.
Veteran
Joined
Aug 2, 2013
Messages
56
Reaction score
1
Primarily Uses
Yea, I think you're right, I saw that after I made that post and it crossed my mind about that, I'll need to look into that...
 

Fanatic

Warper
Member
Joined
Mar 19, 2016
Messages
1
Reaction score
0
First Language
English
Primarily Uses
Is there a way for the player to choose gender, class, and Character? Thanks
 

GreyStone84

Sic Gorgiamus Allos Subjectatus Nunc
Veteran
Joined
Jun 24, 2015
Messages
295
Reaction score
95
First Language
English
Primarily Uses
RMVXA
Is there a way for the player to choose gender, class, and Character? Thanks


Fanatic: You should probably start a new post for your own question, that way more people will see it and you won't be using someone else's post. But to answer your question, yes there is a way to have player pick gender, class, and character. Through events, it gets really tricky and takes a lot of unnecessary events/conditions. You would probably be better off looking for help in the Scripts section of the forum.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,849
Messages
1,016,975
Members
137,563
Latest member
cexojow
Top