How to transfer character name to different character

Tinkerer

Veteran
Veteran
Joined
Jan 21, 2017
Messages
50
Reaction score
5
First Language
Norwegian
Primarily Uses
Hi there!

I have the following problem: A character which can be named by the player will eventually evolve into another character. This new character uses a separate character profile/ID because it's a completely different class, with new stats and abilities. The only thing I wish it to keep from the old character is the name.
I thought I could use the "Change name" command to add the original name to the new character. But "Change name" doesn't recognize "\N[1]" as a string containing the original name. It will literally call the new character \N[1].
Any suggestions?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
33,670
Reaction score
8,489
First Language
German
Primarily Uses
RMMV
why does it have to be another actor?
you can change class and anything on an actor with event commands, so you can simply change everything that needs to be changed.

that said, if you insist on doing it the other way you'll need to use the script equivalent of the change name command. there is a list of those script equivalents sticky somewhere in each maker subforum, because the functions are different depending on which maker is used.
 

Tinkerer

Veteran
Veteran
Joined
Jan 21, 2017
Messages
50
Reaction score
5
First Language
Norwegian
Primarily Uses
why does it have to be another actor?
you can change class and anything on an actor with event commands, so you can simply change everything that needs to be changed.

that said, if you insist on doing it the other way you'll need to use the script equivalent of the change name command. there is a list of those script equivalents sticky somewhere in each maker subforum, because the functions are different depending on which maker is used.

It's because both actors can be used interchangeably (shape changing). And transferring XP between actors is just going to mess up all levels and skills. The easiest way would just be to swap actors.
I'll look for the script commands in the forum.
 

Tinkerer

Veteran
Veteran
Joined
Jan 21, 2017
Messages
50
Reaction score
5
First Language
Norwegian
Primarily Uses
Found it!
$gameActors.actor(actorId).setName($gameActors.actor(actorId).name())

Works like a charm:)

Thanks Andar!
 

Latest Threads

Latest Profile Posts

Too bad the Boss Battle Build Bout isn't also for VXAce.
I might not participate in the Boss Battle contest after all... I have more important things to do, like Wishful Wanda. And of course the Dark Deception spinoff I plan to pitch, Demon Slayer.
Changed my avatar, goodbye Alan Sugar, hello George Carlin (one of my favorite human beings ever)
If you still don't subscribe our Polish channel please consider it :)
1.png
Who wants to see my review of the worst star wars movie? This movie has all the excitement of being on Jury Duty of the most boring case ever about trade negotiations.

Forum statistics

Threads
115,171
Messages
1,087,811
Members
149,723
Latest member
krinalle
Top