Using \N[001] in enemy name

Hey there community,

I came up with the idea to battle against the player's shadow, therefore, when the battle begins it should say '[Player]'s Shadow emerged!'. I was already surprised that this worked out, but apparently this does not work when choosing who to attack. Also, I do not know if it changes anything, but using '1' instead of '001' does not make a difference. I think the screenshot below will give more information:
Spoiler: Images
Screenshot8.png Screenshot9.png Screenshot10.gif Screenshot11.gif

If you need any more information, feel free to ask!

JustinK
Do not put leading zeros in front of numbers. In some cases, it does cause an issue.

This exact same thing was asked only a few days to a week ago. I suggest you search through the recent threads and see if you can find it, and if there was a solution.

https://forums.rpgmakerweb.com/index.php?threads/enemy-named-after-actor.93271/
Do not put leading zeros in front of numbers. In some cases, it does cause an issue.

This exact same thing was asked only a few days to a week ago. I suggest you search through the recent threads and see if you can find it, and if there was a solution.

https://forums.rpgmakerweb.com/index.php?threads/enemy-named-after-actor.93271/
Like I said, it doesn't work in both of the cases. Anyway, I also found the thread, but I cannot get it to work, maybe because I am not using RPG Maker VX Ace?
aww, crumbs - sorry - didn't realise that was for Ace and you were using MV.

My comment about it causing an issue wasn't just that it wouldn't work - it was that it WILL cause issues if you put leading zeros in front of things, in some cases (not just not working, but doing weird things in the process) so you should not do it.

Try this - save it as whateverfilename.js in your plugins folder and add to your plugins manager.

Code:
Window_BattleEnemy.prototype.drawText = function(text, x, y, width) {
    this.drawTextEx(text, x, y);
}
aww, crumbs - sorry - didn't realise that was for Ace and you were using MV.

My comment about it causing an issue wasn't just that it wouldn't work - it was that it WILL cause issues if you put leading zeros in front of things, in some cases (not just not working, but doing weird things in the process) so you should not do it.

Try this - save it as whateverfilename.js in your plugins folder and add to your plugins manager.

Code:
Window_BattleEnemy.prototype.drawText = function(text, x, y, width) {
    this.drawTextEx(text, x, y);
}
Thanks, this worked out!
This thread can now be closed.
You need to report your first post and ask for it to be closed. That way, the mods will see it faster 🙂
You need to report your first post and ask for it to be closed. That way, the mods will see it faster 🙂
Okay, will do that!

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/using-n-001-in-enemy-name.93588/