Text Codes in Scripts

How can I use the default text codes like '\c[x], \i[x], etc.' in scripts?

For example, I am currently using this script of Vlue of Daimonious Tails, Weapon/Armor Randomization and there is an affix system.

Spoiler
AFFIXES = { 1 => { :name => " of Lesser Strength ",

:atkP => 10,},

2 => { :name => " of Strength ",
:atkP => 30,},

3 => { :name => " of Greater Strength",
:atkP => 80,},
I would like the names to have different color, like the first affix. I tried using "\c[2] of Lesser Strength" but it's not working.

Can somebody help me? thanks! 😀
There is no general answer as it depends on how the script displays the options.

Generally speaking, if you install one of the advanced messaging systems, those text codes should be available everywhere - but that sometimes depends on compatibility of scripts, and the order in which scripts are installed into the script editor.

Please provide the link to the affix system script you're using, and we might be able to help you with more details.
I installed yanfly's message system and it's still not working.

Here's the link for the script.

http://pastebin.com/6Je40VFn
That script provides its own color system for the names (see color commands in about half the example affixes) - that's most probably the reason why it doesn't react to other script's color commands.

What is the problem with the included color system? why don't you use that?
oh yeah, now that i've look into the script in the pastebin. I only downloaded the demo version and there's no color codes there. it must be outdated.

thanks anyways for the help! 😀

this can be closed now.

Original thread: https://forums.rpgmakerweb.com/threads/text-codes-in-scripts.17240/