{
  "version": "1.1",
  "name": "Door Opens Only After Reading a Note",
  "startRoom": "lesson_hall",
  "author": "TAGMaker",
  "description": "Read the archivist’s note to learn a phrase, then use the black door. Using the door before reading the note keeps it closed.",
  "playerAppearance": {
    "version": 1,
    "layout": "modern",
    "font": "sans",
    "colorScheme": "light",
    "textSize": 18,
    "lineHeight": 1.6,
    "readingWidth": 80,
    "quietReading": false,
    "mapMode": "discovered",
    "panels": {
      "inventory": true,
      "map": true,
      "objectives": true,
      "status": true,
      "words": true
    },
    "picture": {
      "visible": true,
      "fit": "contain",
      "focalX": 50,
      "focalY": 50
    },
    "commands": {
      "visible": true,
      "standard": [
        "look",
        "search",
        "inventory",
        "help"
      ],
      "custom": []
    },
    "words": []
  },
  "created": "2026-11-01T00:00:00.000Z",
  "modified": "2026-11-01T00:00:00.000Z",
  "files": [
    {
      "path": "rooms/lesson_hall.taml",
      "content": "room lesson_hall\n  blocked north: \"The black door is closed. Learn the phrase and use the door.\"\n  exit north: lesson_archive when: lesson_open\n  name: \"Archive Hall\"\n  description: \"A black door stands north. Read the archivist note, then use the black door.\"\n  dark: false\nend"
    },
    {
      "path": "rooms/lesson_archive.taml",
      "content": "room lesson_archive\n  exit south: lesson_hall\n  name: \"Archive\"\n  description: \"Shelves of records fill the archive. The hall is south.\"\n  dark: false\nend"
    },
    {
      "path": "objects/lesson_note.taml",
      "content": "object lesson_note\n  name: \"archivist note\"\n  description: \"The note is folded shut. Read it to learn the archivist’s phrase.\"\n  location: lesson_hall\n  takeable: true\n  use_give: true\n  weight: 0.1\nend"
    },
    {
      "path": "objects/lesson_door.taml",
      "content": "object lesson_door\n  name: \"black door\"\n  description: \"The black door has no keyhole. A voice asks for a phrase.\"\n  smart_description: \"{\\\"version\\\":1,\\\"parts\\\":[{\\\"type\\\":\\\"conditional\\\",\\\"id\\\":\\\"lesson_door_text\\\",\\\"when\\\":{\\\"kind\\\":\\\"flag_equals\\\",\\\"flag\\\":\\\"lesson_open\\\",\\\"value\\\":true},\\\"then\\\":\\\"The black door is already open.\\\",\\\"otherwise\\\":\\\"The black door is closed. Learn the phrase and use the door.\\\"}]}\"\n  location: lesson_hall\n  droppable: false\n  use_give: true\n  weight: 0.1\nend"
    },
    {
      "path": "objects/sample_field_journal.taml",
      "content": "object sample_field_journal\n  name: \"field journal\"\n  description: \"Use this journal when you have completed the recipe to record your success. You can also keep exploring before you finish.\"\n  location: inventory\n  aliases: [\"journal\"]\n  takeable: true\n  droppable: false\n  use_give: true\n  weight: 0.1\nend"
    }
  ],
  "story": {
    "version": 1,
    "states": [
      {
        "id": "lesson_read",
        "name": "read",
        "description": "Progress remembered by this recipe.",
        "type": "boolean",
        "initial": false
      },
      {
        "id": "lesson_open",
        "name": "open",
        "description": "Progress remembered by this recipe.",
        "type": "boolean",
        "initial": false
      }
    ],
    "rules": [
      {
        "id": "lesson_read_note",
        "name": "read note",
        "enabled": true,
        "trigger": {
          "kind": "object",
          "target": "lesson_note",
          "event": "custom:read"
        },
        "match": "all",
        "conditions": [],
        "actions": [
          {
            "kind": "state",
            "target": "lesson_read",
            "value": true
          },
          {
            "kind": "message",
            "value": "The note reads: Quiet minds open hidden doors. You remember the phrase."
          }
        ],
        "otherwise": "",
        "once": true,
        "repeatText": "The note reads: Quiet minds open hidden doors. You remember the phrase."
      },
      {
        "id": "lesson_open_door",
        "name": "open door",
        "enabled": true,
        "trigger": {
          "kind": "object",
          "target": "lesson_door",
          "event": "use"
        },
        "match": "all",
        "conditions": [
          {
            "kind": "state",
            "target": "lesson_read",
            "operator": "==",
            "value": true
          }
        ],
        "actions": [
          {
            "kind": "state",
            "target": "lesson_open",
            "value": true
          },
          {
            "kind": "message",
            "value": "You speak the phrase from the note. The black door unlocks."
          }
        ],
        "otherwise": "You do not know what to say. Read the archivist note first.",
        "once": true,
        "repeatText": "The black door is already open."
      },
      {
        "id": "sample_finish",
        "name": "Record the completed expedition",
        "enabled": true,
        "trigger": {
          "kind": "object",
          "target": "sample_field_journal",
          "event": "use"
        },
        "match": "all",
        "conditions": [
          {
            "kind": "state",
            "target": "lesson_open",
            "operator": "==",
            "value": true
          }
        ],
        "actions": [
          {
            "kind": "message",
            "value": "The remembered phrase has opened the archive. You record the result in your field journal. Your expedition is complete."
          },
          {
            "kind": "score",
            "value": 100
          },
          {
            "kind": "end",
            "value": "Your expedition is complete."
          }
        ],
        "otherwise": "Your expedition is not complete yet. Follow the room clues, then use the field journal to record your success.",
        "once": true
      }
    ]
  },
  "cookbookRecipes": [
    {
      "version": 1,
      "settings": {
        "instance": "lesson",
        "recipeId": "8-door-opens-only-after-reading-a-note",
        "choices": {
          "hall": {
            "existing": "",
            "name": "Archive Hall",
            "description": "A black door stands north. Read the archivist note, then use the black door."
          },
          "archive": {
            "existing": "",
            "name": "Archive",
            "description": "Shelves of records fill the archive. The hall is south."
          },
          "note": {
            "existing": "",
            "name": "archivist note",
            "description": "The note is folded shut. Read it to learn the archivist’s phrase."
          },
          "door": {
            "existing": "",
            "name": "black door",
            "description": "The black door has no keyhole. A voice asks for a phrase."
          }
        },
        "values": {
          "note": "The note reads: Quiet minds open hidden doors. You remember the phrase.",
          "success": "You speak the phrase from the note. The black door unlocks.",
          "failure": "You do not know what to say. Read the archivist note first.",
          "repeat": "The black door is already open.",
          "blocked": "The black door is closed. Learn the phrase and use the door."
        },
        "reuseRoutes": {}
      },
      "owned": [
        {
          "path": "files",
          "key": "rooms/lesson_hall.taml",
          "after": {
            "path": "rooms/lesson_hall.taml",
            "name": "lesson_hall.taml",
            "content": "room lesson_hall\n  blocked north: \"The black door is closed. Learn the phrase and use the door.\"\n  exit north: lesson_archive when: lesson_open\n  name: \"Archive Hall\"\n  description: \"A black door stands north. Read the archivist note, then use the black door.\"\n  dark: false\nend",
            "isDirty": true
          }
        },
        {
          "path": "files",
          "key": "rooms/lesson_archive.taml",
          "after": {
            "path": "rooms/lesson_archive.taml",
            "name": "lesson_archive.taml",
            "content": "room lesson_archive\n  exit south: lesson_hall\n  name: \"Archive\"\n  description: \"Shelves of records fill the archive. The hall is south.\"\n  dark: false\nend",
            "isDirty": true
          }
        },
        {
          "path": "files",
          "key": "objects/lesson_note.taml",
          "after": {
            "path": "objects/lesson_note.taml",
            "name": "lesson_note.taml",
            "content": "object lesson_note\n  name: \"archivist note\"\n  description: \"The note is folded shut. Read it to learn the archivist’s phrase.\"\n  location: lesson_hall\n  takeable: true\n  use_give: true\n  weight: 0.1\nend",
            "isDirty": true
          }
        },
        {
          "path": "files",
          "key": "objects/lesson_door.taml",
          "after": {
            "path": "objects/lesson_door.taml",
            "name": "lesson_door.taml",
            "content": "object lesson_door\n  name: \"black door\"\n  description: \"The black door has no keyhole. A voice asks for a phrase.\"\n  smart_description: \"{\\\"version\\\":1,\\\"parts\\\":[{\\\"type\\\":\\\"conditional\\\",\\\"id\\\":\\\"lesson_door_text\\\",\\\"when\\\":{\\\"kind\\\":\\\"flag_equals\\\",\\\"flag\\\":\\\"lesson_open\\\",\\\"value\\\":true},\\\"then\\\":\\\"The black door is already open.\\\",\\\"otherwise\\\":\\\"The black door is closed. Learn the phrase and use the door.\\\"}]}\"\n  location: lesson_hall\n  droppable: false\n  use_give: true\n  weight: 0.1\nend",
            "isDirty": true
          }
        },
        {
          "path": "objects",
          "key": "lesson_note",
          "after": {
            "id": "lesson_note",
            "name": "archivist note",
            "description": "The note is folded shut. Read it to learn the archivist’s phrase.",
            "article": "",
            "location": "lesson_hall",
            "aliases": [],
            "visible": true,
            "takeable": true,
            "droppable": true,
            "useGive": true,
            "container": false,
            "switchable": false,
            "edible": false,
            "drinkable": false,
            "wearable": false,
            "weapon": false,
            "weight": 0.1,
            "locked": false,
            "lockKey": "",
            "events": []
          }
        },
        {
          "path": "objects",
          "key": "lesson_door",
          "after": {
            "id": "lesson_door",
            "name": "black door",
            "description": "The black door has no keyhole. A voice asks for a phrase.",
            "article": "",
            "location": "lesson_hall",
            "aliases": [],
            "visible": true,
            "takeable": false,
            "droppable": false,
            "useGive": true,
            "container": false,
            "switchable": false,
            "edible": false,
            "drinkable": false,
            "wearable": false,
            "weapon": false,
            "weight": 0.1,
            "locked": false,
            "lockKey": "",
            "events": [],
            "smartProse": {
              "description": {
                "version": 1,
                "parts": [
                  {
                    "type": "conditional",
                    "id": "lesson_door_text",
                    "when": {
                      "kind": "flag_equals",
                      "flag": "lesson_open",
                      "value": true
                    },
                    "then": "The black door is already open.",
                    "otherwise": "The black door is closed. Learn the phrase and use the door."
                  }
                ]
              }
            }
          }
        },
        {
          "path": "mapRooms",
          "key": "lesson_hall",
          "after": {
            "id": "lesson_hall",
            "name": "Archive Hall",
            "description": "A black door stands north. Read the archivist note, then use the black door.",
            "reentryEnabled": false,
            "reentryDesc": "",
            "hint": "",
            "dark": false,
            "roomType": "regular",
            "x": 100,
            "y": 100,
            "width": 160,
            "height": 64,
            "color": "#000000",
            "blockedDescriptions": {
              "north": "The black door is closed. Learn the phrase and use the door."
            }
          }
        },
        {
          "path": "mapRooms",
          "key": "lesson_archive",
          "after": {
            "id": "lesson_archive",
            "name": "Archive",
            "description": "Shelves of records fill the archive. The hall is south.",
            "reentryEnabled": false,
            "reentryDesc": "",
            "hint": "",
            "dark": false,
            "roomType": "regular",
            "x": 320,
            "y": 100,
            "width": 160,
            "height": 64,
            "color": "#000000",
            "blockedDescriptions": {}
          }
        },
        {
          "path": "mapExits",
          "key": "lesson_route_door",
          "after": {
            "id": "lesson_route_door",
            "fromRoom": "lesson_hall",
            "toRoom": "lesson_archive",
            "direction": "north",
            "locked": false,
            "when": "lesson_open"
          }
        },
        {
          "path": "mapExits",
          "key": "lesson_route_return",
          "after": {
            "id": "lesson_route_return",
            "fromRoom": "lesson_archive",
            "toRoom": "lesson_hall",
            "direction": "south",
            "locked": false
          }
        },
        {
          "path": "manifest.story.states",
          "key": "lesson_read",
          "after": {
            "id": "lesson_read",
            "name": "read",
            "description": "Progress remembered by this recipe.",
            "type": "boolean",
            "initial": false
          }
        },
        {
          "path": "manifest.story.states",
          "key": "lesson_open",
          "after": {
            "id": "lesson_open",
            "name": "open",
            "description": "Progress remembered by this recipe.",
            "type": "boolean",
            "initial": false
          }
        },
        {
          "path": "manifest.story.rules",
          "key": "lesson_read_note",
          "after": {
            "id": "lesson_read_note",
            "name": "read note",
            "enabled": true,
            "trigger": {
              "kind": "object",
              "target": "lesson_note",
              "event": "custom:read"
            },
            "match": "all",
            "conditions": [],
            "actions": [
              {
                "kind": "state",
                "target": "lesson_read",
                "value": true
              },
              {
                "kind": "message",
                "value": "The note reads: Quiet minds open hidden doors. You remember the phrase."
              }
            ],
            "otherwise": "",
            "once": true,
            "repeatText": "The note reads: Quiet minds open hidden doors. You remember the phrase."
          }
        },
        {
          "path": "manifest.story.rules",
          "key": "lesson_open_door",
          "after": {
            "id": "lesson_open_door",
            "name": "open door",
            "enabled": true,
            "trigger": {
              "kind": "object",
              "target": "lesson_door",
              "event": "use"
            },
            "match": "all",
            "conditions": [
              {
                "kind": "state",
                "target": "lesson_read",
                "operator": "==",
                "value": true
              }
            ],
            "actions": [
              {
                "kind": "state",
                "target": "lesson_open",
                "value": true
              },
              {
                "kind": "message",
                "value": "You speak the phrase from the note. The black door unlocks."
              }
            ],
            "otherwise": "You do not know what to say. Read the archivist note first.",
            "once": true,
            "repeatText": "The black door is already open."
          }
        }
      ]
    }
  ],
  "creatorNotes": "Read the archivist’s note to learn a phrase, then use the black door. Using the door before reading the note keeps it closed.\nOpen Help → Cookbook → Door Opens Only After Reading a Note → Start this recipe to inspect its saved settings. The field journal and 100-point ending belong only to the sample game.\nCommands: north; use black door; take archivist note; read archivist note; use black door; use black door; examine black door; north; south; use field journal",
  "mapRooms": [
    {
      "id": "lesson_hall",
      "name": "Archive Hall",
      "description": "A black door stands north. Read the archivist note, then use the black door.",
      "reentryEnabled": false,
      "reentryDesc": "",
      "hint": "",
      "dark": false,
      "roomType": "regular",
      "x": 100,
      "y": 100,
      "width": 160,
      "height": 64,
      "color": "#000000",
      "blockedDescriptions": {
        "north": "The black door is closed. Learn the phrase and use the door."
      }
    },
    {
      "id": "lesson_archive",
      "name": "Archive",
      "description": "Shelves of records fill the archive. The hall is south.",
      "reentryEnabled": false,
      "reentryDesc": "",
      "hint": "",
      "dark": false,
      "roomType": "regular",
      "x": 320,
      "y": 100,
      "width": 160,
      "height": 64,
      "color": "#000000",
      "blockedDescriptions": {}
    }
  ],
  "mapExits": [
    {
      "id": "lesson_route_door",
      "fromRoom": "lesson_hall",
      "toRoom": "lesson_archive",
      "direction": "north",
      "locked": false,
      "when": "lesson_open"
    },
    {
      "id": "lesson_route_return",
      "fromRoom": "lesson_archive",
      "toRoom": "lesson_hall",
      "direction": "south",
      "locked": false
    }
  ],
  "objects": [
    {
      "id": "lesson_note",
      "name": "archivist note",
      "description": "The note is folded shut. Read it to learn the archivist’s phrase.",
      "article": "",
      "location": "lesson_hall",
      "aliases": [],
      "visible": true,
      "takeable": true,
      "droppable": true,
      "useGive": true,
      "container": false,
      "switchable": false,
      "edible": false,
      "drinkable": false,
      "wearable": false,
      "weapon": false,
      "weight": 0.1,
      "locked": false,
      "lockKey": "",
      "events": []
    },
    {
      "id": "lesson_door",
      "name": "black door",
      "description": "The black door has no keyhole. A voice asks for a phrase.",
      "article": "",
      "location": "lesson_hall",
      "aliases": [],
      "visible": true,
      "takeable": false,
      "droppable": false,
      "useGive": true,
      "container": false,
      "switchable": false,
      "edible": false,
      "drinkable": false,
      "wearable": false,
      "weapon": false,
      "weight": 0.1,
      "locked": false,
      "lockKey": "",
      "events": [],
      "smartProse": {
        "description": {
          "version": 1,
          "parts": [
            {
              "type": "conditional",
              "id": "lesson_door_text",
              "when": {
                "kind": "flag_equals",
                "flag": "lesson_open",
                "value": true
              },
              "then": "The black door is already open.",
              "otherwise": "The black door is closed. Learn the phrase and use the door."
            }
          ]
        }
      }
    },
    {
      "id": "sample_field_journal",
      "name": "field journal",
      "description": "Use this journal when you have completed the recipe to record your success. You can also keep exploring before you finish.",
      "article": "",
      "location": "inventory",
      "aliases": [
        "journal"
      ],
      "visible": true,
      "takeable": true,
      "droppable": false,
      "useGive": true,
      "container": false,
      "switchable": false,
      "edible": false,
      "drinkable": false,
      "wearable": false,
      "weapon": false,
      "weight": 0.1,
      "locked": false,
      "lockKey": "",
      "events": []
    }
  ],
  "npcs": [],
  "activeMechanics": [],
  "verbAliases": [],
  "scripts": [],
  "worldEvents": [],
  "customMechanicDefs": [],
  "savedMechanicTemplates": [],
  "objectiveSets": [],
  "gameOutliner": {},
  "customRoomTemplates": [],
  "customObjectTemplates": [],
  "customNpcTemplates": [],
  "customSavedScripts": [],
  "requiredCapabilities": [
    "smart-prose-v1",
    "story-rules-v1"
  ]
}
