i can't see a thing in here.

Hi! My player is in a dark room, but can still bump around and examine things.

i followed these instructions:

inform7.com/learn/man/WI_12_19.html

Unfortunately, many of the documentation examples i’ve been trying don’t seem to work, including this one.

Here’s my implementation of it:

[spoiler][code]“Failed Night Vision” by test

The Darkroom is a dark room. The description is “This is a photo studio darkroom.” The

The grue is a thing in the Darkroom.

Visibility rule when in darkness:
if examining the grue:
say “Despite the darkness, you notice a grue sitting in the corner.”;
there is sufficient light;
there is insufficient light.

test me with “x grue”.[/code][/spoiler]

i can’t see any such thing as a grue.

Here’s another, slightly different attempt:

[spoiler][code]“More Failed Night Vision” by test

The Darkroom is a dark room. The description is “This is a photo studio darkroom.” The

The grue is a thing in the Darkroom.

Visibility rule when examining the grue while in darkness:
say “Despite the darkness, you notice a grue sitting in the corner.”;
there is sufficient light;
there is insufficient light.

test me with “x grue”.[/code][/spoiler]

What’s gone wrong?

It looks like the problem is that the grue is not in the scope of the player, so the player doesn’t “know” the grue exists and can’t interact with it. (The example in the manual you linked regarding “examining the book” only works because the player is holding the book, so the player knows it exists so examining works.)

This chapter of the manual talks about scope, with a section on darkness.

Thanks for your help! Forest for the trees - i was so focused on the sample code that i missed the line about possession.