Instead of Going

version 3/071115 by Mikael Segercrantz

  • Home page
  • Beginning
  • Previous
  • Next



  • Example: * A Short Way Out 3 - Still more elaborated, this time smarter exit listing and overridden default messages for the lister.

        "A Short Way Out"

        Include Instead of Going by Mikael Segercrantz.

        Use smarter can't go to.

        No way out is "There's currently no way out from here."
        Only one exit is "The only exit you can see is".
        Multiple exits is "You can see many exits, namely".

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