Category:Smell restrictions (Example)

From IFWiki

Premise

There are two locations: Street and Sewer. You can go down from Street to Sewer, and up again without restriction. I don't care about the room descriptions. They can be "You are in a street. The sewer is below you." and "You are in a sewer. The street is above you." respectively.

There are three objects: flower, sewage, and spacesuit. The flower and spacesuit begin at Street and are takeable. The spacesuit is wearable. The sewage is in the Sewer and is not takeable.

If you're wearing the spacesuit, SMELL and SMELL object should say "You can't smell anything while wearing the spacesuit." for all objects except yourself and the spacesuit.

If you're not wearing the spacesuit, but you are in the Sewer, SMELL and SMELL SEWAGE should say "It reeks." If you try to smell anything else, it should say "The disgusting reek of the sewage overwhelms your nose. You can't smell anything else."

If you're inside the spacesuit or not near the sewage, SMELL SPACESUIT should say "You smell nothing unusual about the spacesuit."

If you're neither in the spacesuit nor near the sewage, SMELL FLOWER should say "It smells wonderful."

Feel free to be creative what SMELL ME does.

Example Transcript

A possible transcript (feel free to be more creative with the responses, this is taken from the Inform 7 sample).

Street
You are in a street. The sewer is below you.

You can see a flower and a spacesuit here.

> smell
You pick up a faint odour from below.

> take flower
Taken.

> smell it
It smells wonderful.

> take suit
Taken.

> smell it
You smell nothing unexpected.

> d

Sewer
You are in a sewer. The street is above you.

You can see some sewage here.

> smell
The disgusting reek of the sewage overwhelms your nose. You can't smell anything else.

> smell sewage
It reeks.

> smell flower
The disgusting reek of the sewage overwhelms your nose. You can't smell anything else.

> wear suit
You put on the spacesuit.

> smell
You can't smell anything while wearing the spacesuit.

> smell sewage
You can't smell anything while wearing the spacesuit.

> smell flower
You can't smell anything while wearing the spacesuit.

> smell suit
You smell nothing unexpected.

> smell me
You smell nothing unexpected.