Instead of Going

version 3/071115 by Mikael Segercrantz

  • Home page
  • Beginning
  • Previous
  • Next

  • Example: * A Short Way Out 1 - A basic example of how to use custom can't go messages

        "A Short Way Out"

        Include Instead of Going by Mikael Segercrantz.

        The Kitchen is a room. "Your basic kitchen, with all the required appliances."

        The Hallway is a room. "A large hallway, leading north towards the sitting room. The door outside is nearby."
        The hallway is east of the kitchen. The can't go north of the hallway is "You have no wish to meet your in-laws at the moment."

        Outside from the hallway is a room called Outside the House. The description of outside the house is "Finally, you've made it outside!".

        Every turn:
            if the location is outside the house, end the game in victory.

        test me with " w / e / n / e / out ".