Can't get embedded html color to work
duggold
11 Jun 2012, 03:44Using this example pretty much from the wiki:
At runtime get this error:
Error running script: SyntaxError: Unexpected token "red" <IDENTIFIER>; expected one of <EOF> Line: 1, Column: 16
SOLVED. I needed to code it like this:
The wiki/doc really should point that out as any real use would require using single quote as a msg string is always double quote delimited.
At runtime get this error:
msg ("<color color="red">You can't move while in combat</color>")
Error running script: SyntaxError: Unexpected token "red" <IDENTIFIER>; expected one of <EOF> Line: 1, Column: 16
SOLVED. I needed to code it like this:
msg ("<color color='red'>You can't move while in combat</color>")
The wiki/doc really should point that out as any real use would require using single quote as a msg string is always double quote delimited.
Alex
11 Jun 2012, 11:41Or you can "escape" the double quotes using a backslash \