Remembering the name between heroes.

What I want to have:
- game starts
- player inputs the name of the hero
- I change the hero character
- I want this new character to have the same name the player put in in step 2

Why do I need it?
I want to have a "flashback" sequence, in which my player character gets a new class and separate inventory. It all works perfectly, except for the player name.

Help please 🙂
you can use $gameActors.actor(actorId)._name to get the first character's name, and $gameActors.actor(actorId).setName(n) to set the character's name.
I have no idea about JS. How would I use that exactly?
You probably used "Name Input Processing..." to set the first hero's name.

Now you just need to use "Script..." and paste the following code:
Code:
$gameActors.actor(2).setName($gameActors.actor(1)._name);

Assuming you want Actor 2 to have the same name as Actor 1.
Works like a charm, thank you!

Original thread: https://forums.rpgmakerweb.com/threads/remembering-the-name-between-heroes.92503/