{
  "version": "1.1",
  "name": "Locked Shortcut Opens from the Other Side",
  "startRoom": "lesson_near",
  "author": "TAGMaker",
  "description": "A bar on the far side opens a shortcut in both directions. The long route remains available.",
  "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_near.taml",
      "content": "room lesson_near\n  blocked east: \"The shortcut is barred from the other side. Take the long route first.\"\n  exit east: lesson_far when: lesson_open\n  exit north: lesson_long\n  name: \"Front Hall\"\n  description: \"The shortcut is east. Take the long way north twice to reach its bar.\"\n  dark: false\nend"
    },
    {
      "path": "rooms/lesson_long.taml",
      "content": "room lesson_long\n  exit north: lesson_far\n  exit south: lesson_near\n  name: \"Long Corridor\"\n  description: \"The hall is south and the courtyard is north.\"\n  dark: false\nend"
    },
    {
      "path": "rooms/lesson_far.taml",
      "content": "room lesson_far\n  blocked west: \"The shortcut is barred from the other side. Take the long route first.\"\n  exit west: lesson_near when: lesson_open\n  exit south: lesson_long\n  name: \"Back Courtyard\"\n  description: \"Use the door bar to open the shortcut west. The corridor is south.\"\n  dark: false\nend"
    },
    {
      "path": "objects/lesson_bar.taml",
      "content": "object lesson_bar\n  name: \"door bar\"\n  description: \"The bar can only be lifted from this courtyard.\"\n  location: lesson_far\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_open",
        "name": "open",
        "description": "Progress remembered by this recipe.",
        "type": "boolean",
        "initial": false
      }
    ],
    "rules": [
      {
        "id": "lesson_lift",
        "name": "lift",
        "enabled": true,
        "trigger": {
          "kind": "object",
          "target": "lesson_bar",
          "event": "use"
        },
        "match": "all",
        "conditions": [],
        "actions": [
          {
            "kind": "state",
            "target": "lesson_open",
            "value": true
          },
          {
            "kind": "message",
            "value": "You lift the bar. The shortcut now opens in both directions."
          }
        ],
        "otherwise": "",
        "once": true,
        "repeatText": "The bar is already raised. The shortcut remains 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 bar is up, and both shortcut directions are ready to use. 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": "3-locked-shortcut-opens-from-the-other-side",
        "choices": {
          "near": {
            "existing": "",
            "name": "Front Hall",
            "description": "The shortcut is east. Take the long way north twice to reach its bar."
          },
          "long": {
            "existing": "",
            "name": "Long Corridor",
            "description": "The hall is south and the courtyard is north."
          },
          "far": {
            "existing": "",
            "name": "Back Courtyard",
            "description": "Use the door bar to open the shortcut west. The corridor is south."
          },
          "bar": {
            "existing": "",
            "name": "door bar",
            "description": "The bar can only be lifted from this courtyard."
          }
        },
        "values": {
          "open": "You lift the bar. The shortcut now opens in both directions.",
          "repeat": "The bar is already raised. The shortcut remains open.",
          "blocked": "The shortcut is barred from the other side. Take the long route first."
        },
        "reuseRoutes": {}
      },
      "owned": [
        {
          "path": "files",
          "key": "rooms/lesson_near.taml",
          "after": {
            "path": "rooms/lesson_near.taml",
            "name": "lesson_near.taml",
            "content": "room lesson_near\n  blocked east: \"The shortcut is barred from the other side. Take the long route first.\"\n  exit east: lesson_far when: lesson_open\n  exit north: lesson_long\n  name: \"Front Hall\"\n  description: \"The shortcut is east. Take the long way north twice to reach its bar.\"\n  dark: false\nend",
            "isDirty": true
          }
        },
        {
          "path": "files",
          "key": "rooms/lesson_long.taml",
          "after": {
            "path": "rooms/lesson_long.taml",
            "name": "lesson_long.taml",
            "content": "room lesson_long\n  exit north: lesson_far\n  exit south: lesson_near\n  name: \"Long Corridor\"\n  description: \"The hall is south and the courtyard is north.\"\n  dark: false\nend",
            "isDirty": true
          }
        },
        {
          "path": "files",
          "key": "rooms/lesson_far.taml",
          "after": {
            "path": "rooms/lesson_far.taml",
            "name": "lesson_far.taml",
            "content": "room lesson_far\n  blocked west: \"The shortcut is barred from the other side. Take the long route first.\"\n  exit west: lesson_near when: lesson_open\n  exit south: lesson_long\n  name: \"Back Courtyard\"\n  description: \"Use the door bar to open the shortcut west. The corridor is south.\"\n  dark: false\nend",
            "isDirty": true
          }
        },
        {
          "path": "files",
          "key": "objects/lesson_bar.taml",
          "after": {
            "path": "objects/lesson_bar.taml",
            "name": "lesson_bar.taml",
            "content": "object lesson_bar\n  name: \"door bar\"\n  description: \"The bar can only be lifted from this courtyard.\"\n  location: lesson_far\n  droppable: false\n  use_give: true\n  weight: 0.1\nend",
            "isDirty": true
          }
        },
        {
          "path": "objects",
          "key": "lesson_bar",
          "after": {
            "id": "lesson_bar",
            "name": "door bar",
            "description": "The bar can only be lifted from this courtyard.",
            "article": "",
            "location": "lesson_far",
            "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": []
          }
        },
        {
          "path": "mapRooms",
          "key": "lesson_near",
          "after": {
            "id": "lesson_near",
            "name": "Front Hall",
            "description": "The shortcut is east. Take the long way north twice to reach its bar.",
            "reentryEnabled": false,
            "reentryDesc": "",
            "hint": "",
            "dark": false,
            "roomType": "regular",
            "x": 100,
            "y": 100,
            "width": 160,
            "height": 64,
            "color": "#000000",
            "blockedDescriptions": {
              "east": "The shortcut is barred from the other side. Take the long route first."
            }
          }
        },
        {
          "path": "mapRooms",
          "key": "lesson_long",
          "after": {
            "id": "lesson_long",
            "name": "Long Corridor",
            "description": "The hall is south and the courtyard is north.",
            "reentryEnabled": false,
            "reentryDesc": "",
            "hint": "",
            "dark": false,
            "roomType": "regular",
            "x": 320,
            "y": 100,
            "width": 160,
            "height": 64,
            "color": "#000000",
            "blockedDescriptions": {}
          }
        },
        {
          "path": "mapRooms",
          "key": "lesson_far",
          "after": {
            "id": "lesson_far",
            "name": "Back Courtyard",
            "description": "Use the door bar to open the shortcut west. The corridor is south.",
            "reentryEnabled": false,
            "reentryDesc": "",
            "hint": "",
            "dark": false,
            "roomType": "regular",
            "x": 540,
            "y": 100,
            "width": 160,
            "height": 64,
            "color": "#000000",
            "blockedDescriptions": {
              "west": "The shortcut is barred from the other side. Take the long route first."
            }
          }
        },
        {
          "path": "mapExits",
          "key": "lesson_route_long",
          "after": {
            "id": "lesson_route_long",
            "fromRoom": "lesson_near",
            "toRoom": "lesson_long",
            "direction": "north",
            "locked": false
          }
        },
        {
          "path": "mapExits",
          "key": "lesson_route_near",
          "after": {
            "id": "lesson_route_near",
            "fromRoom": "lesson_long",
            "toRoom": "lesson_near",
            "direction": "south",
            "locked": false
          }
        },
        {
          "path": "mapExits",
          "key": "lesson_route_far",
          "after": {
            "id": "lesson_route_far",
            "fromRoom": "lesson_long",
            "toRoom": "lesson_far",
            "direction": "north",
            "locked": false
          }
        },
        {
          "path": "mapExits",
          "key": "lesson_route_returnlong",
          "after": {
            "id": "lesson_route_returnlong",
            "fromRoom": "lesson_far",
            "toRoom": "lesson_long",
            "direction": "south",
            "locked": false
          }
        },
        {
          "path": "mapExits",
          "key": "lesson_route_shortcut",
          "after": {
            "id": "lesson_route_shortcut",
            "fromRoom": "lesson_near",
            "toRoom": "lesson_far",
            "direction": "east",
            "locked": false,
            "when": "lesson_open"
          }
        },
        {
          "path": "mapExits",
          "key": "lesson_route_back",
          "after": {
            "id": "lesson_route_back",
            "fromRoom": "lesson_far",
            "toRoom": "lesson_near",
            "direction": "west",
            "locked": false,
            "when": "lesson_open"
          }
        },
        {
          "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_lift",
          "after": {
            "id": "lesson_lift",
            "name": "lift",
            "enabled": true,
            "trigger": {
              "kind": "object",
              "target": "lesson_bar",
              "event": "use"
            },
            "match": "all",
            "conditions": [],
            "actions": [
              {
                "kind": "state",
                "target": "lesson_open",
                "value": true
              },
              {
                "kind": "message",
                "value": "You lift the bar. The shortcut now opens in both directions."
              }
            ],
            "otherwise": "",
            "once": true,
            "repeatText": "The bar is already raised. The shortcut remains open."
          }
        }
      ]
    }
  ],
  "creatorNotes": "A bar on the far side opens a shortcut in both directions. The long route remains available.\nOpen Help → Cookbook → Locked Shortcut Opens from the Other Side → Start this recipe to inspect its saved settings. The field journal and 100-point ending belong only to the sample game.\nCommands: east; use door bar; north; north; west; use door bar; use door bar; west; east; use field journal",
  "mapRooms": [
    {
      "id": "lesson_near",
      "name": "Front Hall",
      "description": "The shortcut is east. Take the long way north twice to reach its bar.",
      "reentryEnabled": false,
      "reentryDesc": "",
      "hint": "",
      "dark": false,
      "roomType": "regular",
      "x": 100,
      "y": 100,
      "width": 160,
      "height": 64,
      "color": "#000000",
      "blockedDescriptions": {
        "east": "The shortcut is barred from the other side. Take the long route first."
      }
    },
    {
      "id": "lesson_long",
      "name": "Long Corridor",
      "description": "The hall is south and the courtyard is north.",
      "reentryEnabled": false,
      "reentryDesc": "",
      "hint": "",
      "dark": false,
      "roomType": "regular",
      "x": 320,
      "y": 100,
      "width": 160,
      "height": 64,
      "color": "#000000",
      "blockedDescriptions": {}
    },
    {
      "id": "lesson_far",
      "name": "Back Courtyard",
      "description": "Use the door bar to open the shortcut west. The corridor is south.",
      "reentryEnabled": false,
      "reentryDesc": "",
      "hint": "",
      "dark": false,
      "roomType": "regular",
      "x": 540,
      "y": 100,
      "width": 160,
      "height": 64,
      "color": "#000000",
      "blockedDescriptions": {
        "west": "The shortcut is barred from the other side. Take the long route first."
      }
    }
  ],
  "mapExits": [
    {
      "id": "lesson_route_long",
      "fromRoom": "lesson_near",
      "toRoom": "lesson_long",
      "direction": "north",
      "locked": false
    },
    {
      "id": "lesson_route_near",
      "fromRoom": "lesson_long",
      "toRoom": "lesson_near",
      "direction": "south",
      "locked": false
    },
    {
      "id": "lesson_route_far",
      "fromRoom": "lesson_long",
      "toRoom": "lesson_far",
      "direction": "north",
      "locked": false
    },
    {
      "id": "lesson_route_returnlong",
      "fromRoom": "lesson_far",
      "toRoom": "lesson_long",
      "direction": "south",
      "locked": false
    },
    {
      "id": "lesson_route_shortcut",
      "fromRoom": "lesson_near",
      "toRoom": "lesson_far",
      "direction": "east",
      "locked": false,
      "when": "lesson_open"
    },
    {
      "id": "lesson_route_back",
      "fromRoom": "lesson_far",
      "toRoom": "lesson_near",
      "direction": "west",
      "locked": false,
      "when": "lesson_open"
    }
  ],
  "objects": [
    {
      "id": "lesson_bar",
      "name": "door bar",
      "description": "The bar can only be lifted from this courtyard.",
      "article": "",
      "location": "lesson_far",
      "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": []
    },
    {
      "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"
  ]
}
