Containers / Objects inside them / "known" attribu

Post a reply


This question is a means of preventing automated form submissions by spambots.
Smilies
:smile: :sad: :eek: :shock: :cool: :-x :razz: :oops: :evil: :twisted: :wink: :idea: :arrow: :neutral: :mrgreen:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Containers / Objects inside them / "known" attribu

by Ice Cream Jonsey » Sat Apr 24, 2004 5:54 pm

Meant to say "thanks" for this -- didn't get a chance to try it out until now, though. Thanks!

The quiet attribute

by Kent » Thu Apr 01, 2004 11:15 pm

Really the 'quiet' attribute is supposed to be an initial-state sort of thing. Like, if you have a garbage can that is quiet, you don't get its contents until you look in it, after which the quiet attribute is (by default) cleared and the contents are from then on listed as normal.

Now, if you're trying to suppress the water from actually appearing as a normal child object, you might do one of two things:

1. Don't explicitly put the water 'in' the container but instead use a found_in property on the water object. This way it's not "in" the object tree as a child of the container so the listing routine doesn't list it.

or

2. Meddle with the container's list_contents property. This is a little trickier and possibly overkill, but something to try if for whatever reason (1) doesn't cut it.

Containers / Objects inside them / "known" attribu

by Ice Cream Jonsey » Thu Apr 01, 2004 10:49 pm

Say, anyone know how to deal with the following?

I have a container. It's got the following attributes:

is container, enterable, quiet, hidden, transparent

I have an object that is in the container. It's actually "water." I gave it the attribute known because I want people to be able to do the following:

o Walk into a room
o See an object that would obviously contain water
o type in >get some water
o be given the water

But as it stands now, my container object keeps the water from being refered to, even though the attribute known has been given to the water.

Any advice?


(Note: I kept the object an "object" and not "scenery" because I wanted it to be enterable, and my understanding is that scenery being enterable causes some problems. But I can't remember what problems, as I didn't document it. Maybe it's all in my head. But ultimately, I don't want the contents of the container object listed in the room's description, but I do want them listed when someone >LOOKS at the object... If that clarifies things at all.)

Top