This conversation started in another topic, but it's worth a separate thread. Bags of holding, gem bags, basically "containers" (putting this in quotes to distinguish from proper containers in areas) must come with an STO file. In the properties they have what I take to be a hard-coded button, "Open container." I'd like to know whether it's possible to change that button to accept special conditions or checks or to make it lead somewhere else instead of the inside of the STO? Probably not. Is it possible to add another button, then, the way we can add one to conversables? Of course, there isn't much point if the first button is always there and accepts no lock or cypher.
I might opt for containers that are basic chests and sacks, not weightless or magical, and are conversable instead. Then it may be possible to "lock" access to their STO until conditions in the dialogue are met.