Save-Point
TextColorTags - Printable Version

+- Save-Point (https://www.save-point.org)
+-- Forum: Material Development (https://www.save-point.org/forum-8.html)
+--- Forum: Scripts Database (https://www.save-point.org/forum-39.html)
+--- Thread: TextColorTags (/thread-8810.html)



TextColorTags - kyonides - 09-01-2023

TextColorTags
XP + VX + ACE

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. Winking

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. Grinning

[Image: attachment.php?aid=1956]
[Image: attachment.php?aid=1957]


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!


RE: TextColorTags - kyonides - 09-03-2023

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.

Happy with a sweat Guess what, guys? Shocked  That has fully changed in the latest iteration!

Now it can detect that original tag as part of the larger one in no time! Two Thumbs Up!
Shocked You don't believe me!?
Sarcasm Fine. Here is the proof you badly needed.

[Image: attachment.php?aid=1959]



RE: TextColorTags - DerVVulfman - 09-03-2023

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.


RE: TextColorTags - kyonides - 09-03-2023

Happy with a sweat 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! Grinning

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.


RE: TextColorTags - kyonides - 03-16-2024

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! Grinning

The original instructions are valid for all 3 RGSS-based engines! Winking