Color, Bold, Italics for "print expression" ?
lordpalandus
04 Sept 2017, 05:44Hi,
I know that you can change colors, bold, italics, for a regular "print message", but how would I go about doing it for "print expression"? I'm sure there is a way, I just don't know it. Anyone happen to know how to do it?
Also, looking to do it in the interface, rather than use the code view.
ie like in the "print expression" text box something like = "The big " [b] + object.alias + [/b] " jumped over the picket fence!"
Can anyone assist me?
Pertex
04 Sept 2017, 05:52Something like this?
"The big <b>" + object.alias + "</b> jumped over the picket fence!"

Doctor Agon
04 Sept 2017, 06:35You can also do:
"The big {b:" + object.alias + "} jumped over the picket fence!"
http://docs.textadventures.co.uk/quest/text_processor.html
lordpalandus
05 Sept 2017, 17:12Thank you, that helps a lot.
What about changing colors of text?
The Pixie
05 Sept 2017, 17:21You can do this:
This is {colour:red:some coloured text}.

Doctor Agon
05 Sept 2017, 21:42This:
{b:{i:{colour:blue:{u:blue}}}}
is not the same as this:
{b:{i:{u:{colour:blue:blue}}}}
The Pixie
06 Sept 2017, 07:31Why?

Doctor Agon
06 Sept 2017, 08:18The first prints the word 'blue' in 'bold, italics, the colour blue, and underlined in blue'
The second prints the word 'blue' in 'bold, italics, the colour blue, but underlined in black'.
It's because the {u: is not captured by the {colour:
lordpalandus
14 Sept 2017, 16:19Thanks! Really appreciate it!