Items with hidden compartments

Started by 650Booger, August 04, 2016, 11:51:06 AM

Greetings awesome people.  I was wondering if it would be possible to mastercraft items with hidden compartments.  for example, say you are a master weapons crafter, can you mastercraft a dagger, that you can unscrew the bottom of the hilt revealing a little chamber that can hold something very small?  (note, this is hypothetical and NOT the actual design I have in mind).  the desc would contain no indication that this chamber existed, and only the mastercrafter (and those he told) would know about it.

side note, if this could indeed by created, would NPC gate guards look in it when passing through the gate?
"Historical analogy is the last refuge of people who can't grasp the current situation."
-Kim Stanley Robinson

In your specific example this isn't possible for code reasons.  A container is a type of object.  A weapon is a type of object.  In the code implementation, an object can only be one type.

There are certain pants and other bits of clothing in the game that do have pockets and so forth, of course.  These are set to be container objects.  But if you were to make a "dagger" that was actually a container, you wouldn't be able to fight with it.

Hope that makes sense.