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,372
Reaction score
8,395
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

IlluminaughtyStore.jpg
:kaojoy:
Welcome to the Illuminaughty store.
Yes... they are "wearing Illuminati branded everything, reclining on huge Illuminati body pillows. Occasionally they'll "teehee" at each other and have pillow fights with Illuminati branded pillows full of hundred dollar bills."
BCj
Working on Escalia again, feels good. Have this overwhelming urge to map as well, but need to get some extra tiles commissioned first :D
Lee Sang wrote on Bandito's profile.
Hi, I've just tried your plugin "Game is Active" and when I tested it on Android, it gave me an error, something about "Cannot read property 'underfined' of underfined.
With my project, I want the player to have access to all the tools they need to get from New Game to Credits as soon as possible; I want the player's progress to only be impeded by the player not knowing how to use the tools the game provides.
Just a little close up shot...
w2xZocX.jpg

Forum statistics

Threads
113,867
Messages
1,078,035
Members
147,957
Latest member
Broskiman1
Top