{
  "version": "1.1",
  "name": "Replace Generic Open / Close Text with Container Feedback",
  "startRoom": "lesson_room",
  "author": "TAGMaker",
  "description": "A real closed chest hides its contents. Opening and closing it gives authored feedback while the native lid controls whether the contents are reachable.",
  "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_room.taml",
      "content": "room lesson_room\n  name: \"Keepsake Room\"\n  description: \"Open the cedar chest, take its brooch and close the lid.\"\n  dark: false\nend"
    },
    {
      "path": "objects/lesson_chest.taml",
      "content": "object lesson_chest\n  name: \"cedar chest\"\n  description: \"The scent of cedar rises from the chest.\"\n  contents_v1: \"{\\\"version\\\":1,\\\"kind\\\":\\\"container\\\",\\\"open\\\":false,\\\"transparent\\\":false}\"\n  location: lesson_room\n  droppable: false\n  container: true\n  weight: 0.1\nend"
    },
    {
      "path": "objects/lesson_brooch.taml",
      "content": "object lesson_brooch\n  name: \"silver brooch\"\n  description: \"A small keepsake from the chest.\"\n  contents_v1: \"{\\\"version\\\":1,\\\"placement\\\":{\\\"parentId\\\":\\\"lesson_chest\\\",\\\"relation\\\":\\\"inside\\\"}}\"\n  takeable: true\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_opened",
        "name": "opened",
        "description": "Progress remembered by this recipe.",
        "type": "boolean",
        "initial": false
      }
    ],
    "rules": [
      {
        "id": "lesson_open",
        "name": "open",
        "enabled": true,
        "trigger": {
          "kind": "object",
          "target": "lesson_chest",
          "event": "open"
        },
        "match": "all",
        "conditions": [],
        "actions": [
          {
            "kind": "state",
            "target": "lesson_opened",
            "value": true
          },
          {
            "kind": "message",
            "value": "The cedar lid rises with a soft creak. You can inspect the remaining contents."
          }
        ],
        "otherwise": "",
        "once": false
      },
      {
        "id": "lesson_close",
        "name": "close",
        "enabled": true,
        "trigger": {
          "kind": "object",
          "target": "lesson_chest",
          "event": "close"
        },
        "match": "all",
        "conditions": [],
        "actions": [
          {
            "kind": "message",
            "value": "You lower the cedar lid until its latch clicks shut."
          }
        ],
        "otherwise": "",
        "once": false
      },
      {
        "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_opened",
            "operator": "==",
            "value": true
          }
        ],
        "actions": [
          {
            "kind": "message",
            "value": "Container feedback and actual contents stay in agreement. 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": "77-replace-generic-open-close-text-with-container-feedback",
        "choices": {
          "room": {
            "existing": "",
            "name": "Keepsake Room",
            "description": "Open the cedar chest, take its brooch and close the lid."
          },
          "chest": {
            "existing": "",
            "name": "cedar chest",
            "description": "The scent of cedar rises from the chest."
          },
          "brooch": {
            "existing": "",
            "name": "silver brooch",
            "description": "A small keepsake from the chest."
          }
        },
        "values": {
          "open": "The cedar lid rises with a soft creak. You can inspect the remaining contents.",
          "close": "You lower the cedar lid until its latch clicks shut."
        },
        "reuseRoutes": {}
      },
      "owned": [
        {
          "path": "files",
          "key": "rooms/lesson_room.taml",
          "after": {
            "path": "rooms/lesson_room.taml",
            "name": "lesson_room.taml",
            "content": "room lesson_room\n  name: \"Keepsake Room\"\n  description: \"Open the cedar chest, take its brooch and close the lid.\"\n  dark: false\nend",
            "isDirty": true
          }
        },
        {
          "path": "files",
          "key": "objects/lesson_chest.taml",
          "after": {
            "path": "objects/lesson_chest.taml",
            "name": "lesson_chest.taml",
            "content": "object lesson_chest\n  name: \"cedar chest\"\n  description: \"The scent of cedar rises from the chest.\"\n  contents_v1: \"{\\\"version\\\":1,\\\"kind\\\":\\\"container\\\",\\\"open\\\":false,\\\"transparent\\\":false}\"\n  location: lesson_room\n  droppable: false\n  container: true\n  weight: 0.1\nend",
            "isDirty": true
          }
        },
        {
          "path": "files",
          "key": "objects/lesson_brooch.taml",
          "after": {
            "path": "objects/lesson_brooch.taml",
            "name": "lesson_brooch.taml",
            "content": "object lesson_brooch\n  name: \"silver brooch\"\n  description: \"A small keepsake from the chest.\"\n  contents_v1: \"{\\\"version\\\":1,\\\"placement\\\":{\\\"parentId\\\":\\\"lesson_chest\\\",\\\"relation\\\":\\\"inside\\\"}}\"\n  takeable: true\n  use_give: true\n  weight: 0.1\nend",
            "isDirty": true
          }
        },
        {
          "path": "objects",
          "key": "lesson_chest",
          "after": {
            "id": "lesson_chest",
            "name": "cedar chest",
            "description": "The scent of cedar rises from the chest.",
            "article": "",
            "location": "lesson_room",
            "aliases": [],
            "visible": true,
            "takeable": false,
            "droppable": false,
            "useGive": false,
            "container": true,
            "switchable": false,
            "edible": false,
            "drinkable": false,
            "wearable": false,
            "weapon": false,
            "weight": 0.1,
            "locked": false,
            "lockKey": "",
            "events": [],
            "contents": {
              "version": 1,
              "kind": "container",
              "open": false,
              "transparent": false
            }
          }
        },
        {
          "path": "objects",
          "key": "lesson_brooch",
          "after": {
            "id": "lesson_brooch",
            "name": "silver brooch",
            "description": "A small keepsake from the chest.",
            "article": "",
            "location": "nowhere",
            "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": [],
            "contents": {
              "version": 1,
              "placement": {
                "parentId": "lesson_chest",
                "relation": "inside"
              }
            }
          }
        },
        {
          "path": "mapRooms",
          "key": "lesson_room",
          "after": {
            "id": "lesson_room",
            "name": "Keepsake Room",
            "description": "Open the cedar chest, take its brooch and close the lid.",
            "reentryEnabled": false,
            "reentryDesc": "",
            "hint": "",
            "dark": false,
            "roomType": "regular",
            "x": 100,
            "y": 100,
            "width": 160,
            "height": 64,
            "color": "#000000"
          }
        },
        {
          "path": "manifest.story.states",
          "key": "lesson_opened",
          "after": {
            "id": "lesson_opened",
            "name": "opened",
            "description": "Progress remembered by this recipe.",
            "type": "boolean",
            "initial": false
          }
        },
        {
          "path": "manifest.story.rules",
          "key": "lesson_open",
          "after": {
            "id": "lesson_open",
            "name": "open",
            "enabled": true,
            "trigger": {
              "kind": "object",
              "target": "lesson_chest",
              "event": "open"
            },
            "match": "all",
            "conditions": [],
            "actions": [
              {
                "kind": "state",
                "target": "lesson_opened",
                "value": true
              },
              {
                "kind": "message",
                "value": "The cedar lid rises with a soft creak. You can inspect the remaining contents."
              }
            ],
            "otherwise": "",
            "once": false
          }
        },
        {
          "path": "manifest.story.rules",
          "key": "lesson_close",
          "after": {
            "id": "lesson_close",
            "name": "close",
            "enabled": true,
            "trigger": {
              "kind": "object",
              "target": "lesson_chest",
              "event": "close"
            },
            "match": "all",
            "conditions": [],
            "actions": [
              {
                "kind": "message",
                "value": "You lower the cedar lid until its latch clicks shut."
              }
            ],
            "otherwise": "",
            "once": false
          }
        }
      ]
    }
  ],
  "creatorNotes": "A real closed chest hides its contents. Opening and closing it gives authored feedback while the native lid controls whether the contents are reachable.\nOpen Help → Cookbook → Replace Generic Open / Close Text with Container Feedback → Start this recipe to inspect its saved settings. The field journal and 100-point ending belong only to the sample game.\nCommands: take silver brooch; open cedar chest; close cedar chest; open cedar chest; take silver brooch from cedar chest; close cedar chest; open cedar chest; use field journal",
  "mapRooms": [
    {
      "id": "lesson_room",
      "name": "Keepsake Room",
      "description": "Open the cedar chest, take its brooch and close the lid.",
      "reentryEnabled": false,
      "reentryDesc": "",
      "hint": "",
      "dark": false,
      "roomType": "regular",
      "x": 100,
      "y": 100,
      "width": 160,
      "height": 64,
      "color": "#000000"
    }
  ],
  "mapExits": [],
  "objects": [
    {
      "id": "lesson_chest",
      "name": "cedar chest",
      "description": "The scent of cedar rises from the chest.",
      "article": "",
      "location": "lesson_room",
      "aliases": [],
      "visible": true,
      "takeable": false,
      "droppable": false,
      "useGive": false,
      "container": true,
      "switchable": false,
      "edible": false,
      "drinkable": false,
      "wearable": false,
      "weapon": false,
      "weight": 0.1,
      "locked": false,
      "lockKey": "",
      "events": [],
      "contents": {
        "version": 1,
        "kind": "container",
        "open": false,
        "transparent": false
      }
    },
    {
      "id": "lesson_brooch",
      "name": "silver brooch",
      "description": "A small keepsake from the chest.",
      "article": "",
      "location": "nowhere",
      "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": [],
      "contents": {
        "version": 1,
        "placement": {
          "parentId": "lesson_chest",
          "relation": "inside"
        }
      }
    },
    {
      "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": [
    "story-rules-v1",
    "object-contents-v1"
  ]
}
