None of these methods are going to work. If you input a \c# color code into a text field as its component characters, 0x92 0x99 0x50 (for \c2), then it's never going to turn into the
really iffy method by which TorqueScript represents its color codes.
You have to actually replace each of the color codes' string representation, such as 0x92 0x99 0x50, with its equivalent metacharacter representation.
%colorCodes = "\c0\c1\c2\c3\c4\c5\c6\c7\c8";
for(%i=0;%i<9;%i++)
%text = strReplace("\c"@%i, getSubStr(%colorCodes, %i, 1));Note that this would miss all the non-numeric color codes, such as \cr, \cp, and \co.