Telephones

version 1 by George Tryfonas

  • Home page
  • Beginning
  • Next



  • Documentation


    The Telephones extension is a slight reworking of the "Four Cheeses" sample from the manual. It provides a new kind called telephone, which has two properties: an owner and a calling number.

        The office phone is a telephone. The owner of the office phone is John. The calling number of the office phone is 1234.

    A new action called "dialling" is created and a new command "dial" (or "call" or "phone" or "telephone") is provided to the player. The player may optionally specifiy the telephone on which to place the call:

        > call 1234
        > dial 1234 on the office phone
        > phone 1234 using the office phone
        > telephone 1234

    If the telephone is carried by the player then they may move around the map while still on the line. A telephone which is fixed in place is meant to be a landline while a portable phone is meant to be a mobile. We should provide appropriate descriptions to help the player distinguish that:

        The office phone is a telephone which is scenery. The description is "The office phone sits on your desk. A long cord connects it to the phone plug on the back wall." The player carries a telephone called the cellphone. The description is "Your trusty cellphone. It's a vintage model."

    We provide a Hanging up action which is nounless. The action itself decides which phone to hang up since we only support one connection at a time.

    To achieve the effect of making a connection, we bring the connected party into the player's scope. This means that we are free to choose whichever strategy is more appropriate to implement conversing with it, as if it were in the player's presence.

    Finally, we provide the Table of Misdialled Numbers as a way of printing a customised message when the player dials a (well known) number which they are not meant to use.

        Table of Misdialled Numbers (continued)
      number  retort  
      1471  "The number that last called you is not available."  
      999  "In this country, making prank calls to the police is frowned upon."