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,725
Reaction score
8,509
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 Profile Posts

Worked on a cutscene skip domino effect using Maker Systems' script as the basis. Basically if I have a batch of cutscenes in a row on different maps, now when you skip one cutscene it will skip the entire set. No more spamming X to skip a scene every new map.

Oh and it will work regardless of where you do it from in the set. Convenient!
seems absolutely WILD to me now all the hundreds of hours of work I used to do in 2k(3) over a decade ago with a resolution of 320x240. that seems so insanely TINY now, seemed so normal at the time!
Playing Aroma Indosiar theme song.
Aroma is an Indonesian TV show about cooking. :)
Working on a characteeer! (Why is it so hard to color hair?) ;-;
Silly-Sketches.png
Just finished eventing a couple simple puzzles in RMMV, for my very first game "Sample Quest." Just messing around, throwing things together, and calling it a story XD On a non-RM note, got my hair cut today!

Forum statistics

Threads
115,380
Messages
1,089,399
Members
150,085
Latest member
VerdantSorcerer
Top