Bronze

An interactive fiction by Emily Short (2006) - the Inform 7 source text

Home page

Contents
Previous
Next

Complete text
Section 2 - Smells

A thing has some text called scent. The scent of a thing is usually "nothing".

The block smelling rule is not listed in any rulebook.

Carry out smelling something:
    say "From [the noun] you smell [scent of the noun]."
    
Instead of smelling a room:
    if a scented thing can be touched by the player, say "You smell [the list of scented things which can be touched by the player].";
    otherwise say "The place is blissfully odorless."
    
Definition: a thing is scented if the scent of it is not "nothing".

Before printing the name of something scented while smelling a room: say "[scent] from the "