where can I edit the X symbol?

Hi, I'm new to RPG Maker and I having a problem with the symbol in my item menu. I'm not sure is it because I use Thai fonts but the x symbol turn into random Thai alphabet does somebody know where or which plugin I need to edit the script? I've seen treads that have similar problem but all of them are not in MV. Also, yes I use Yanfly core plugin but I'm not sure does it has to do with the error I have.

1700726556962.png
if you mean the "x" + amount of item, the "x" is hardcoded, and Thai language
dont have it?

however, there was a fix, but it require you to modify some of the code.
but I need to see where that part was, but it was easy to replace some to make
it work correctly, as it's been a while, I dont know if that site still exist with the
patch/mod for those languages.

otherwise, it would be hard to fix (at least for me to help you out).
Yes, it is the x + amount of items as you can see in the picture.
1700739399048.png
this is the code for the item scene
JavaScript:
Window_ItemList.prototype.drawItemNumber = function(item, x, y, width) {
    if (this.needsNumber()) {
        this.drawText(':', x, y, width - this.textWidth('00'), 'right');
        this.drawText($gameParty.numItems(item), x, y, width, 'right');
    }
};

you can copy/paste the code into a plugin and place it in your plugin list,
and name it however you want.

the ":" is what you need to change, which is in Thai differently, try the "x"
or something universal if you want most players to play your game.

I dont know otherwise how to fix it otherwise, its the best what you can do.

Just a reminder, if you use YEP_CoreEngine, you can try to look into the
code for similair for the itemList, because it has an alternate version, or
just put this below it and your good to go.
it's work! thank you! However I tried to fix the "x" in the shopsceen too so I copy the same code and change Window_ItemList to Window_ShopNumber but it doesn't change at all. Is there some part of the code I need to change more?
shop number is the gold part (up,down for the item amount to sell)

the one you need is for shop buy window and sell window, but I dont
see the place how it's exactly drawed, just the name and than how
many to sell, I cannot help you there though, at least not at this point,
but I think there where shop plugins that alter those windows and
have a slight different look/features to them.

try to look into those plugins and see if it has what you need.
or wait for someone that can help you alter that window for it.
I tried to fix the "x" in the shopsceen too so I copy the same code and change Window_ItemList to Window_ShopNumber but it doesn't change at all.
If you're not sure what you're doing, it never makes sense to guess with code 😉 Window_ShopNumber doesn't have a drawItemNumber() method, so you making that copy will simply never get called by the game.

I think you're looking for this:
Code:
Window_ShopNumber.prototype.drawMultiplicationSign = function() {
    var sign = '\u00d7';
    var width = this.textWidth(sign);
    var x = this.cursorX() - width * 2;
    var y = this.itemY();
    this.resetTextColor();
    this.drawText(sign, x, y, width);
};

You would change what it says after var sign - it doesn't have to be an ASCII code, that's what the default engine uses to produce the small x that's floating in the air. It can be any character, just like you saw the ':' above.
I saw that function, but didn't know it was for items or gold part.
but good to know if I can remember this one 😉 I though it also was
for how many items like buying/selling 1x, 2x, 3x etc.
I though it also was for how many items like buying/selling 1x, 2x, 3x etc.
Yes, that's what the OP asked for.

I tried to fix the "x" in the shopsceen too
It's fixed now thank you.
If you're not sure what you're doing, it never makes sense to guess with code 😉 Window_ShopNumber doesn't have a drawItemNumber() method, so you making that copy will simply never get called by the game.

I think you're looking for this:
Code:
Window_ShopNumber.prototype.drawMultiplicationSign = function() {
    var sign = '\u00d7';
    var width = this.textWidth(sign);
    var x = this.cursorX() - width * 2;
    var y = this.itemY();
    this.resetTextColor();
    this.drawText(sign, x, y, width);
};

You would change what it says after var sign - it doesn't have to be an ASCII code, that's what the default engine uses to produce the small x that's floating in the air. It can be any character, just like you saw the ':' above.

Original thread: https://forums.rpgmakerweb.com/threads/where-can-i-edit-the-x-symbol.163183/