{
  "version": "1.1",
  "name": "Dramatic Ending Scene",
  "startRoom": "lesson_room",
  "author": "TAGMaker",
  "description": "Light a beacon, then use the departure gate to begin an ordered farewell scene and select a named ending. Trying to leave first gives a useful reminder.",
  "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: \"Departure Shore\"\n  description: \"Use the beacon to light it. Then use the departure gate to finish.\"\n  dark: false\nend"
    },
    {
      "path": "objects/lesson_beacon.taml",
      "content": "object lesson_beacon\n  name: \"beacon\"\n  description: \"A beacon waiting to guide the rescue ship.\"\n  location: lesson_room\n  droppable: false\n  use_give: true\n  weight: 0.1\nend"
    },
    {
      "path": "objects/lesson_gate.taml",
      "content": "object lesson_gate\n  name: \"departure gate\"\n  description: \"The final departure waits for the beacon.\"\n  location: lesson_room\n  droppable: false\n  use_give: true\n  weight: 0.1\nend"
    }
  ],
  "story": {
    "version": 1,
    "states": [
      {
        "id": "lesson_ready",
        "name": "ready",
        "description": "Progress remembered by this recipe.",
        "type": "boolean",
        "initial": false
      },
      {
        "id": "lesson_finished",
        "name": "finished",
        "description": "Progress remembered by this recipe.",
        "type": "boolean",
        "initial": false
      }
    ],
    "rules": [
      {
        "id": "lesson_beacon",
        "name": "beacon",
        "enabled": true,
        "trigger": {
          "kind": "object",
          "target": "lesson_beacon",
          "event": "use"
        },
        "match": "all",
        "conditions": [],
        "actions": [
          {
            "kind": "state",
            "target": "lesson_ready",
            "value": true
          },
          {
            "kind": "message",
            "value": "The beacon shines."
          }
        ],
        "otherwise": "",
        "once": true,
        "repeatText": "The beacon is already lit."
      },
      {
        "id": "lesson_depart",
        "name": "depart",
        "enabled": true,
        "trigger": {
          "kind": "object",
          "target": "lesson_gate",
          "event": "use"
        },
        "match": "all",
        "conditions": [
          {
            "kind": "state",
            "target": "lesson_ready",
            "operator": "==",
            "value": true
          }
        ],
        "actions": [
          {
            "kind": "scene_start",
            "target": "lesson_farewell"
          }
        ],
        "otherwise": "Light the beacon before you depart.",
        "once": true
      }
    ],
    "features": {
      "version": 1,
      "scenes": [
        {
          "id": "lesson_farewell",
          "name": "Departure farewell",
          "enabled": true,
          "automatic": false,
          "priority": 10,
          "recurring": false,
          "startConditions": [],
          "startMatch": "all",
          "endConditions": [],
          "endMatch": "all",
          "entryActions": [
            {
              "kind": "message",
              "value": "A ship’s horn rolls across the bay."
            },
            {
              "kind": "message",
              "value": "You look back once as the beacon shines over the water."
            },
            {
              "kind": "ending",
              "target": "lesson_rescue"
            }
          ],
          "activeActions": [],
          "exitActions": []
        }
      ],
      "endings": [
        {
          "id": "lesson_rescue",
          "name": "Rescued",
          "enabled": true,
          "automatic": false,
          "priority": 0,
          "conditions": [],
          "match": "all",
          "text": "The ship carries you safely home.",
          "actions": [
            {
              "kind": "state",
              "target": "lesson_finished",
              "value": true
            }
          ]
        }
      ]
    }
  },
  "cookbookRecipes": [
    {
      "version": 1,
      "settings": {
        "instance": "lesson",
        "recipeId": "69-dramatic-ending-scene",
        "choices": {
          "room": {
            "existing": "",
            "name": "Departure Shore",
            "description": "Use the beacon to light it. Then use the departure gate to finish."
          },
          "beacon": {
            "existing": "",
            "name": "beacon",
            "description": "A beacon waiting to guide the rescue ship."
          },
          "gate": {
            "existing": "",
            "name": "departure gate",
            "description": "The final departure waits for the beacon."
          }
        },
        "values": {
          "first": "A ship’s horn rolls across the bay.",
          "second": "You look back once as the beacon shines over the water.",
          "ending": "The ship carries you safely home.",
          "failure": "Light the beacon before you depart."
        },
        "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: \"Departure Shore\"\n  description: \"Use the beacon to light it. Then use the departure gate to finish.\"\n  dark: false\nend",
            "isDirty": true
          }
        },
        {
          "path": "files",
          "key": "objects/lesson_beacon.taml",
          "after": {
            "path": "objects/lesson_beacon.taml",
            "name": "lesson_beacon.taml",
            "content": "object lesson_beacon\n  name: \"beacon\"\n  description: \"A beacon waiting to guide the rescue ship.\"\n  location: lesson_room\n  droppable: false\n  use_give: true\n  weight: 0.1\nend",
            "isDirty": true
          }
        },
        {
          "path": "files",
          "key": "objects/lesson_gate.taml",
          "after": {
            "path": "objects/lesson_gate.taml",
            "name": "lesson_gate.taml",
            "content": "object lesson_gate\n  name: \"departure gate\"\n  description: \"The final departure waits for the beacon.\"\n  location: lesson_room\n  droppable: false\n  use_give: true\n  weight: 0.1\nend",
            "isDirty": true
          }
        },
        {
          "path": "objects",
          "key": "lesson_beacon",
          "after": {
            "id": "lesson_beacon",
            "name": "beacon",
            "description": "A beacon waiting to guide the rescue ship.",
            "article": "",
            "location": "lesson_room",
            "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": "objects",
          "key": "lesson_gate",
          "after": {
            "id": "lesson_gate",
            "name": "departure gate",
            "description": "The final departure waits for the beacon.",
            "article": "",
            "location": "lesson_room",
            "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_room",
          "after": {
            "id": "lesson_room",
            "name": "Departure Shore",
            "description": "Use the beacon to light it. Then use the departure gate to finish.",
            "reentryEnabled": false,
            "reentryDesc": "",
            "hint": "",
            "dark": false,
            "roomType": "regular",
            "x": 100,
            "y": 100,
            "width": 160,
            "height": 64,
            "color": "#000000"
          }
        },
        {
          "path": "manifest.story.states",
          "key": "lesson_ready",
          "after": {
            "id": "lesson_ready",
            "name": "ready",
            "description": "Progress remembered by this recipe.",
            "type": "boolean",
            "initial": false
          }
        },
        {
          "path": "manifest.story.states",
          "key": "lesson_finished",
          "after": {
            "id": "lesson_finished",
            "name": "finished",
            "description": "Progress remembered by this recipe.",
            "type": "boolean",
            "initial": false
          }
        },
        {
          "path": "manifest.story.rules",
          "key": "lesson_beacon",
          "after": {
            "id": "lesson_beacon",
            "name": "beacon",
            "enabled": true,
            "trigger": {
              "kind": "object",
              "target": "lesson_beacon",
              "event": "use"
            },
            "match": "all",
            "conditions": [],
            "actions": [
              {
                "kind": "state",
                "target": "lesson_ready",
                "value": true
              },
              {
                "kind": "message",
                "value": "The beacon shines."
              }
            ],
            "otherwise": "",
            "once": true,
            "repeatText": "The beacon is already lit."
          }
        },
        {
          "path": "manifest.story.rules",
          "key": "lesson_depart",
          "after": {
            "id": "lesson_depart",
            "name": "depart",
            "enabled": true,
            "trigger": {
              "kind": "object",
              "target": "lesson_gate",
              "event": "use"
            },
            "match": "all",
            "conditions": [
              {
                "kind": "state",
                "target": "lesson_ready",
                "operator": "==",
                "value": true
              }
            ],
            "actions": [
              {
                "kind": "scene_start",
                "target": "lesson_farewell"
              }
            ],
            "otherwise": "Light the beacon before you depart.",
            "once": true
          }
        },
        {
          "path": "manifest.story.features.scenes",
          "key": "lesson_farewell",
          "after": {
            "id": "lesson_farewell",
            "name": "Departure farewell",
            "enabled": true,
            "automatic": false,
            "priority": 10,
            "recurring": false,
            "startConditions": [],
            "startMatch": "all",
            "endConditions": [],
            "endMatch": "all",
            "entryActions": [
              {
                "kind": "message",
                "value": "A ship’s horn rolls across the bay."
              },
              {
                "kind": "message",
                "value": "You look back once as the beacon shines over the water."
              },
              {
                "kind": "ending",
                "target": "lesson_rescue"
              }
            ],
            "activeActions": [],
            "exitActions": []
          }
        },
        {
          "path": "manifest.story.features.endings",
          "key": "lesson_rescue",
          "after": {
            "id": "lesson_rescue",
            "name": "Rescued",
            "enabled": true,
            "automatic": false,
            "priority": 0,
            "conditions": [],
            "match": "all",
            "text": "The ship carries you safely home.",
            "actions": [
              {
                "kind": "state",
                "target": "lesson_finished",
                "value": true
              }
            ]
          }
        }
      ]
    }
  ],
  "creatorNotes": "Light a beacon, then use the departure gate to begin an ordered farewell scene and select a named ending. Trying to leave first gives a useful reminder. Open this recipe in Help to inspect its saved settings.",
  "mapRooms": [
    {
      "id": "lesson_room",
      "name": "Departure Shore",
      "description": "Use the beacon to light it. Then use the departure gate to finish.",
      "reentryEnabled": false,
      "reentryDesc": "",
      "hint": "",
      "dark": false,
      "roomType": "regular",
      "x": 100,
      "y": 100,
      "width": 160,
      "height": 64,
      "color": "#000000"
    }
  ],
  "mapExits": [],
  "objects": [
    {
      "id": "lesson_beacon",
      "name": "beacon",
      "description": "A beacon waiting to guide the rescue ship.",
      "article": "",
      "location": "lesson_room",
      "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": "lesson_gate",
      "name": "departure gate",
      "description": "The final departure waits for the beacon.",
      "article": "",
      "location": "lesson_room",
      "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": []
    }
  ],
  "npcs": [],
  "activeMechanics": [],
  "verbAliases": [],
  "scripts": [],
  "worldEvents": [],
  "customMechanicDefs": [],
  "savedMechanicTemplates": [],
  "objectiveSets": [],
  "gameOutliner": {},
  "customRoomTemplates": [],
  "customObjectTemplates": [],
  "customNpcTemplates": [],
  "customSavedScripts": [],
  "requiredCapabilities": [
    "story-rules-v1",
    "creator-features-v1"
  ]
}
