TextColorTags XP
by Kyonides
Introduction
Since some forumer was having issues with some text color changing script of sorts, I decided to craft my own script so any window could change the color of certain texts only without using the color tags we all know after using the RM engines for years.
Code:
# These are the formats the Text Color Tags should follow:
# TAGS["YourTag1"] = [ColorIndex]
# TAGS["YourTag2"] = [ColorIndex1, ColorIndex2]
# TAGS["d+ YourTag3"] = [ColorIndex]
# TAGS["d+ YourTag4"] = [ColorIndex1, ColorIndex2]
# Examples:
TAGS["Sample1"] = [2, 6]
TAGS["d+ Sample2"] = [3]
TAGS["Sample3"] = [4]
# If you only define 1 color, DEFAULT_COLOR will fill in the gap left there.
NOTES
The respective
Game Switch should be
ON so the script can process the text tags.
d+ stands for any given number.
How would they look like in a real life scenario?
Let's take a look at this unusual screenshots then.
Terms & Conditions
Free for use in any game.
Due credit is mandatory.
Just keep in mind that nobody is forced to use any of my scripts or other people's.
If it doesn't suit your needs, don't use it.
That's it!
Useful Color Tag Update!
The full fledged version of your beloved TextColotTags script can now handle expressions or idioms under not just 1 but 2 different circumstances.
Normally, the original script would only parse a short idiom aka tag once. Then it would skip or ignore it if another idiom existed that might include that specific tag as an integral part of it.

Guess what, guys?

That has fully changed in the latest iteration!
Now it can detect that original tag as part of the larger one in no time!

You don't believe me!?

Fine. Here is the proof you badly needed.
Seeing the actual text string used within the SHOW TEXT window as an example would be appreciated. Then we would be able to see how both your color codes and the original color codes are entered prior to conversion.

You didn't get the idea behind these special tags at all. You don't use such \c tags in the dialog window at all. Not even one!
Preset the word or phrase in the module's hash and the script will parse it while it's working on replacing tags in the original text as VX ACE usually does.
New Backports Available!
From now on, you can also enjoy the benefits of
not using any color tags for certain words or word compounds if you own either RMXP or RMVX!
The original instructions are valid for all 3 RGSS-based engines!
