how do i make it so a player can use a key on a locked door so they can get through?
Many methods but I use this...
It’s cheap but it’s easy especially if the door no longer needs to be visible. And why would it? It’s already open. Using doors as containers is a pain in the ass. Just an FYI.
Using doors as containers is a pain in the ass.
It is the expected way to do it, however, especially now that 'open' and 'close' are reserved, meaning the suggested first step above doesn't work in the latest version of Quest.
Another method would be:
This seems to work pretty well, though at the moment there does seem to be a problem if you try to close the door after going through it, using door.isopen = false
can't you use the 'openable' Object Type? (or, has this been removed in the most recent version of quest (I'm still using '550', before Pixie's improvements-to/development-work-with quest software/engine) ( http://docs.textadventures.co.uk/quest/attributes/openable.html )
but, you'd still have to handle the 'locking' stuff (you'd just have to add the built-in 'locked' Boolean Attribute, along with all the handling)
http://docs.textadventures.co.uk/quest/attributes/container_lockable.html
hmm... maybe you could use the 'surface' and 'container_lockable'... if not... then you got to implement the 'locking' stuff yourself (see the 'container_lockable link' above, along)