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?
Making an NPC say the players name
● ARCHIVED · READ-ONLY
-
-
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. -
Ah! Thank you! Of course, it's just that simple! ^^
A mod can close this thread. -
remember use the check the preview button to make sure the text fits the box because the name will change the length of it.
-
Yup. I was at first limiting names to 14 characters, but maybe I should shrink that a bit. Haha.
-
ya longer name length limits can Ruin the text in a game if the text used the chosen name a lot. Good luck.
-
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.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.
-
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!
-
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.