I think I have the supporter problem solvedish. You only automatically get the contents of scenery supporters anyway, thanks to the “describe what’s on scenery supporters in room descriptions rule,” which the documentation describes as controversial and which might not even be in 6E – I can’t remember. Anyway, the way the rule was written, I seemingly had to drop the code into it, and use the resulting rule instead of the preexisting rule. The result is not pretty; someone else may be able to do better.
Big wodge of code below the spoiler tag; it’s in 5Z, again.
[spoiler][code]“Potty Mouth”
The bathroom is a room.
The toilet is a closed openable container in the bathroom. “[toilet status].”. The description is “[toilet status].”. It is fixed in place. Understand “seat/lid/bowl” as the toilet.
A container can be viewed or unviewed. A container is usually unviewed. A supporter can be viewed or unviewed. A supporter is usually unviewed.
To say toilet status:
say “The toilet lid is [if the toilet is open]up[otherwise]down[end if]”
A toothbrush is in the toilet. “The end of a toothbrush is sticking out of the toilet drain. Thankfully, there’s no water in the toilet.”
A rubber ducky is in the toilet. “There’s a rubber ducky in the toilet, too.”
A cardboard tube is in the toilet.
Report an actor opening a container:
if the toilet is unviewed:
repeat with item running through every thing in the noun:
if item provides the property initial appearance:
say "[initial appearance of item] ";
otherwise:
say “[An item] is in [the noun].”;
now the noun is viewed;
rule succeeds;
otherwise:
continue the action.
The kitchen is west of the bathroom. A counter is in the kitchen. The counter is scenery. Some shards are on the counter. “Someone must have been clumsy or angry, because the shards of a broken bowl are scattered over the counter.” A glass is on the counter.
For printing a locale paragraph about a thing (called the item)
(this is the complex describe what’s on scenery supporters in room descriptions rule):
if the item is not undescribed and the item is scenery and the item does not enclose the player:
set pronouns from the item;
if a locale-supportable thing is on the item:
[here’s the start of the new stuff]
if the item is unviewed:
repeat with possibility running through things on the item:
if possibility is not mentioned:
if the possibility provides the property initial appearance:
say “[initial appearance of possibility]”;
say paragraph break;
otherwise:
say “[A possibility] is on [the item].”;
now the item is viewed;
[what’s below this is the standard rule again]
otherwise:
repeat with possibility running through things on the item:
now the possibility is marked for listing;
if the possibility is mentioned:
now the possibility is not marked for listing;
increase the locale paragraph count by 1;
say "On [the item] ";
list the contents of the item, as a sentence, including contents,
giving brief inventory information, tersely, not listing
concealed items, prefacing with is/are, listing marked items only;
say “.[paragraph break]”;
continue the activity.
The describe what’s on scenery supporters in room descriptions rule is not listed in any rulebook.
test me with “open lid/close lid/open lid/w/ look”.[/code][/spoiler]
BTW, when you open a viewed container, the “report an actor opening” rule falls through to the “repeat any newly visible interior” rule that Ron mentioned. It was because that rule was firing that I did it as a “report an actor opening” rule.
I haven’t been able to figure out how to do this when walking into a room with a transparent or open container.