I would like to selectively hide (but allow interaction with) a specific thing in a container. Here is an example below. It will always remain hidden but usable. It will never leave the container.
I considered making it a part of the chest, but I want it to act as a container inside a container. For example. when the chest is closed, I do not want to allow access the the secret compartment.
[code]“Magic Chest”
The stage is a room
A container called the magic chest is in the stage. It is open, openable. The carrying capacity is 2. The description is “A small wooden chest.” A container called the secret compartment is in the chest. It is closed, openable. The carrying capacity is 1.
A thing called a ball is in the stage.
Test me with “take chest / put ball in chest / x chest / i / open secret / put ball in secret / close secret / x chest / i / close chest / open secret”[/code]
This is the output…
>[1] take chest
Taken.
>[2] x chest
A small wooden chest.
In the magic chest is the secret compartment.
>[3] i
You are carrying:
the magic chest (open)
the secret compartment (closed)
>[4] put ball in chest
(first taking the ball)
You put the ball into the magic chest.
>[5] x chest
A small wooden chest.
In the magic chest are a ball and the secret compartment.
>[6] i
You are carrying:
the magic chest (open)
a ball
the secret compartment (closed)
>[7] open secret
You open the secret compartment.
>[8] put ball in secret
(first taking the ball)
You put the ball into the secret compartment.
>[9] close secret
You close the secret compartment.
>[10] x chest
A small wooden chest.
In the magic chest is the secret compartment.
>[11] i
You are carrying:
the magic chest (open)
the secret compartment (closed)
>[12] close chest
You close the magic chest.
>[13] open secret
You can't see any such thing.
This is what I WHAT the output to look like…
>[1] take chest
Taken.
>[2] x chest
A small wooden chest.
>[3] i
You are carrying:
the magic chest (open but empty)
>[4] put ball in chest
(first taking the ball)
You put the ball into the magic chest.
>[5] x chest
A small wooden chest.
In the magic chest is a ball.
>[6] i
You are carrying:
the magic chest (open)
a ball
>[7] open secret
You open the secret compartment.
>[8] put ball in secret
(first taking the ball)
You put the ball into the secret compartment.
>[9] close secret
You close the secret compartment.
>[10] x chest
A small wooden chest.
>[11] i
You are carrying:
the magic chest (open but empty)
>[12] close chest
You close the magic chest.
>[13] open secret
You can't see any such thing.
Any recommendations as to how to do this will be much appreciated.