Senses

version 1 by ShadowChaser

  • Home page
  • Beginning
  • Previous



  • Section 6 - Automatically smelling and hearing

    After looking:
        if the odour of the location of the player is not "normal" begin;
            say "[The location of the player] smells [the odour of the location of the player].";
        end if;
    if a pungent thing can be touched by the player begin;
            repeat with item running through visible pungent things which can be touched by the player begin;
                say "Inside [the location of the player], [the item] smell[s] [the odour of the item].";
            end repeat;
            repeat with item running through invisible pungent things which can be touched by the player begin;
    say "Something in [the location of the player] smells [the odour of the item].";
            end repeat;
        end if;
        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;
        end if.
        
    Senses ends here.