Escape characters for text codes

Hey y'all. I want to use a variable value in text, along with a color code, like:

Code:
Control Variable : #0001 = "\C[18]Whatever"
Text : None, Window, Bottom
:    : \v[1]

But what is literally printed is:
C[18]Whatever

So I tried using an escape character like:

Code:
Control Variable : #0001 = "\\C[18]Whatever"

But then it just prints:
\C[18]Whatever

Is there a way to do this?

Thanks!
It appears variables were not taken into consideration of using Escape Characters
...small modification/overwrite was needed...

here ya go use this plugin and it should work as needed 😉

Using that plugin then would be able to let '\\C[3]Whatever' produce the desired result

Note though I have not at all thoroughly tested this, but definitely works with color codes 🙂

Before & After using the plugin:
Wow, that is above and beyond, my friend. Thanks! It works perfectly. I really appreciate it.
Wow, that is above and beyond, my friend. Thanks! It works perfectly. I really appreciate it.
Awesome! Very glad to hear that. No problem at all. You're very much welcome. ☺️👍

Now I'm tempted to fix it even further since it seems things like this still don't quite work:
Spoiler: Escape Character inside of Escape Character doesn't work
1651638057106.png
...That causes an error

but I suppose that isn't even necessary since that could just be done like this:
Spoiler: What does work though
1651638119192.png
Doing it like that does work nicely 🙂

Looks like this:

Happy Game Making! :LZSgrin:
Hi there!
I believe if you write on the script field of the variable:
\x1bC[color] it will work normally.
The thing is, for using escape codes that way, you need that prefix before the escape codes:

\x1b + escape code
1651659977003.png
Hi there!
I believe if you write on the script field of the variable:
\x1bC[color] it will work normally.
The thing is, for using escape codes that way, you need that prefix before the escape codes:

\x1b + escape code
View attachment 225119
lmao omg duh :blush:
lol & I'm sure I knew that before too
yep that definitely works ☺️ No plugin needed :eswt:

Original thread: https://forums.rpgmakerweb.com/threads/escape-characters-for-text-codes.147306/