const ircCol = "\x0003";
const ircBold = "\x0002";
function iCol ( col, string ) return ircCol + iColnumToString( col ) + string + ircCol;
function iBold( string ) return ircBold + string + ircBold;
function iColnumToString( colnum )
{
if (typeof(colnum) == "string") return colnum;
local colstr = colnum.tostring();
return colnum < 10 ? "0"+colstr : colstr;
}
Example usage:
Echo( iCol( 2, "Server Connected" ) +" "+ iBold( iCol( 4, "BUT IT'S BURNING!!!" ) ) );
Server Connected BUT IT'S BURNING!!!