O'Reilly logo

Creating Interactive Fiction With Inform 7 by Aaron A. Reed

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 7. Logic and Control

Many programming books begin with fundamentals like variables, loops, and math, but we’ve managed to make it through nearly half this book without them. Inform, designed for the highly specific purpose of creating interactive fictions, instead gives us high-level tools like actions, rulebooks, and text substitutions. Behind these tools hides a lot of low-level work. Putting something like [the list of closed windows] in a string of text causes variables to be mustered, lists to be created, loops to run, and grammatically correct output to be generated.

Usually, we needn’t be bothered with these details. But as your story grows in complexity, you’ll want more direct control over its internals. In this chapter, we’ll ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required