Name Input Processing via code/script

How would you change an actor's name with a quick script call? I know you can enter a script with event's, so I'm just assuming that it's possible to change the name with it.

Thanks
I've moved this thread to RGSSx Script Support (VX Ace Scripts is for completed scripts). Please be sure to post your threads in the correct forum next time. Thank you.


$game_actors[id].name = "name"


If you want to know how to do something via script that's usually done in events, just go to Game_Interpreter, and search for the text on the button (so in this case, Change Name)
you can just directly modify it by doing

$game_party.members[insert a number here].name = "Ralph"The number in the square brackets ([]) is the index they are in the party. The party leader is index 0, the second party member (the second guy from the top in the main menu) is 1, and so on.

If you only want to change the party leader, you may also use $game_party.leader.name = "Eric"

Original thread: https://forums.rpgmakerweb.com/threads/name-input-processing-via-code-script.15720/