i need a plugin to change the skills name color, something like writing <skill color: color_id> in the notetags
Skill's name color
JS Plugin RequestsYanfly's Message System does it (I think). Have you checked?
What if you use the same commands you use in the message boxes?
Its been a few months since I tinkered with it, but if it doesn't I'll be a bit surprised.
Its been a few months since I tinkered with it, but if it doesn't I'll be a bit surprised.
Yup. That was the last of my hope fading away. I am going to need this plugin too then it seems my Arujan friend. lol
Ummm... I can help, cause I use one for my own game 😀
Thanks! Just what i need!
I know this is an old post, but can you tell us what plugin you use? I'm having the same issue.
That's a bit odd cause I had it posted in that comment... and its already been 3.5 years? XD Should have made a new thread, but save this a a .js file and in a skill/item/weapon/armor note tag use
MZ version:
MV version
As long as this is placed above everything, it should work with any plugins that draw and items name somewhere.
Edit:
@greensdream figured I better tag 😛
<color:id> with "id" being the same as the color codes when making a normal message.MZ version:
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.color || 0))
this.drawText(item.name, x + textMargin, y, itemWidth)
this.resetTextColor()
}
}
MV version
Code:
Window_Base.prototype.drawItemName = function(item, x, y, width) {
if (item) {
var iconY = y + (this.lineHeight() - ImageManager.iconHeight) / 2
var textMargin = ImageManager.iconWidth + 4
var itemWidth = Math.max(0, width - textMargin)
this.drawIcon(item.iconIndex, x, iconY)
this.changeTextColor(this.textColor(item.meta.color || 0))
this.drawText(item.name, x + textMargin, y, itemWidth)
this.resetTextColor()
}
}
As long as this is placed above everything, it should work with any plugins that draw and items name somewhere.
Edit:
@greensdream figured I better tag 😛
TSR_TextColorAddon can color items, skills, armor, command window, message words
and everything attached to it that has drawtext in it 🙂 pretty much works with
everything 🙂
and everything attached to it that has drawtext in it 🙂 pretty much works with
everything 🙂
Original thread: https://forums.rpgmakerweb.com/threads/skills-name-color.73837/