Tailored Room Description

version 10 by Emily Short

  • Home page
  • Beginning
  • Previous
  • Next



  • Section: Overriding the default for specific objects

    The entire protocol can be overwritten by providing a more particular rule for writing a paragraph about for specific items; so for instance
        
        Rule for writing a paragraph about a person (called dude):
            say "[The dude] is standing way too close to you."

    would print this sentence and omit all other results.

    The printing of an item's holder is managed by the disclosing exterior activity. We can change the way this is handled by writing a new rule for disclosing exterior of something. For instance:
        
        Rule for disclosing exterior of tripod:
            say "[The tripod] is perched awkwardly on [the holder of the tripod]. "

    Rules for disclosing exterior should ideally end with a period and a single space, in case the paragraph needs to continue thereafter.

    The printing of an item's contents is managed by the disclosing contents activity. We can change the way this is handled by writing a new rule for disclosing contents of something. For instance:

        Rule for disclosing contents of the vase when at least two things are in the vase:
            say "[The list of things which are in the vase] are crammed together into [if the vase is mentioned][the vase][otherwise][a vase][end if]. "

    Again, this rule should produce output ending in a period and space, allowing for further sentences to follow without pause.

    Tailored Room Descriptions also excludes from TAKE ALL any items currently being concealed by our concealment rules.