So my first game had no inventory, so I’m struggling to manage inventory now. The PC wears a uniform which has a pocket, and I want the contents of the pocket to show up in inventory, and I can’t make that happen.
The player wears a uniform. The description of the uniform is "A uniform.". The pocket is part of the uniform. The pocket is a container. The description of the pocket is "A small flat pocket, suitable only for carrying pieces of paper in." Something can be pocketable. Something is usually not pocketable. A note is here. It is pocketable. The description is "a note.". Check inserting something into the pocket: if the noun is pocketable: continue the action; now all things enclosed by the pocket are marked for listing; otherwise: say "That really won't work in the pocket, which is quite small and flat. It's really only suitable for carrying pieces of paper in."; stop the action.
I also tried
if the pocket encloses something: now all things enclosed by the pocket are marked for listing
I also tried
The pocket is the player's holdall, etc."
But no dice. Everything works and you can put the note in the pocket, but it doesn’t show up on taking inventory. And also, I can’t drop anything from the pocket, so I’ll need to make a special thing for that, and I just know there’s an easier, standard way to do this that I’m missing.
But of course the syntax eludes me and the documentation isn’t helping. What am I missing?