Login
Remember
IF Answers
Ask a Question

# 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])".

- inform7

## 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.

## Related questions

- Using the Flexible Windows extension, how can I depict a scaled image in my graphics window?
- Inform 7: Multiple instances of a kind of thing where some (but not all) change properties
- How can I have a colon as part of a room name?
- How can I modify or create new status panes?
- How do I display the full / initial room description when the player looks?

...