Senses

version 1 by ShadowChaser

  • Home page
  • Beginning
  • Previous
  • Next



  • Section 5 - Hearing

    A thing has some text called sound. The sound of a thing is usually "silence". A thing can be loud_sounding or soft_sounding. A thing is usually soft_sounding.

    The block listening rule is not listed in the check listening to rules.

    Carry out listening to something:
    say "From [the noun] you hear [the sound of the noun]."

    Instead of listening to a room:
        if a noisy thing can be touched by the player begin;
            repeat with item running through visible noisy things which can be touched by the player begin;
                say "Inside [the location of the player], From [the item] you hear [the sound of the item].";
            end repeat;
            repeat with item running through invisible noisy things which can be touched by the player begin;
    say "From somewhere inside [the location of the player] you hear [the sound of the item].";
            end repeat;
         else;
             say "Nothing of note.";
        end if.

    Definition: a thing is audible if the sound of it is not "silence".
    Definition: a thing is noisy if it is loud_sounding.