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,325
Reaction score
8,383
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 Posts

Latest Profile Posts

starting working on the sprites for one of my games major antagonists finally. here's the first frame of his chanting motion in battle.
Have spent too much time hammering out with a friend just how to make a reoccurring enemy that permanently learns skills you use against her.
I know what I want in a loose sense. Maybe I should just make a post asking for opinions and suggestions.
Shoot Enemy Off-Screen, Run RPG Maker Game as a Web Server, & Thai Keyboard | RPG Maker News #109

Some people have too strong of an opinion about what maker is the best, I've seen discussions like:
- I prefer VXAce because I like the style of the RTP better than the older releases
- You're worse than Hitler

Forum statistics

Threads
113,734
Messages
1,077,032
Members
147,760
Latest member
anitalains
Top