How can I have a colon as part of a room name?

0 votes
44 views
asked Jun 30 in Authoring by One-armed Badger

I want to use a colon in the name of a room (e.g. Briefing room: Midday) but every time I7 sees the colon it assumes I want to provide a definition.

In Inform 6 there were certain characters substituted for others (such as the tilde for quotation marks to allow speech to be represented inside of a piece of text), so I'm guessing the answer lies along those lines.

I've looked in the General Index but can't find anything under 'colon', 'punctuation' or 'substitute'. Punctuation has a sub entry "apostrophe, meaning quotation mark" which again makes me think there's some other character I can use instead.

1 Answer

0 votes
answered Jun 30 by bg (692 points)
edited Jun 30 by bg

The printed name property can be used for this:

Briefing Room is a room. The printed name of Briefing Room is "Briefing Room: Midday".

This can also be changed during play, as in "ยง8.5. Change of properties with values" in the manual.

AFAIK, using an apostrophe for quotation marks will only work within a string. The printed name property allows you to treat the room name like a string, e.g. including conditions and text substitutions within the 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.
...