Excluding one item on a supporter when you examine the supporter

I have a supporter with a description that changes if a certain item on it. I don’t have brackets around the item because it’s worded a little differently than the usual printed name.

Here’s an example:

Lab is a room.

A desk is a supporter in Lab. The description of the desk is "[If the old stapler is on the desk]A desk with that old broken stapler that you don't like sitting on it[otherwise]A desk[end if]."

An old stapler is on the desk.

A pencil is on the desk.

A book is on the desk.

Test me with "x desk".

When the player examines the desk, I want to show the main description, and then list the other things on the desk (the way they usually are when you examine a supporter), but I don’t want to list the stapler a second time.

What’s the best way to do this?

It’s possible the other items on the desk could also include supporters with items on top of those.

Do you want the stapler to be visible in the room description? Is the stapler meant to be taken?

In the situation I’m dealing with, the item isn’t going to move anymore once it’s on the supporter, but before then, it is portable.

And the supporter and the one item are mentioned in the room description as well.

You could make it part of the desk, rather than supported by the desk, once it’s in place.

(Heh: Mike was already typing that!)

2 Likes

If that’s the case, I’d just make the stapler part of the desk once the player puts it on the supporter (and rewrite the “if the old stapler is on the desk” condition to “if the desk incorporates the old stapler”). That way the stapler is there and can be interacted with, but doesn’t interact with the listing the contents of a supporter rules – you’d of course need to intercept attempts to take the stapler so you don’t get a default response that doesn’t make sense, but sounds like you’re doing that anyway to prevent the player from moving it once you put it there.

1 Like

Another route is something like

Rule for deciding the concealed possessions of the desk while examining the desk:
	if the particular possession is the stapler:
		decide yes;
	decide no;

But the stapler is the only thing on the desk, this gets you:

>x desk
A desk with the old stapler that you don’t like sitting on it.
On the desk is nothing.

This doesn’t look good for this example, but it might make sense for other circumstances. Or you could do further fiddling with the examine action.

Make the stapler scenery once it’s in on the desk?

(Edit: I see bg beat me to it.)

1 Like

Oh, I hadn’t thought of the part of the desk idea. I think at one point I may have tried saying something like “now the stapler is scenery,” but I wasn’t sure if that was allowed, and now I don’t remember if it worked.

1 Like

Ok, it seems like “now the stapler is scenery” works:

Lab is a room. The description is "Type JUMP to turn the stapler into scenery.".

The description of the desk is "[If the stapler is on the desk]A desk with that old broken stapler that you don't like sitting on it[otherwise]A desk[end if]."

A  desk is a supporter in Lab.

An old stapler is on the desk.

A pencil is on the desk.

A book is on the desk.

Instead of jumping:
	now the stapler is scenery;
	say "Now the stapler is scenery."

Test me with "x desk / jump / x desk".

Is that…allowed?

If it works it works, but test a bunch of cases to make sure it works. Can the player interact with the stapler individually? Do you have a response for if the player tries to take the stapler, other than That's fixed in place.? etc. etc.

In the WWI documentation, there is an example called “The Eye of the Idol” written by Emily Short (“A systematic way to allow objects in certain places to be described in the room description body text rather than in paragraphs following the room description, and to control whether supporters list their contents or not.”).

Maybe I misunderstand your target, but I use the technique suggested in this example very often to achieve exactly what you want.