Character Names in Enemy Names

Hey guys, I have a quick request. Hopefully quick anyways. I'm trying to make an evil version of the main character, whose name you can change. I know that in the enemy names you can place \N[n] to specify a character name, and in the game they will appear as the name. However, when targeting that enemy, it will have \N[n] rather than the name. Is this a line in existing code I would have to fix or would somebody be able to write a script for this? Thanks guys, this means a lot 🙂
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.


RGSS3 (VX Ace) Scripts is for scripts you have made and are sharing.


Go to the Window_BattleEnemy script, to the draw_item method. Change line 49 to this:

Code:
draw_text(item_rect_for_text(index), convert_escape_characters(name))
Sorry Shaz, I'll make sure to post it in the right place next time. 

I'm not sure if I'm doing this correctly because when I replaced the script, it didn't work.

3lv3w5q.png


 This is the way I'm referencing the name with the enemy.

i9qyc9b.png


When he emerges, he has the name alright here.

aURMEur.png


However, when I target him, it won't use the name. Should I be setting this up a different way?

EDIT: I've found a script that happens to do this for me, therefor my problem has been solved 🙂
Ah, I didn't realize there was a message when targetting as well. That'd be just another line that needs to change in a similar way, if you hadn't found the script.


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.

Original thread: https://forums.rpgmakerweb.com/threads/character-names-in-enemy-names.18170/