"A testcase"

[Copied from Writing with Inform, section 27.7]
When play begins (this is the run property checks at the start of play rule):
repeat with item running through things:
if description of the item is "":
say "[item] has no description."

Laboratory is a room.

[This works, but produces a runtime error at startup.]

Inside the Laboratory is an unbreakable beaker.
The description of the beaker is
"A chipped beaker labelled '[printed name]'."


[This works as expected.]
[
Inside the Laboratory is an unbreakable beaker.
The description of the beaker is
"A chipped beaker labelled '[noun]'."
]

[This works, but produces a runtime error at startup.]
[
A dial is a kind of thing.
A dial has a number called the current value.
The current value of a dial is usually 5.
The description of a dial is usually
"The mark is turned to point at [current value].".

Inside the Laboratory is a dial called the brass dial.
]

[This still doesn't work.]
  • In transit

    Passing the source text to the compiler
  • Inform 7

    Turning the Inform 7 source text into intermediary Inform 6 code
  • Inform 6

    Compiling the intermediary Inform 6 code into a playable game file
  • Results

    Collecting information about the generated files and resources
  • Finished

Creating snippets

Write your code with the editor and test it by pressing the "Go" button. When you're ready, press the "Share" button in the main menu to publish the snippet and get a shareable link.

The standard library is included automatically and all the extensions in the Public Library are available.

The code for one snippet can contain at most 12,000 characters. Standard libraries and extensions are not counted in the limit.

You can't edit or remove a snippet after publishing it, but you can always create a new snippet based on the previous one.

Tip: you can also share code that doesn't compile if you want to provide an example when asking for help online.


Creating snippets

Write your code with the editor and test it by pressing the "Go" button. When you're ready, press the "Share" button in the main menu to publish the snippet and get a shareable link.

The standard library is included automatically and all the extensions in the Public Library are available.

The code for one snippet can contain at most 12,000 characters. Standard libraries and extensions are not counted in the limit.

You can't edit or remove a snippet after publishing it, but you can always create a new snippet based on the previous one.

Tip: you can also share code that doesn't compile if you want to provide an example when asking for help online.


Privacy Notification

We collect anonymous usage statistics and error logs. Read more and adjust your settings on the privacy policy page. You can access the page later from the settings menu in the editor.