MV Change on Name Tag Graphic

Hello, this is my first time posting in here and I am a newbie! I deeply apologize if this is a commonly asked question but I haven't found anything related to this during my research... but to ask anyways, I do know there is plugins to add name tag but I find that I am not the biggest fan of how it looks? I don't like the big size, the graphic or the way it's formatted. I find it a bit distracting imo... ? Is there's a way to change it? or any suggestions what I should do? (and if so, how?)
Or is this a case where I'll have to use Picture command for it?

I am using YEP_MessageCore here! (And I just made my own windowskin)
I am still new to it so I don't know how to do anything too complicated so I may ask multiple questions so I am sorry in advance ^^;;

I just want to make it a name tag (preferably) a smaller and different/simple graphic from the textbox, is it possible?

……….or do I have to use bust shot plugin over textbox for this? (I already drew so many headshot sprites… OTL)

thank you for reading!

btw is there’s a difference between posts and threads in here? If so, I am sorry if I posted in the wrong place… also I realized I should've placed this on plugin support but I can't edit it;;

Screen Shot 2025-09-03 at 1.06.53 AM.png
I think make it load a different window skin for the namebox (put the below in a notepad file and save it as a js file in the plugin folder and add it as a plugin in the project + also change the name of the windowskin - currently Window2 - and put it as a file in the image system folder). There's also functions for the width and height where you can subtract from the return values how you like, but if you do that then you should also change the spot where it draws the name I think.

Window_NameBox.prototype.initialize = function(parentWindow) {
this._parentWindow = parentWindow;
Window_Base.prototype.initialize.call(this, 0, 0, 240, this.windowHeight());
this.loadWindowskin();
this._text = '';
this._lastNameText = '';
this._openness = 0;
this._closeCounter = 0;
this.deactivate();
if (eval(Yanfly.Param.MSGNameBoxClear)) {
this.backOpacity = 0;
this.opacity = 0;
}
this.hide();
};

Window_NameBox.prototype.loadWindowskin = function() {
this.windowskin = ImageManager.loadSystem('Window2');
};

Window_NameBox.prototype.windowWidth = function() {
this.resetFontSettings();
var dw = this.textWidthEx(this._text);
dw += this.padding * 2;
var width = dw + eval(Yanfly.Param.MSGNameBoxPadding)
return Math.ceil(width);
};

Window_NameBox.prototype.windowHeight = function() {
return this.fittingHeight(1);
};
I think make it load a different window skin for the namebox (put the below in a notepad file and save it as a js file in the plugin folder and add it as a plugin in the project + also change the name of the windowskin - currently Window2 - and put it as a file in the image system folder). There's also functions for the width and height where you can subtract from the return values how you like, but if you do that then you should also change the spot where it draws the name I think.

Window_NameBox.prototype.initialize = function(parentWindow) {
this._parentWindow = parentWindow;
Window_Base.prototype.initialize.call(this, 0, 0, 240, this.windowHeight());
this.loadWindowskin();
this._text = '';
this._lastNameText = '';
this._openness = 0;
this._closeCounter = 0;
this.deactivate();
if (eval(Yanfly.Param.MSGNameBoxClear)) {
this.backOpacity = 0;
this.opacity = 0;
}
this.hide();
};

Window_NameBox.prototype.loadWindowskin = function() {
this.windowskin = ImageManager.loadSystem('Window2');
};

Window_NameBox.prototype.windowWidth = function() {
this.resetFontSettings();
var dw = this.textWidthEx(this._text);
dw += this.padding * 2;
var width = dw + eval(Yanfly.Param.MSGNameBoxPadding)
return Math.ceil(width);
};

Window_NameBox.prototype.windowHeight = function() {
return this.fittingHeight(1);
};
Thank you for taking the time to answer me, I really appreciate it. However, I've tried this awhile ago but it doesn't seem to work for me :")) I think you wrote on the code that i use windowskin- While i described them as "windowskin", I use the "window" for the filename.
Screen Shot 2025-10-20 at 9.46.30 PM.png
This is almost 2 months old, but iirc I tested that and it seemed to work. Did you change the filename in the code? So where it currently says 'Window2', change it to 'Window02' (which seems to be your filename).
I am sorry that I didn't get back to you sooner. OTL I was struggling with it for embarrassing long time and tried testing it on my own, but was never successful despite my many attempts.
AH the window 02! I went back to fix it. But it still showed up the same... Would it be okay for me to ask what you did via pictures?
I never touched the code. ^^;;
I am sorry for my troubles orz I really appreciate that you went and coded something for me!
Hmmm, I just tested it again and it seems to work for me.

So did you add that as a plugin file? Copy paste the codes into notepad and save in your plugin folder with .js extension and add it in plugin manager (below Yanfly plugins). And check that in the line that says this.windowskin = ImageManager.loadSystem('Window2');the name in the parentheses matches your file name in the img/system folder.

EDIT: Also, when you say that it's not working, what's actually happening? An error, or nothing at all?

EDIT2: Also, do you have other plugins that can affect it?
I know I'm definitely doing something wrong, but I can't figure it out... >.<;;
I did! I added it as a plugin and as JavaScript!

Screen Shot 2025-10-21 at 7.47.10 AM.png


Screen Shot 2025-10-21 at 7.56.12 AM.png


Also I assume that I should also change the plugin name too? since I named it "namebox"?
Did you see my edits in the post above, can you answer those?

Here's a pic for me where the namebox appears with different window skin:

NAMEBOX_WS.png


EDIT:
And are you starting new game to test? Not sure that matters, but anyway.
Did you see my edits in the post above, can you answer those?

Here's a pic for me where the namebox appears with different window skin:

View attachment 351649
Oh I'm sorry, let me reply to those! It loaded kinda slowly for me.
I used two completely different graphics- my own windowskin and the default window skin. drastically different enough for me to tell them apart if it did work, right? Even so, it still shows up as the same as the other graphic.

EDIT: It still runs normally! No error message. It just still looks the same.

Screen Shot 2025-10-21 at 8.08.20 AM.png


Here is my current plugins list:
Spoiler: plugins list
Screen Shot 2025-10-21 at 8.03.02 AM.png

EDIT: I should try new game,,, let me see if anything changes.
EDIT 3#: I FIGURED OUT WHAT WAS MY PROBLEM HOLY HDSFGHDFGHDS OKAY SO.
I DID SAVE IT AS JAVASCRIPT!! BUT I DIDN'T SWITCH MY RICH TEXT TO A PLAIN TEXT FILE. SO I CHANGED IT AND IT WORKED!!! I cant believe i overlooked something so simple...

Screen Shot 2025-10-21 at 8.36.37 AM.png



THANK YOU SO MUCH FOR YOUR HELP!!
Cool.
I've no idea what is rich text and plain text, but I'm glad it works now. So thread solved.
I was using TextEdit so it was either to make in writing format or just code format, if that makes sense?

If you don't mind me asking another question, do you know if there's a way to make the namebox text smaller? If not, it's okay!
Yeah, for font size put the following (that should work for basic stuff at least, but depending on the size you might want to change the y value where it draws the text):

Window_NameBox.prototype.standardFontSize = function() {
return 10;
};
This worked too! Thank you so much for your help once again!
This thread is solved! 👋

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/change-on-name-tag-graphic.179912/