So I finally ran out of space with z-code, probably due to how ridiculously chunky my code is. The problem though is that I use a z-code compass (swiped from Emily Short’s Bronze). I searched for a way to program the same compass, only in glulx and found this, emshort.wordpress.com/2007/12/17 … compasses/. However, she has since taken down the example, redirecting people to something vaguely referred to as “Erik Temple’s graphical extensions”. The problem is that one, I have no idea which one she’s referring to (though I think it might be Glulx Status Window Control?) and two, if Glulx Status Window Control is what she’s referring to, I have no idea how to use it at all or Glulx Text Effects in general. From flailing about randomly, I think I have the compass itself working, but the red for unmarked areas never happens. I’m also pretty sure that half of this code is just ignored by Inform and completely contradictory.
[code]Include Glulx Text Effects by Emily Short.
Include Menus by Emily Short.
Include Basic Help Menu by Emily Short.
Include Flexible Windows by Jon Ingold.
Include Glulx Status Window Control by Erik Temple.
Include Basic Screen Effects by Emily Short.
When play begins:
open the status window.
Table of User Styles (continued)
style name justification obliquity indentation first-line indentation boldness fixed width relative size glulx color
special-style-2 left-right-justified italic-obliquity 15 -4 light-weight proportional-font 0 g-red
The Street is a room. Not The Street is a room. Not The Street is north of The Street.
To turn screen black:
set the text color of the status window to g-white;
set the background color of the status window to g-white;
open status window;
leave space;
To turn screen white:
set the background color of the status window to g-white;
set the text color of the status window to g-black;
open status window;
leave space.
To leave space:
say paragraph break;
say paragraph break;
say paragraph break;
say paragraph break.
Table of Fancy Status
left central right
" [if in darkness]Darkness[otherwise][location][end if]" “” “[top rose]”
" [regional area]" “” “[middle rose]”
" [turn count]" “” “[bottom rose]”
To say regional area:
if in darkness, rule succeeds;
if location is in The Not Street, say “Your House”;
if location is in The Street, say “The Street”.
When play begins:
open the status window.
To say red reverse:
say second custom style.
To say black reverse:
set the background color of the status window to g-black.
To say white reverse:
set the background color of the status window to g-white.
Definition: a room is discernible:
if it is lit, yes;
if in darkness, no;
yes.
To say top rose:
let place be the room up from the location;
if the place is a discernible room, say "[if the place is unvisited][red reverse][end if]U "; otherwise say " "; [2]
let place be the room northwest from the location;
if place is a discernible room, say “[if the place is unvisited][red reverse][end if]NW”; otherwise say " ";
let place be the room north from the location;
if place is a discernible room, say "[if the place is unvisited][red reverse][end if] N "; otherwise say " ";
let place be the room northeast from the location;
if place is a discernible room, say “[if the place is unvisited][red reverse][end if]NE”; otherwise say " ".
To say middle rose:
say " ";
let place be the room west from the location;
if place is a discernible room, say "[if the place is unvisited][red reverse][end if]W "; otherwise say " ";
say " . ";
let place be the room east from the location;
if place is a discernible room, say “[if the place is unvisited][red reverse][end if] E”; otherwise say " ".
To say bottom rose:
let place be the room down from the location;
if the place is a discernible room, say "[if the place is unvisited][red reverse][end if]D "; otherwise say " ";
let place be the room southwest from the location;
if place is a discernible room, say “[if the place is unvisited][red reverse][end if]SW”; otherwise say " ";
let place be the room south from the location;
if place is a discernible room, say "[if the place is unvisited][red reverse][end if] S "; otherwise say " ";
let place be the room southeast from the location;
if place is a discernible room, say “[if the place is unvisited][red reverse][end if]SE”; otherwise say " ".
Rule for constructing the status line:
fill status bar with Table of Fancy Status;
open status window;
rule succeeds.[/code]
I don’t even know where to start. Does anyone have any advice or a site I can go to to see how to use color change in glulx or something? I read all the documentation, but I’m still hopelessly lost.