MV Player-copied Enemy Display Name Error

Weird oddity here. I have an enemy that is supposed to have the name of the player character, except that player-created name doesn't show when selecting the enemy ("DoppelExample2"). The name does display properly when the battle starts and during battle actions ("DoppelExample1" and "DoppelExample3").

Anyone know how to fix the enemy select prompt to display correctly? I tried looking through the message scripts, but I'm not finding what I need to adjust there, if anything. I don't have any plugins active that conflicts with battle display text.

Sub-problem: How do I get the enemy to actually copy the player's current stats?
Weird oddity here. I have an enemy that is supposed to have the name of the player character, except that player-created name doesn't show when selecting the enemy ("DoppelExample2"). The name does display properly when the battle starts and during battle actions ("DoppelExample1" and "DoppelExample3").
the function that handles creating the text for that name doesnt handle escape characters then. I remember there being plugins to increase the number of places that use them, but i cant remember any at the moment

Anyone know how to fix the enemy select prompt to display correctly? I tried looking through the message scripts, but I'm not finding what I need to adjust there, if anything. I don't have any plugins active that conflicts with battle display text.
since the entry message is fine, you could get away with changing the name of the enemy's $dataEnemy entry with a turn 0 troop event and a script command. Such changes arent usually advised since they persist within the session and arent permanent, but it should be fine in your case.

Code:
$gameTroop.members()[0].enemy().name = "Doppel " + $gameParty.members()[0].name();

How do I get the enemy to actually copy the player's current stats?
you could use same process as above and then use a recover all command after.
Code:
for (var i = 0; i < 8; i++)
  $gameTroop.members()[0].enemy().params[i] = $gameParty.members()[0].param(i);
It should work in a standard project, but id imagine some battle plugins might interfere with that one
Seems to be working, thank you!

Original thread: https://forums.rpgmakerweb.com/threads/player-copied-enemy-display-name-error.179839/