Different colors of items in the Menu?

Hey,

I'm looking for a simple solution - I will have 5 different types of items in my game: Common, Uncommon, Rare, Epic, Legendary.

As shown above, I want such items to have a different color of the text when you look at it at the Equip menu etc.

What is the easiest way to do it? I am using RPG Maker MZ.

Thanks!
Haven't tried it yet, but this should work:

Use this plugin https://forums.rpgmakerweb.com/inde...t-use-escape-characters-in-any-window.128906/ and then use Color Codes in every Item, e.g. \C[3]Health Potion
Make a plugin using this bit of code:
Code:
Window_Base.prototype.drawItemName = function(item, x, y, width) {
    if (item) {
        const iconY = y + (this.lineHeight() - ImageManager.iconHeight) / 2
        const textMargin = ImageManager.iconWidth + 4
        const itemWidth = Math.max(0, width - textMargin)
        this.drawIcon(item.iconIndex, x, iconY)
        this.changeTextColor(ColorManager.textColor(item.meta.itemColor || 0))
        this.drawText(item.name, x + textMargin, y, itemWidth)
        this.resetTextColor()
    }
}

and then in an item, weapon, armor, skill notebox use:
Code:
<itemColor: id>


Should do exactly what you're wanting... works in menu, shops, battle menus and drops
Make a plugin using this bit of code:
Code:
Window_Base.prototype.drawItemName = function(item, x, y, width) {
    if (item) {
        const iconY = y + (this.lineHeight() - ImageManager.iconHeight) / 2
        const textMargin = ImageManager.iconWidth + 4
        const itemWidth = Math.max(0, width - textMargin)
        this.drawIcon(item.iconIndex, x, iconY)
        this.changeTextColor(ColorManager.textColor(item.meta.itemColor || 0))
        this.drawText(item.name, x + textMargin, y, itemWidth)
        this.resetTextColor()
    }
}

and then in an item, weapon, armor, skill notebox use:
Code:
<itemColor: id>


Should do exactly what you're wanting... works in menu, shops, battle menus and drops

Thank you very much for this!

Original thread: https://forums.rpgmakerweb.com/threads/different-colors-of-items-in-the-menu.173758/