How to name a enemy the same as an name input named actor

Yougotsomechocolate

Random Chest
Veteran
Joined
Jan 29, 2019
Messages
215
Reaction score
91
First Language
English
Primarily Uses
RMMV
Hello, I'm in need for a way to have an enemy name that changes with the players named in the name input screen.
I've tried using Yanfly's Message Core (http://yanfly.moe/2015/10/10/yep-2-message-core/) but that is for messages only.(it pops up as \n[number] instead of the name) I want the name to reflect the actors name, whatever the player is named.
 

Yougotsomechocolate

Random Chest
Veteran
Joined
Jan 29, 2019
Messages
215
Reaction score
91
First Language
English
Primarily Uses
RMMV
Where is the javascript equivalent thread that you were talking about?
Edit: Can you also explain how to make the code functional (Is it the index of the enemy in the first [] then the name script in the return {}?)
 

Astfgl66

Veteran
Veteran
Joined
Jan 5, 2016
Messages
722
Reaction score
578
First Language
French
Primarily Uses
It's a sticky in the rpg maker MV sub forum.

Replace index by the index of the enemy and 'your new name" by what you'd like to use as a name.
 

Yougotsomechocolate

Random Chest
Veteran
Joined
Jan 29, 2019
Messages
215
Reaction score
91
First Language
English
Primarily Uses
RMMV
it doesn't seem to be renaming the character. Here's what i put in.
$gameTroop.members()[6].name = function() {return $gameActors.actor(1).name()}
 

Astfgl66

Veteran
Veteran
Joined
Jan 5, 2016
Messages
722
Reaction score
578
First Language
French
Primarily Uses
Your code is working just fine for me.
Check that the enemy index is correct, remember that indexes start at 0 (so indexes are 0 to 5 for a troop of 6 enemies).
 

Yougotsomechocolate

Random Chest
Veteran
Joined
Jan 29, 2019
Messages
215
Reaction score
91
First Language
English
Primarily Uses
RMMV
Okay, i get it now. So your do the order of enemys, not the order in the database. Thanks for your help!
 

Astfgl66

Veteran
Veteran
Joined
Jan 5, 2016
Messages
722
Reaction score
578
First Language
French
Primarily Uses
Glad you've got it working!
 

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

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,051
Messages
1,018,549
Members
137,836
Latest member
T62352536256t362
Top