Part 3 - Examining, aka Smelling
Instead of examining something:
if the noun is touchable:
try smelling the noun;
else:
try staring at the noun.
After smelling:
say "Sniffing the air, you detect ";
let temp list be a list of things;
let finished list be a list of things;
repeat with I running from 1 to 4:
let chosen thing be a random thing in the location;
if the chosen thing is not listed in the temp list:
add the chosen thing to the temp list;
repeat with target thing running through the temp list:
say "[odor of the target thing] from [the target thing]";
add target thing to finished list;
let the remaining count be (the number of entries in the temp list minus the number of entries in the finished list);
if the remaining count is 0:
say ".";
else if the remaining count is 1:
say "; and ";
else:
say "; ";
After smelling something:
say "[The noun] [smell] like [odor of the noun]."