How to rename two actors at the same time with the RPG maker mv name input?

Status
Not open for further replies.

TheBreaker24998

Villager
Member
Joined
May 18, 2020
Messages
28
Reaction score
2
First Language
Español
Primarily Uses
RMMV
I have a rather big problem, is that I have a hunter mog plugin which is hud actor, and I have a character which has the power to transform, the problem is that when the actor transforms the image of the hud actor plugin character does not change, so what I did was to divide the two transformations into two different actors, but it's the same actor, which has the same name, but that's where the problem is. In one part of the game the player must enter his name with the name input function, but only change it to one of the two actors, not both, since those two actors are one, and since the information must be the same, how can I change the names of two actors at the same time?
 

Aerosys

Veteran
Veteran
Joined
Apr 23, 2019
Messages
364
Reaction score
335
First Language
german
Primarily Uses
RMMZ
After Name Input command make a Script call and try this snippet. Check the numbers to fit it to your game.

Code:
var name = $gameActors.actor(1).getName();
$gameActors.actor(2).setName(name);
 

caethyril

^_^
Veteran
Joined
Feb 21, 2018
Messages
2,044
Reaction score
1,474
First Language
EN
Primarily Uses
RMMZ
After Name Input command make a Script call and try this snippet. Check the numbers to fit it to your game.

Code:
var name = $gameActors.actor(1).getName();
$gameActors.actor(2).setName(name);
:kaohi: Nearly...getName isn't defined in the core scripts, use name instead, e.g.
JavaScript:
var name = $gameActors.actor(1).name();
$gameActors.actor(2).setName(name);
 

TheBreaker24998

Villager
Member
Joined
May 18, 2020
Messages
28
Reaction score
2
First Language
Español
Primarily Uses
RMMV
thank you very much friend! the .getname () script did not work for me, but the rest if it was correct, thank you very much for really helping me :3
 

TheBreaker24998

Villager
Member
Joined
May 18, 2020
Messages
28
Reaction score
2
First Language
Español
Primarily Uses
RMMV
Thank you very much brother, the script has worked and the problem has been solved :3
 

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
7,779
Reaction score
5,208
First Language
Dutch
Primarily Uses
RMXP

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 Profile Posts

Tomorrow is Thanksgiving, and I'm so excited! I've been exploring MZ a little, and I just downloaded Effekseer to make new animations. I have experience in 3D animation software, so I'll be pretty good at the whole "particle" thing. My first game on MZ will be Fantasy Force--starring a griffin, a dragon, and a pegasus fighting against the Dragon of Darkness.
currently listening to Driftwood Gaming streaming some MZ dev time and it's delightful! had no idea they were this entertaining, love it
In quarantine, will be tested soon. This year is really something... special.
I was at another orientation yesterday and I realized I'll be working with an old friend! We met at the local water park a few years back and it was so nice to see her again! We had a chat, and next week when I officially start, I'll see if maybe we can trade our Zoom IDs so we can talk!
I made some sideview closets for MV!
You can find them in my MV resource thread.

Forum statistics

Threads
105,512
Messages
1,014,339
Members
137,198
Latest member
mmc1980
Top