Kiwi
Suppose we want there to be some high shelves in our game, which the player can't get at unless he's standing on a prop of some kind. (This is a pretty hoary and over-used puzzle, but there may still be occasions when it becomes useful again.)
In order to resolve this, we want to set up a raised supporter kind. When something is on a raised supporter, it should be mentioned to the player only if the player is in the right position (i.e., standing on something) and otherwise omitted from the description entirely.
Note that here we don't continue the activity because we want to completely replace the normal behavior of describing what is on supporters.
Now we also need to prevent the player from interacting with things that are out of reach:
…or restoring things to the shelves while the player is in the wrong position…
And raised supporters shouldn't be searchable from the ground either:
Finally, we need to tackle the case where the player types GET ALL FROM SHELF, because we don't want to list the objects up there if the player can't even see them. We use a rule for deciding whether all includes in order to tell Inform not to consider items that can't be reached, and then we adjust the parser error so that it's a little more instructive than "There are none at all available!", which is what the response would otherwise be:
Test me with "x shelf / search shelf / get dodo / get all from shelf / stand on ladder / get all from shelf / search shelf / get off / put all on shelf / get all from shelf / stand on ladder / put all on shelf".
Ever since you ate that mysterious cake, you've been even shorter than usual.
The high shelf is above you.
You can see a step-ladder here.
>(Testing.)
>[1] x shelf
You can't see from down here.
>[2] search shelf
You can't see from down here.
>[3] get dodo
You can't reach from down here.
>[4] get all from shelf
Whatever might be up there, you can't see or reach from down here.
>[5] stand on ladder
You get onto the step-ladder.
>[6] get all from shelf
kiwi-green ball: Taken.
stuffed dodo: Taken.
>[7] search shelf
There is nothing on the high shelf.
>[8] get off
You get off the step-ladder.
Bottom of the Nursery
Ever since you ate that mysterious cake, you've been even shorter than usual.
The high shelf is above you.
You can see a step-ladder here.
>[9] put all on shelf
stuffed dodo: You can't reach from down here.
kiwi-green ball: You can't reach from down here.
>[10] get all from shelf
The high shelf is empty.
>[11] stand on ladder
You get onto the step-ladder.
>[12] put all on shelf
stuffed dodo: Done.
kiwi-green ball: Done.