How can I modify all room names but NOT in the status bar?

0 votes
72 views
asked Jun 11 in Authoring by anonymous

I want add a list of exits after the room title but I don't want this to happen in the status line.

I know adding exits is hack. I'm gonna do it anyway!

Right now I have this, which changes it in the status line also:

After printing the name of a room:
    say " (exits:[exit list])".

2 Answers

0 votes
answered Jun 11 by bg (692 points)

I think you could do this:

After printing the name of a room while not constructing the status line:
commented Jun 12 by Joseph Geipel (207 points)
Watch out, though, that the exit list will still show up if a room name is ever printed elsewhere like in a "[list of visited rooms]". If you have room names mentioned like that in your game and need to keep the exit list only after the room description heading, you should consider adding a rule in the carry out looking rulebook after the room description heading rule. However, without significant adjustments, this will mean it will appear after all the "(on the bench)" as opposed to just after the room title, and it also won't affect the room title shown after UNDO or RESTORE.
0 votes
answered Jun 19 by AndrewS (250 points)

To fine-tune bg's answer and avoid Joseph Geipel's test cases, I think this should work:

After printing the name of a room while looking:
say " (exits: [list of viable directions])";

definition: a direction (called myd) is viable:
if the room myd of the location of player is nowhere, decide no;
decide yes;

If you need/don't need the exits in another bit of text containing the room name, you should be able to type RULES ON and see which rule fires before printing the room name.

This site is now closed.
As of 1st November 2015, this site is a read-only archive. For more information see the intfiction forum post

Welcome to IF Answers, a site for questions and answers about Interactive Fiction.

Technical questions about interactive fiction development tools such as Inform, Twine, Quest, QuestKit, Squiffy, Adrift, TADS etc. are all on-topic here.

Non-technical questions about interactive fiction are also on-topic. These questions could be about general IF design, specific games, entering the IF Comp etc.
...