Getting NPC to say player made name. Please Help!

So I am pretty new to RPG maker and while I do want to keep my first game somewhat simple, I also enjoy challenges and having something unique. I made a character creation where first you start as a little star and there are statues of actors standing around you (8 as of right now) and you get to choose one to look like, then you are transported to the next area where you choose your class, finally you get to choose your name. I am currently using the script


var x = $gameVariables.value(39);


SceneManager.push(Scene_Name);


SceneManager.prepareNextScene(x,8);


This allows them to name the actor they chose so I don't have to use the "name input processing command" and make a separate event depending on the actor they chose. My character creation is a success and I'm working on the actual first adventure now. However I want NPC's to be able to state the name that the player chose. Better yet let the player be able to introduce themselves! I am aware of the \N[x] command but that won't work simply because when they choose their actors in the beginning, they are given a set ID. Is there a way to maybe instead change the ID of the actor they choose? Sorry about the long post, never made a game before and I want to be specific.
I think you're mixing a few things up.


The ID is the actor - changing the actor ID will also change the actor as the engine only stores the IDs, not the rest of the actor data.


And if you don't know the actor ID, you can either use \P[x] (which will give the name of the xth party member) or use control variable to get the ID of a party member.
I've moved this thread to MV Support. Please be sure to post your threads in the correct forum next time. Thank you.


Why are you using script calls at all?  Everything you're trying to do can be done with event commands.  None of the commands you've shown there seem to have anything to do with what you say you're trying to do - you haven't stated what's in variable 39 or what the scene is that you want to call next. 
Sorry about the wrong forum first off, kinda new to this... Also I was using a script command just for naming the character because when they choose the actor in the beginning, I don't know which actor the player chooses. They have 8 actors to choose from. When you use the "name input processing" you need to choose the actor to name. So if I used that, I would have to create a separate event for each actor available to choose from. Also sorry variable 39 is my Selected Character. I used the control variables command to make the character they chose = 39 so I could use the script. Also thank you Andar for the \P[x] that's exactly what I was looking for.

Original thread: https://forums.rpgmakerweb.com/threads/getting-npc-to-say-player-made-name-please-help.62721/