Change Actor but keep name?

Status
Not open for further replies.

D-D-D-Dan

Veteran
Veteran
Joined
Mar 30, 2019
Messages
52
Reaction score
5
First Language
English
Primarily Uses
RMMV
I am setting up my class change that happens at a certain level all classes have a certain level cap
and I want to change appearance based on class choice
easiest way i can think of is make a new actor based on class choice.
Main Characters name can be chosen by the player so i need a way to change the Actor on class change but keep the chosen name. Anyone have a idea on how i could do this?
Or am i once again overthinking things making it to hard on myself :p
 
Last edited:

D-D-D-Dan

Veteran
Veteran
Joined
Mar 30, 2019
Messages
52
Reaction score
5
First Language
English
Primarily Uses
RMMV
Awesome!
I am guessing here:
Code:
$gameActors.actor(Y).setName($gameActors.actor(X).name())
I change Y to the ID of the Main char and X to the changed one?

Edit: Reading it again i think its the other way around :p


Edit2: Yeah i got it thanks a ton!
 
Last edited:

mlogan

Global Moderators
Global Mod
Joined
Mar 18, 2012
Messages
15,157
Reaction score
8,426
First Language
English
Primarily Uses
RMMV

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Hello folks, I'm an old member deciding to reenter the forum. Greetings :D
When a parent (of a less than adult aged child) is like
"Oh, I'm like a friend to my child. We're friends."
I'm like
"Oh, that kid's gonna suck...."
Baby tiger gets a belly rub! ^.^
Ami
--- Friendship System ---

(F.Mage and F.Healer's FP is 100)
F.Mage: We did it! we can beat the monster easily!
F.Healer: With the Friendship System,we got stronger thanks to you F.Mage (Hugging)
F.Mage: (Blushing) Ahh...don't say like that. we are Best Friend Forever.
(In Distand)
M.Mage: They look happy...
M.Healer: Yeah...always like that...

Forum statistics

Threads
103,287
Messages
998,596
Members
134,798
Latest member
evilperm
Top