{
  "version": "1.1",
  "name": "Countdown Escape with Override Switch",
  "startRoom": "lesson_vault",
  "author": "TAGMaker",
  "description": "Taking a relic starts a five-turn escape clock. Use the override while carrying the relic to stop the clock and open the east exit, or take the longer north route. Waiting out the clock ends the game.",
  "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_vault.taml",
      "content": "room lesson_vault\n  exit north: lesson_corridor\n  blocked east: \"Use the override while carrying the relic to open this exit.\"\n  exit east: lesson_outside when: lesson_open\n  name: \"Relic Vault\"\n  description: \"Take the relic to begin. Use the override switch, then escape east. A longer route goes north through the corridor.\"\n  dark: false\nend"
    },
    {
      "path": "rooms/lesson_corridor.taml",
      "content": "room lesson_corridor\n  exit east: lesson_outside\n  exit south: lesson_vault\n  name: \"Escape Corridor\"\n  description: \"The vault is south and the outside is east.\"\n  dark: false\nend"
    },
    {
      "path": "rooms/lesson_outside.taml",
      "content": "room lesson_outside\n  name: \"Open Hillside\"\n  description: \"You have reached the outside.\"\n  dark: false\nend"
    },
    {
      "path": "objects/lesson_relic.taml",
      "content": "object lesson_relic\n  name: \"ancient relic\"\n  description: \"Taking the relic starts the collapse clock.\"\n  location: lesson_vault\n  takeable: true\n  use_give: true\n  weight: 0.1\nend"
    },
    {
      "path": "objects/lesson_override.taml",
      "content": "object lesson_override\n  name: \"override switch\"\n  description: \"Use this while carrying the relic to stop the clock and open the east exit.\"\n  location: lesson_vault\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_stopped",
        "name": "stopped",
        "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
      },
      {
        "id": "lesson_escaped",
        "name": "escaped",
        "description": "Progress remembered by this recipe.",
        "type": "boolean",
        "initial": false
      },
      {
        "id": "lesson_collapsed",
        "name": "collapsed",
        "description": "Progress remembered by this recipe.",
        "type": "boolean",
        "initial": false
      }
    ],
    "rules": [
      {
        "id": "lesson_override",
        "name": "override",
        "enabled": true,
        "trigger": {
          "kind": "object",
          "target": "lesson_override",
          "event": "use"
        },
        "match": "all",
        "conditions": [
          {
            "kind": "inventory",
            "target": "lesson_relic",
            "operator": "==",
            "value": true
          }
        ],
        "actions": [
          {
            "kind": "state",
            "target": "lesson_stopped",
            "value": true
          },
          {
            "kind": "state",
            "target": "lesson_open",
            "value": true
          },
          {
            "kind": "message",
            "value": "The override stops the collapse clock and opens the east exit."
          }
        ],
        "otherwise": "Take the ancient relic before using the override.",
        "once": true,
        "repeatText": "The override is already engaged."
      },
      {
        "id": "lesson_escape",
        "name": "escape",
        "enabled": true,
        "trigger": {
          "kind": "room",
          "target": "lesson_outside",
          "event": "enter"
        },
        "match": "all",
        "conditions": [
          {
            "kind": "inventory",
            "target": "lesson_relic",
            "operator": "==",
            "value": true
          }
        ],
        "actions": [
          {
            "kind": "state",
            "target": "lesson_escaped",
            "value": true
          },
          {
            "kind": "state",
            "target": "lesson_stopped",
            "value": true
          },
          {
            "kind": "message",
            "value": "You escape with the ancient relic."
          }
        ],
        "otherwise": "You reached the outside without the relic.",
        "once": true
      },
      {
        "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_escaped",
            "operator": "==",
            "value": true
          }
        ],
        "actions": [
          {
            "kind": "message",
            "value": "You brought the relic outside before the collapse. 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
      }
    ],
    "features": {
      "version": 1,
      "mechanics": [
        {
          "version": 1,
          "id": "lesson_clock",
          "name": "Countdown",
          "description": "Countdown",
          "category": "Creator Cookbook",
          "enabled": true,
          "autoStart": true,
          "inputs": [],
          "variables": [
            {
              "id": "remaining",
              "name": "Turns remaining",
              "type": "number",
              "initial": 5,
              "min": 0,
              "max": 10000,
              "showInPlayer": true,
              "suffix": "turns"
            }
          ],
          "scope": {
            "kind": "global",
            "rooms": []
          },
          "initialPhase": "waiting",
          "phases": [
            {
              "id": "waiting",
              "name": "waiting",
              "onEnter": [],
              "onExit": []
            },
            {
              "id": "active",
              "name": "active",
              "onEnter": [],
              "onExit": []
            },
            {
              "id": "finished",
              "name": "finished",
              "onEnter": [],
              "onExit": []
            },
            {
              "id": "cancelled",
              "name": "cancelled",
              "onEnter": [],
              "onExit": []
            }
          ],
          "rules": [
            {
              "id": "start",
              "name": "start",
              "enabled": true,
              "trigger": {
                "kind": "object",
                "target": "lesson_relic",
                "event": "take"
              },
              "conditions": {
                "match": "all",
                "conditions": []
              },
              "actions": [
                {
                  "kind": "phase",
                  "target": "active"
                },
                {
                  "kind": "message",
                  "value": "The relic lifts free. You have five active turns before the vault collapses."
                }
              ],
              "otherwise": [],
              "initialDelay": 0,
              "interval": 1,
              "cooldown": 0,
              "maxUses": 1,
              "probability": 1,
              "priority": 0,
              "phase": "waiting"
            },
            {
              "id": "cancel",
              "name": "cancel",
              "enabled": true,
              "trigger": {
                "kind": "turn",
                "target": "",
                "event": ""
              },
              "conditions": {
                "match": "all",
                "conditions": [
                  {
                    "kind": "rule",
                    "condition": {
                      "kind": "state",
                      "target": "lesson_stopped",
                      "operator": "==",
                      "value": true
                    }
                  }
                ]
              },
              "actions": [
                {
                  "kind": "phase",
                  "target": "cancelled"
                },
                {
                  "kind": "mechanic",
                  "target": "self",
                  "operation": "complete"
                }
              ],
              "otherwise": [],
              "initialDelay": 0,
              "interval": 1,
              "cooldown": 0,
              "maxUses": 0,
              "probability": 1,
              "priority": 100,
              "phase": "active"
            },
            {
              "id": "tick",
              "name": "tick",
              "enabled": true,
              "trigger": {
                "kind": "turn",
                "target": "",
                "event": ""
              },
              "conditions": {
                "match": "all",
                "conditions": []
              },
              "actions": [
                {
                  "kind": "local",
                  "target": "remaining",
                  "operation": "subtract",
                  "value": 1
                }
              ],
              "otherwise": [],
              "initialDelay": 0,
              "interval": 1,
              "cooldown": 0,
              "maxUses": 0,
              "probability": 1,
              "priority": 30,
              "phase": "active"
            },
            {
              "id": "warning",
              "name": "warning",
              "enabled": true,
              "trigger": {
                "kind": "turn",
                "target": "",
                "event": ""
              },
              "conditions": {
                "match": "all",
                "conditions": [
                  {
                    "kind": "local",
                    "target": "remaining",
                    "operator": "<=",
                    "value": 2
                  },
                  {
                    "kind": "local",
                    "target": "remaining",
                    "operator": ">",
                    "value": 0
                  }
                ]
              },
              "actions": [
                {
                  "kind": "message",
                  "value": "The vault shakes. Escape now."
                }
              ],
              "otherwise": [],
              "initialDelay": 0,
              "interval": 1,
              "cooldown": 0,
              "maxUses": 1,
              "probability": 1,
              "priority": 20,
              "phase": "active"
            },
            {
              "id": "finish",
              "name": "finish",
              "enabled": true,
              "trigger": {
                "kind": "turn",
                "target": "",
                "event": ""
              },
              "conditions": {
                "match": "all",
                "conditions": [
                  {
                    "kind": "local",
                    "target": "remaining",
                    "operator": "<=",
                    "value": 0
                  }
                ]
              },
              "actions": [
                {
                  "kind": "state",
                  "target": "lesson_collapsed",
                  "value": true
                },
                {
                  "kind": "message",
                  "value": "The vault collapses before you reach safety."
                },
                {
                  "kind": "end",
                  "value": "The vault collapses before you reach safety."
                },
                {
                  "kind": "phase",
                  "target": "finished"
                },
                {
                  "kind": "mechanic",
                  "target": "self",
                  "operation": "complete"
                }
              ],
              "otherwise": [],
              "initialDelay": 0,
              "interval": 1,
              "cooldown": 0,
              "maxUses": 1,
              "probability": 1,
              "priority": 10,
              "phase": "active"
            }
          ]
        }
      ]
    }
  },
  "cookbookRecipes": [
    {
      "version": 1,
      "settings": {
        "instance": "lesson",
        "recipeId": "countdown-escape-sequence",
        "choices": {
          "vault": {
            "existing": "",
            "name": "Relic Vault",
            "description": "Take the relic to begin. Use the override switch, then escape east. A longer route goes north through the corridor."
          },
          "corridor": {
            "existing": "",
            "name": "Escape Corridor",
            "description": "The vault is south and the outside is east."
          },
          "outside": {
            "existing": "",
            "name": "Open Hillside",
            "description": "You have reached the outside."
          },
          "relic": {
            "existing": "",
            "name": "ancient relic",
            "description": "Taking the relic starts the collapse clock."
          },
          "override": {
            "existing": "",
            "name": "override switch",
            "description": "Use this while carrying the relic to stop the clock and open the east exit."
          }
        },
        "values": {
          "start": "The relic lifts free. You have five active turns before the vault collapses.",
          "warning": "The vault shakes. Escape now.",
          "failure": "The vault collapses before you reach safety.",
          "override": "The override stops the collapse clock and opens the east exit.",
          "escape": "You escape with the ancient relic.",
          "turns": 5
        },
        "reuseRoutes": {}
      },
      "owned": [
        {
          "path": "files",
          "key": "rooms/lesson_vault.taml",
          "after": {
            "path": "rooms/lesson_vault.taml",
            "name": "lesson_vault.taml",
            "content": "room lesson_vault\n  exit north: lesson_corridor\n  blocked east: \"Use the override while carrying the relic to open this exit.\"\n  exit east: lesson_outside when: lesson_open\n  name: \"Relic Vault\"\n  description: \"Take the relic to begin. Use the override switch, then escape east. A longer route goes north through the corridor.\"\n  dark: false\nend",
            "isDirty": true
          }
        },
        {
          "path": "files",
          "key": "rooms/lesson_corridor.taml",
          "after": {
            "path": "rooms/lesson_corridor.taml",
            "name": "lesson_corridor.taml",
            "content": "room lesson_corridor\n  exit east: lesson_outside\n  exit south: lesson_vault\n  name: \"Escape Corridor\"\n  description: \"The vault is south and the outside is east.\"\n  dark: false\nend",
            "isDirty": true
          }
        },
        {
          "path": "files",
          "key": "rooms/lesson_outside.taml",
          "after": {
            "path": "rooms/lesson_outside.taml",
            "name": "lesson_outside.taml",
            "content": "room lesson_outside\n  name: \"Open Hillside\"\n  description: \"You have reached the outside.\"\n  dark: false\nend",
            "isDirty": true
          }
        },
        {
          "path": "files",
          "key": "objects/lesson_relic.taml",
          "after": {
            "path": "objects/lesson_relic.taml",
            "name": "lesson_relic.taml",
            "content": "object lesson_relic\n  name: \"ancient relic\"\n  description: \"Taking the relic starts the collapse clock.\"\n  location: lesson_vault\n  takeable: true\n  use_give: true\n  weight: 0.1\nend",
            "isDirty": true
          }
        },
        {
          "path": "files",
          "key": "objects/lesson_override.taml",
          "after": {
            "path": "objects/lesson_override.taml",
            "name": "lesson_override.taml",
            "content": "object lesson_override\n  name: \"override switch\"\n  description: \"Use this while carrying the relic to stop the clock and open the east exit.\"\n  location: lesson_vault\n  droppable: false\n  use_give: true\n  weight: 0.1\nend",
            "isDirty": true
          }
        },
        {
          "path": "objects",
          "key": "lesson_relic",
          "after": {
            "id": "lesson_relic",
            "name": "ancient relic",
            "description": "Taking the relic starts the collapse clock.",
            "article": "",
            "location": "lesson_vault",
            "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_override",
          "after": {
            "id": "lesson_override",
            "name": "override switch",
            "description": "Use this while carrying the relic to stop the clock and open the east exit.",
            "article": "",
            "location": "lesson_vault",
            "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_vault",
          "after": {
            "id": "lesson_vault",
            "name": "Relic Vault",
            "description": "Take the relic to begin. Use the override switch, then escape east. A longer route goes north through the corridor.",
            "reentryEnabled": false,
            "reentryDesc": "",
            "hint": "",
            "dark": false,
            "roomType": "regular",
            "x": 100,
            "y": 100,
            "width": 160,
            "height": 64,
            "color": "#000000",
            "blockedDescriptions": {
              "east": "Use the override while carrying the relic to open this exit."
            }
          }
        },
        {
          "path": "mapRooms",
          "key": "lesson_corridor",
          "after": {
            "id": "lesson_corridor",
            "name": "Escape Corridor",
            "description": "The vault is south and the outside is east.",
            "reentryEnabled": false,
            "reentryDesc": "",
            "hint": "",
            "dark": false,
            "roomType": "regular",
            "x": 320,
            "y": 100,
            "width": 160,
            "height": 64,
            "color": "#000000",
            "blockedDescriptions": {}
          }
        },
        {
          "path": "mapRooms",
          "key": "lesson_outside",
          "after": {
            "id": "lesson_outside",
            "name": "Open Hillside",
            "description": "You have reached the outside.",
            "reentryEnabled": false,
            "reentryDesc": "",
            "hint": "",
            "dark": false,
            "roomType": "regular",
            "x": 540,
            "y": 100,
            "width": 160,
            "height": 64,
            "color": "#000000"
          }
        },
        {
          "path": "mapExits",
          "key": "lesson_route_override",
          "after": {
            "id": "lesson_route_override",
            "fromRoom": "lesson_vault",
            "toRoom": "lesson_outside",
            "direction": "east",
            "locked": false,
            "when": "lesson_open"
          }
        },
        {
          "path": "mapExits",
          "key": "lesson_route_long",
          "after": {
            "id": "lesson_route_long",
            "fromRoom": "lesson_vault",
            "toRoom": "lesson_corridor",
            "direction": "north",
            "locked": false
          }
        },
        {
          "path": "mapExits",
          "key": "lesson_route_return",
          "after": {
            "id": "lesson_route_return",
            "fromRoom": "lesson_corridor",
            "toRoom": "lesson_vault",
            "direction": "south",
            "locked": false
          }
        },
        {
          "path": "mapExits",
          "key": "lesson_route_out",
          "after": {
            "id": "lesson_route_out",
            "fromRoom": "lesson_corridor",
            "toRoom": "lesson_outside",
            "direction": "east",
            "locked": false
          }
        },
        {
          "path": "manifest.story.states",
          "key": "lesson_stopped",
          "after": {
            "id": "lesson_stopped",
            "name": "stopped",
            "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.states",
          "key": "lesson_escaped",
          "after": {
            "id": "lesson_escaped",
            "name": "escaped",
            "description": "Progress remembered by this recipe.",
            "type": "boolean",
            "initial": false
          }
        },
        {
          "path": "manifest.story.states",
          "key": "lesson_collapsed",
          "after": {
            "id": "lesson_collapsed",
            "name": "collapsed",
            "description": "Progress remembered by this recipe.",
            "type": "boolean",
            "initial": false
          }
        },
        {
          "path": "manifest.story.rules",
          "key": "lesson_override",
          "after": {
            "id": "lesson_override",
            "name": "override",
            "enabled": true,
            "trigger": {
              "kind": "object",
              "target": "lesson_override",
              "event": "use"
            },
            "match": "all",
            "conditions": [
              {
                "kind": "inventory",
                "target": "lesson_relic",
                "operator": "==",
                "value": true
              }
            ],
            "actions": [
              {
                "kind": "state",
                "target": "lesson_stopped",
                "value": true
              },
              {
                "kind": "state",
                "target": "lesson_open",
                "value": true
              },
              {
                "kind": "message",
                "value": "The override stops the collapse clock and opens the east exit."
              }
            ],
            "otherwise": "Take the ancient relic before using the override.",
            "once": true,
            "repeatText": "The override is already engaged."
          }
        },
        {
          "path": "manifest.story.rules",
          "key": "lesson_escape",
          "after": {
            "id": "lesson_escape",
            "name": "escape",
            "enabled": true,
            "trigger": {
              "kind": "room",
              "target": "lesson_outside",
              "event": "enter"
            },
            "match": "all",
            "conditions": [
              {
                "kind": "inventory",
                "target": "lesson_relic",
                "operator": "==",
                "value": true
              }
            ],
            "actions": [
              {
                "kind": "state",
                "target": "lesson_escaped",
                "value": true
              },
              {
                "kind": "state",
                "target": "lesson_stopped",
                "value": true
              },
              {
                "kind": "message",
                "value": "You escape with the ancient relic."
              }
            ],
            "otherwise": "You reached the outside without the relic.",
            "once": true
          }
        },
        {
          "path": "manifest.story.features.mechanics",
          "key": "lesson_clock",
          "after": {
            "version": 1,
            "id": "lesson_clock",
            "name": "Countdown",
            "description": "Countdown",
            "category": "Creator Cookbook",
            "enabled": true,
            "autoStart": true,
            "inputs": [],
            "variables": [
              {
                "id": "remaining",
                "name": "Turns remaining",
                "type": "number",
                "initial": 5,
                "min": 0,
                "max": 10000,
                "showInPlayer": true,
                "suffix": "turns"
              }
            ],
            "scope": {
              "kind": "global",
              "rooms": []
            },
            "initialPhase": "waiting",
            "phases": [
              {
                "id": "waiting",
                "name": "waiting",
                "onEnter": [],
                "onExit": []
              },
              {
                "id": "active",
                "name": "active",
                "onEnter": [],
                "onExit": []
              },
              {
                "id": "finished",
                "name": "finished",
                "onEnter": [],
                "onExit": []
              },
              {
                "id": "cancelled",
                "name": "cancelled",
                "onEnter": [],
                "onExit": []
              }
            ],
            "rules": [
              {
                "id": "start",
                "name": "start",
                "enabled": true,
                "trigger": {
                  "kind": "object",
                  "target": "lesson_relic",
                  "event": "take"
                },
                "conditions": {
                  "match": "all",
                  "conditions": []
                },
                "actions": [
                  {
                    "kind": "phase",
                    "target": "active"
                  },
                  {
                    "kind": "message",
                    "value": "The relic lifts free. You have five active turns before the vault collapses."
                  }
                ],
                "otherwise": [],
                "initialDelay": 0,
                "interval": 1,
                "cooldown": 0,
                "maxUses": 1,
                "probability": 1,
                "priority": 0,
                "phase": "waiting"
              },
              {
                "id": "cancel",
                "name": "cancel",
                "enabled": true,
                "trigger": {
                  "kind": "turn",
                  "target": "",
                  "event": ""
                },
                "conditions": {
                  "match": "all",
                  "conditions": [
                    {
                      "kind": "rule",
                      "condition": {
                        "kind": "state",
                        "target": "lesson_stopped",
                        "operator": "==",
                        "value": true
                      }
                    }
                  ]
                },
                "actions": [
                  {
                    "kind": "phase",
                    "target": "cancelled"
                  },
                  {
                    "kind": "mechanic",
                    "target": "self",
                    "operation": "complete"
                  }
                ],
                "otherwise": [],
                "initialDelay": 0,
                "interval": 1,
                "cooldown": 0,
                "maxUses": 0,
                "probability": 1,
                "priority": 100,
                "phase": "active"
              },
              {
                "id": "tick",
                "name": "tick",
                "enabled": true,
                "trigger": {
                  "kind": "turn",
                  "target": "",
                  "event": ""
                },
                "conditions": {
                  "match": "all",
                  "conditions": []
                },
                "actions": [
                  {
                    "kind": "local",
                    "target": "remaining",
                    "operation": "subtract",
                    "value": 1
                  }
                ],
                "otherwise": [],
                "initialDelay": 0,
                "interval": 1,
                "cooldown": 0,
                "maxUses": 0,
                "probability": 1,
                "priority": 30,
                "phase": "active"
              },
              {
                "id": "warning",
                "name": "warning",
                "enabled": true,
                "trigger": {
                  "kind": "turn",
                  "target": "",
                  "event": ""
                },
                "conditions": {
                  "match": "all",
                  "conditions": [
                    {
                      "kind": "local",
                      "target": "remaining",
                      "operator": "<=",
                      "value": 2
                    },
                    {
                      "kind": "local",
                      "target": "remaining",
                      "operator": ">",
                      "value": 0
                    }
                  ]
                },
                "actions": [
                  {
                    "kind": "message",
                    "value": "The vault shakes. Escape now."
                  }
                ],
                "otherwise": [],
                "initialDelay": 0,
                "interval": 1,
                "cooldown": 0,
                "maxUses": 1,
                "probability": 1,
                "priority": 20,
                "phase": "active"
              },
              {
                "id": "finish",
                "name": "finish",
                "enabled": true,
                "trigger": {
                  "kind": "turn",
                  "target": "",
                  "event": ""
                },
                "conditions": {
                  "match": "all",
                  "conditions": [
                    {
                      "kind": "local",
                      "target": "remaining",
                      "operator": "<=",
                      "value": 0
                    }
                  ]
                },
                "actions": [
                  {
                    "kind": "state",
                    "target": "lesson_collapsed",
                    "value": true
                  },
                  {
                    "kind": "message",
                    "value": "The vault collapses before you reach safety."
                  },
                  {
                    "kind": "end",
                    "value": "The vault collapses before you reach safety."
                  },
                  {
                    "kind": "phase",
                    "target": "finished"
                  },
                  {
                    "kind": "mechanic",
                    "target": "self",
                    "operation": "complete"
                  }
                ],
                "otherwise": [],
                "initialDelay": 0,
                "interval": 1,
                "cooldown": 0,
                "maxUses": 1,
                "probability": 1,
                "priority": 10,
                "phase": "active"
              }
            ]
          }
        }
      ]
    }
  ],
  "creatorNotes": "Taking a relic starts a five-turn escape clock. Use the override while carrying the relic to stop the clock and open the east exit, or take the longer north route. Waiting out the clock ends the game.\nOpen Help → Cookbook → Countdown Escape with Override Switch → Start this recipe to inspect its saved settings. The field journal and 100-point ending belong only to the sample game.\nCommands: use override switch; take ancient relic; use override switch; wait; east; use field journal",
  "mapRooms": [
    {
      "id": "lesson_vault",
      "name": "Relic Vault",
      "description": "Take the relic to begin. Use the override switch, then escape east. A longer route goes north through the corridor.",
      "reentryEnabled": false,
      "reentryDesc": "",
      "hint": "",
      "dark": false,
      "roomType": "regular",
      "x": 100,
      "y": 100,
      "width": 160,
      "height": 64,
      "color": "#000000",
      "blockedDescriptions": {
        "east": "Use the override while carrying the relic to open this exit."
      }
    },
    {
      "id": "lesson_corridor",
      "name": "Escape Corridor",
      "description": "The vault is south and the outside is east.",
      "reentryEnabled": false,
      "reentryDesc": "",
      "hint": "",
      "dark": false,
      "roomType": "regular",
      "x": 320,
      "y": 100,
      "width": 160,
      "height": 64,
      "color": "#000000",
      "blockedDescriptions": {}
    },
    {
      "id": "lesson_outside",
      "name": "Open Hillside",
      "description": "You have reached the outside.",
      "reentryEnabled": false,
      "reentryDesc": "",
      "hint": "",
      "dark": false,
      "roomType": "regular",
      "x": 540,
      "y": 100,
      "width": 160,
      "height": 64,
      "color": "#000000"
    }
  ],
  "mapExits": [
    {
      "id": "lesson_route_override",
      "fromRoom": "lesson_vault",
      "toRoom": "lesson_outside",
      "direction": "east",
      "locked": false,
      "when": "lesson_open"
    },
    {
      "id": "lesson_route_long",
      "fromRoom": "lesson_vault",
      "toRoom": "lesson_corridor",
      "direction": "north",
      "locked": false
    },
    {
      "id": "lesson_route_return",
      "fromRoom": "lesson_corridor",
      "toRoom": "lesson_vault",
      "direction": "south",
      "locked": false
    },
    {
      "id": "lesson_route_out",
      "fromRoom": "lesson_corridor",
      "toRoom": "lesson_outside",
      "direction": "east",
      "locked": false
    }
  ],
  "objects": [
    {
      "id": "lesson_relic",
      "name": "ancient relic",
      "description": "Taking the relic starts the collapse clock.",
      "article": "",
      "location": "lesson_vault",
      "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_override",
      "name": "override switch",
      "description": "Use this while carrying the relic to stop the clock and open the east exit.",
      "article": "",
      "location": "lesson_vault",
      "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",
    "creator-features-v1",
    "mechanics-builder-v1"
  ]
}
