Autocolor item/skill/equip descriptions

Hi!

I've been using this script for a while:

I was wondering if it's also possible to apply this to skill/item descriptions.
So instead of writing \c[23][Cooldown: 3 turns]\c[0]
I can just write "Cooldown: 3 turns" and it autocolors it.
Or if there's any other script that could do this for item/skills/equip?
It looks to me like you just need to add it to the AUTO_SETTING
"Cooldown:" => 5,
Maybe you can specify the whole phrase
"Cooldown: 3 turns" => 5,
but if that worked then you would need to add the other turn numbers
"Cooldown: 3 turns" => 5,
"Cooldown: 2 turns" => 5,
"Cooldown: 1 turn(s)?" => 5,
I tried that, but it didn't color anything in the menu. Does it work for you?
Does it work for you?
I would have to setup a demo. If you can't provide one, I'll get to it in a bit
Hmm I just tried it in a fresh demo. It does work there. Then I think Luna Engine is interfering. 😅
Try without the colon.
Nope, also won't work. I think Luna Engine is blocking the colorization of the menu text. 😅
Nope, also won't work. I think Luna Engine is blocking the colorization of the menu text. 😅
What are all the things in your project that has convert_escape_characters
Actually better question is what script are you using that shows the cooldown?
Not much really, the "convert_escape_characters" is triggering for YEA's message system (but it works there), for my formatting script by Modern Algebra, 1 luna engine script (sprite extended), and then victor's engine's main module, and then some base scripts which I didn't edit.

I use Luna Engine's notetag descriptions to add descriptions and color them with \c[3]blabla\c[0] . But when i disable that one, they still won't color.
I have never used that script, but I don't see how notetag descriptions is used for
\c[23][Cooldown: 3 turns]\c[0]
Where and what in your project uses cooldowns?
It is is just the description for the skill or item then should the luna notetag descriptions not do it by itself?
I have never used that script, but I don't see how notetag descriptions is used for

Where and what in your project uses cooldowns?
It is is just the description for the skill or item then should the lune notetag descriptions not do it by itself?
It's in the description, and I don't know what you mean by lune notetag descriptions? These descriptions don't color themselves unless I add color codes. This is what it looks like in the editor:
Code:
<menu desc>
!bl
       Scans the elemental and status information of one enemy. !bl
       Activates before most skills. !bl
       \c[23][Cooldown: 1 turn]\c[0]
</menu desc>

I want it to make the Cooldown 1 turn autocolored without me having to write \c[23]Blabla\c[0] everywhere.

But like I said, the script I linked by EST doesn't work. There must be a conflict.

EDIT: 100% this is caused by Luna Engine. I just used the default Luna Engine base project and added EST's autocolor, and it doesn't work. Take a blank rpg vx ace project and it does work. Something in LE is breaking it, but what??
What happens if Estriole's script is placed in any section beneath LE?
But like I said, the script I linked by EST doesn't work. There must be a conflict.

EDIT: 100% this is caused by Luna Engine. I just used the default Luna Engine base project and added EST's autocolor, and it doesn't work. Take a blank rpg vx ace project and it does work. Something in LE is breaking it, but what??
I just tried the note tag and put in a colour entry for EST script and it works for me.

I used the Etrian demo for luna engine and added those two scripts.
Spoiler: images
1693522605302.png

1693522634202.png

1693522673154.png
@BCj
I have checked your project, and there is an extra line in the code that is not present in the original script you posted here.
Code:
return result unless is_a?(Window_Message)
This makes the script only work in the message box window.
Comment out that line, and it will work in all windows.

That being said, you can't use the full phrase of "[Cooldown: 1 turn]", because the [ ] signs will conflict with the message code processing and mess up a whole lot of text processing everywhere.
Either use different brackets like ( ), or just color the words alone without those brackets.
Ohh thanks Sixth! I have no idea why
Code:
return result unless is_a?(Window_Message)
is in there, since I definitely didn't write it in myself.
I'll edit that out. 😀
I dunno if you'd ever needed any other similar script but I wrote a scriptlet that I've recently published.
It can be found here, once it gets approved.
You could say it's quite easy to configure the way you prefer it. 😉

Here are a couple of screenshots.

Spoiler: 2 Screenshots
index.php

index.php
Thanks @kyonides will take a peek at it once its released.
For the meanwhile, you could take a look at the screnshots I've attached to my previous post. 😀
The first tag lets you change the color twice, but the other one only once. The catch is that the latter also lets you set an unknown number as part of the text it should replace during gameplay.
Ah, I can't see them as they are .php files and not images. Can you re-upload them?
OK, let me see if it works now...

textcolortags_ace01.jpg

textcolortags_ace02.jpg

Original thread: https://forums.rpgmakerweb.com/threads/autocolor-item-skill-equip-descriptions.160767/