Create your own Interactive Fiction

ADRIFT - Interactive Fiction  
Home   |   News ADRIFT News RSS   |   Screenshots   |   Download   |   Games ADRIFT Reviews RSS   |   Forum   |   Help   |   Links
Welcome Guest Register | Login
Popular Games
Skybreak v. 1.4
The Fortress of Fear
Skybreak v 1.2
Lost Coastlines
The Lost Labyrinth of Lazaitch
the virtual human
The Dwarf of Direwood Forest
Classic Adventure
Starship Quest
The Lost Children
 
Latest Forum Posts
ParserComp 2024 site is up
HAPPY BIRTDAY RoozdenScoot!
Copyright limitations?
Search Function Not Working In Windows 11
errors
Forum site error
The Book of Jax - The Adventures of Alaric Blackmoon # 10
HAPPY BIRTHDAY DazaKiwi
HAPPY BIRTHDAY ralphmerridew
An' anuvver fing....
 
Latest Reviews
Classic Adventure
Private Eye
Roozden's Color Code Module
Wumpus Hunt
Lost Coastlines
The Lost Labyrinth of Lazaitch
October 31st (Post comp.)
The Euripides Enigma
AI
Hint System Library - Release 1

Make a donation

Cursor  Allow if possible font color changes within IF expression outputs

Issue Type: Status: Priority: Date Submitted: Votes:
Enhancement New Low Sun 19th Jun 2016 1 vote Vote Up Vote Down
 
Found in version: Last Updated: Completed in version: Date Completed: Track Changes:
5.0.35.3 Sat 29th Oct 2016 Log In
 
DazaKiwiSun 19th Jun 2016 10:01
Would it be possible to allow <font color="red">text</font> inside IF expressions outputs, eg
<# if(CharacterKey.Property.key = XYZ,"<font color="red">true text</font>","<font color="red">false text</font>")#>

Perhaps the color could be in single quotation marks 'red' to avoid conflict with the expression syntax.

I know you can use & inside an expression output, but it can be hard to get it right.

If what i am asking isn't possible because of the syntax, what about if the user writes it like the example above and the Dev auto-corrects it with adding the & and the "" in the right places to make it work. I don't know if that would be too difficult to implement?

 
saabieMon 20th Jun 2016 08:01
It does actually work if you don't put quotes around red, eg:
<# if(CharacterKey.Property.key = XYZ,"<font color=red>true text</font>","<font color=green>false text</font>")#>

It also works if you use a text override that replaces [RED] with <font color="red"> and then use [RED] in the expression:
<# if(CharacterKey.Property.key = XYZ,"[RED]true text</font>","<font color=green>false text</font>")#>
 
ice_wantedSat 29th Oct 2016 20:25
It also works if you use a backslash before the doublequotes that are inside the "quoted" expression. <# if(CharacterKey.Property.key = XYZ,"<font color=\"red\">true text</font>","<font color=\"green\">false text</font>")#>
© 2013 Campbell Wild. All rights reserved. | Contact the Webmaster