Skip to content

About Liquids Contents #49

Description

@tajmone

Ciao Annsi,

I have a question about liquids. I've noticed that in lib_classes.i their header is thus declared:

  CONTAINER
    HEADER "In" SAY THE THIS. "you see"
    ELSE "There is nothing in" SAY THE THIS. "."

But I also noticed that neither room descriptions nor examining a liquid ever gets the HEADER text printed. I.e., although liquids are not OPAQUE CONTAINERS, it seems you can't get a list of whatever is inside them.

The verbs examine and look_in, implemented on the liquid class don't seem to refer to the liquid's HEADER either:

  VERB examine
    DOES ONLY
      IF vessel OF THIS <> null_vessel
        THEN
          IF vessel OF THIS IS open
            THEN "You notice nothing unusual about" SAY THE THIS.
            ELSE "You can't, since" SAY THE vessel OF THIS.
              IF THIS IS NOT plural
                THEN "is"
                ELSE "are"
              END IF.
              "closed."
              -- Here we prohibit the player from examining
              -- a liquid when the liquid is in a closed container.
          END IF.
        ELSE "You notice nothing unusual about" SAY THE THIS. "."
      END IF.
  END VERB examine.


  VERB look_in
    DOES ONLY
      IF vessel OF THIS <> null_vessel
        THEN
          IF vessel OF THIS IS open
            THEN "You see nothing special in" SAY THE THIS. "."
            ELSE "You can't, since" SAY THE vessel OF THIS.
              IF THIS IS NOT plural
                THEN "is"
                ELSE "are"
              END IF.
              "closed."
              -- Here we prohibit the player from looking into
              -- a liquid when the liquid is in a closed container.
          END IF.
        ELSE "You see nothing special in" SAY THE THIS. "."
      END IF.
  END VERB look_in.

Why liquids with a null_vessel or an open vessel just say "You see nothing special in..."? Wouldn't a DESCRIBE or LIST statement be useful there?

I was thinking of a lake or swimming pool in which the player can throw object, and other actor can enter and swim, etc. How would descriptions and examination show the lake/pool contents?

Metadata

Metadata

Assignees

No one assigned

    Labels

    🧱 liquids 💧Issue relating to StdLib liquids💡 enhancementNew feature or request🕑 pending solutionStill looking for a solution to this problemquestionFurther information is requested

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions