XanMag wrote:If I understand this correctly, here is a solution. It worked for me.
<object name="container within a container">
<inherit name="editor_room" />
<object name="table2">
<inherit name="editor_object" />
<inherit name="surface" />
<alias>table</alias>
<look>It's a typical table. Nothing special.</look>
<feature_container />
<hidechildren />
<listchildren />
<object name="makeup kit">
<inherit name="editor_object" />
<inherit name="container_limited" />
<alias>make-up kit</alias>
<look>It's a make-up kit. It looks like it can be opened.</look>
<feature_container />
<isopen type="boolean">false</isopen>
<hidechildren />
<listchildren />
<maxobjects type="int">5</maxobjects>
<containerfullmessage>It's full of stuff already.</containerfullmessage>
<containermaxobjects>It's full of stuff already.</containermaxobjects>
<alt type="stringlist">
<value>make up kit</value>
<value>makeup kit</value>
</alt>
<object name="red lip stick">
<inherit name="editor_object" />
<look>It's red!</look>
</object>
<object name="blush">
<inherit name="editor_object" />
<look>It's blush!</look>
</object>
<object name="concealer">
<inherit name="editor_object" />
<look>It's concealer! Cover those ugly pores!</look>
</object>
<object name="tweezers">
<inherit name="editor_object" />
<look>They are tweezers. Pluck away, unibrow!</look>
</object>
<object name="eyeliner">
<inherit name="editor_object" />
<look>Ooooh. Add some color to those eyes, pasty!</look>
</object>
</object>
</object>
Sorry. I was too lazy to make the objects 'takeable' or 'usable' but that should be easy enough.
It sounds like you probably were over complicating things (assuming I understood you right!). I just used a surface container for the table with a limited container (as the 'child' of the table) for the make-up kit and ticked both boxes to make them hide their 'children' until looked at or opened. Let me know if this works for you!
I've no experience with the raw code.
However, this is the code I did find for the table and its' 'children'.
<object name="Table">
<inherit name="editor_object" />
<inherit name="surface" />
<alt type="stringlist">
<value>Coffeetable</value>
</alt>
<alias>Table</alias>
<look><![CDATA[It has a huge stack of magazines, and your {command:Makeup} kit.<br/>{once:The last magazine you read is still propped open to the centerfold which features a close-up look of the inside of the featured model's stomach interior; it also has cum stains from where you squirted while masturbating the previous evening.}]]></look>
<feature_container />
<displayverbs type="stringlist">
<value>Look at</value>
<value>Take</value>
</displayverbs>
<makeup type="script">
MakeObjectVisible (Makeup)
</makeup>
<hidechildren />
<listchildren type="boolean">false</listchildren>
<listchildrenprefix>It contains</listchildrenprefix>
<object name="Makeup">
<inherit name="editor_object" />
<inherit name="container_limited" />
<scenery type="boolean">false</scenery>
<usedefaultprefix />
<look><![CDATA[This is your makeup kit. You have a lot of makeup, but then again, you're a girl so this isn't abnormal.<br/><br/>What is abnormal is how many different tubes of lipstick are in here.]]></look>
<feature_container />
<hidechildren />
<listchildren />
<listchildrenprefix>It contains</listchildrenprefix>
<transparent type="boolean">false</transparent>
<object name="Red Lipstick">
<inherit name="editor_object" />
<scenery />
<look>It is a bold red hue. This one has been used a lot, especially on those nights when you're having a sex party.</look>
<displayverbs type="stringlist">
<value>Look at</value>
</displayverbs>
<linkcolour>Red</linkcolour>
<apply type="script">
msg ("You uncap the lipstick, and with the mirror in your makeup kit, apply the red hue generously, thus your lips become as gorgeously red as your sex doll, Kelly's lips.")
if (RandomChance(35)) {
SetObjectFlagOn (Kelly, "Alive")
}
else {
if (RandomChance(65)) {
play sound ("swallow1.wav", true, false)
}
}
</apply>
</object>
<object name="Pink Lipstick">
<inherit name="editor_object" />
</object>
<object name="Purple Lipstick">
<inherit name="editor_object" />
</object>
<object name="Blue Lipstick">
<inherit name="editor_object" />
</object>
<object name="Black Lipstick">
<inherit name="editor_object" />
</object>
</object>
</object>
I of course, haven't finished the children of Makeup because I wish to make the Table allow me to use the Makeup object first.
Also, yes, there is another object involved, but I've already gotten Kelly, the sex doll/flesh-hungry living mannequin to work.