[solved] Store /c[1] in variable and display color in textwindow

Hey, im trying to have some item names show up in a stored variable with the color code intact.

Like here for example, Health max upgrade should be displayed in red when I show that variable again in dialouge.
$gameVariables.setValue(381, "\c[10]Health MAX\C[0] upgrade!");

But when I show \v[381] in a text window it comes out something like this "c[10]Health MAXC[0] upgrade!" without the color and the "/"

Is there a way around this?
when you set a code as a string, and want it processed as a code in a future iteration of the sequence, you need to set each \ as \\ instead.
Thank you

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/solved-store-c-1-in-variable-and-display-color-in-textwindow.112035/