I’ve done some googling to see what’s going on here, and obviously Glulx needs to be more complex than Z-machine for setting this sort of thing up.
But I wanted to be able to add colors to the cluing for a post-comp version of Shuffling Around. Below represents my first try. Apparently you only get two custom styles as things stand, and I wasn’t able to add a third that would register. What am I doing wrong as a total Glulx text effects noob? The below prints the text ‘special-style-3’ instead of changing text.
Thanks again!
[code]“colors” by Andrew Schultz
include Glulx Text Effects by Emily Short.
Table of Common Color Values (continued)
glulx color value assigned number
g-pure-blue 255 [== $0000FF]
g-pure-green 65280 [== $00FF00]
g-pure-red 16711680 [== $FF0000]
Table of User Styles (continued)
style name justification obliquity indentation first-line indentation boldness fixed width relative size glulx color
special-style-1 – -- – -- – -- – g-pure-red
special-style-2 – -- – -- – -- – g-pure-green
special-style-3 – -- – -- – -- – g-pure-blue
special-style-3 is a special-style.
when play begins:
initialize user styles;
room 1 is a room. “This is a colorless room that contains nothing [first custom style]red[roman type] or [second custom style]green[roman type] or [special-style-3]blue[roman type].”
every turn:
say “[blue]”;
section blues (for Glulx only)
to say blue:
say “[special-style-3]blue[roman type]”
section blues (for Z-Machine only)
[provided only to show what I’d do with z-machine]
to say blue:
say “[blue letters]blue[roman type]”;[/code]