Coded doors?

Hey everyone.

Just wondering how i make a code locked door. What i want to do is make a door with a keypad (Which may or may not be a separate object, i don’t care). I want the door to only unlock once the player enters a code (If it matters, i want said code to be ‘1379’)

I’m pretty much a beginner, so any help is apriciated. Thanks in advance :slight_smile:

Example 287 in the Inform documentation talks about spinning a safe to a particular number in order to unlock it. Substituting “spin” for “enter” or “type”, you’d have about the same thing.

Search for that example in section 16.6, or search directly for it under the name “safety”.