Making an NPC say the players name

Status
Not open for further replies.

flerbergerber

Villager
Member
Joined
Jun 3, 2014
Messages
17
Reaction score
1
First Language
English
Primarily Uses
So of course, in any good game, you'd like to have NPCs be able to call the player by name. This is simple if you force all players to go under the same name, but I allow players to pick their own names. Is there a way for me to call on the player's current name in text to display it? Is there some sort of special thing I can do for this?
 

Cadh20000

Veteran
Veteran
Joined
Sep 15, 2013
Messages
1,828
Reaction score
445
First Language
English
Primarily Uses
Where you want the name to appear in the textbox type in \N[n] Replace the n with the ActorID from the database. You know, the number, not the name. 001, 002, etc...

It will replace \N[001] with the CURRENT name of the "actor" in the first slot in the database. By default that would be Eric I believe.
 
Last edited by a moderator:

flerbergerber

Villager
Member
Joined
Jun 3, 2014
Messages
17
Reaction score
1
First Language
English
Primarily Uses
Ah! Thank you! Of course, it's just that simple! ^^

A mod can close this thread.
 

RyokuHasu

Developer
Veteran
Joined
Jun 23, 2012
Messages
274
Reaction score
37
First Language
English
Primarily Uses
remember use the check the preview button to make sure the text fits the box because the name will change the length of it.
 

flerbergerber

Villager
Member
Joined
Jun 3, 2014
Messages
17
Reaction score
1
First Language
English
Primarily Uses
Yup. I was at first limiting names to 14 characters, but maybe I should shrink that a bit. Haha.
 

RyokuHasu

Developer
Veteran
Joined
Jun 23, 2012
Messages
274
Reaction score
37
First Language
English
Primarily Uses
ya longer name length limits can Ruin the text in a game if the text used the chosen name a lot. Good luck.
 

Cadh20000

Veteran
Veteran
Joined
Sep 15, 2013
Messages
1,828
Reaction score
445
First Language
English
Primarily Uses
Just hold the mouse-pointer still over the text entry area when making a textbox to see the tooltip with the options for changing how it is displayed.
 

flerbergerber

Villager
Member
Joined
Jun 3, 2014
Messages
17
Reaction score
1
First Language
English
Primarily Uses
Just hold the mouse-pointer still over the text entry area when making a textbox to see the tooltip with the options for changing how it is displayed.
Oh! Thanks! That's really useful, didn't know about that.
 

Cadh20000

Veteran
Veteran
Joined
Sep 15, 2013
Messages
1,828
Reaction score
445
First Language
English
Primarily Uses
Pretty much every control or option in the system has an associated tooltip you can see by letting the mouse-pointer hover on it for a few seconds. Some aren't too helpful, but most are and all of them will at least give you the right name for the control!
 

Celianna

Tileset artist
Veteran
Joined
Mar 1, 2012
Messages
10,557
Reaction score
5,592
First Language
Dutch
Primarily Uses
RMMV
Valuable tip: if a variable, switch, item ID, or even actor ID is preceded by a bunch of zeroes (Variable 002, Actor 005), you can remove the zeroes, and simply put down \n[1]. You can also show an icon in the text with \i[X] where X is the ID number in the iconset (NOT associated with the item database).


This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
 
Status
Not open for further replies.

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

Latest Threads

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,859
Messages
1,017,030
Members
137,566
Latest member
Fl0shVS
Top