{
  "version": "1.1",
  "name": "Simulate Cutscenes with Room Events and Stop",
  "startRoom": "lesson_path",
  "author": "TAGMaker",
  "description": "The first entry to a bridge plays a short ordered scene, moves one existing rider into view and records the event. Stop ends only that action list; the player can still talk, travel and finish 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_path.taml",
      "content": "room lesson_path\n  exit north: lesson_bridge\n  name: \"Bridge Approach\"\n  description: \"The bridge lies north.\"\n  dark: false\nend"
    },
    {
      "path": "rooms/lesson_bridge.taml",
      "content": "room lesson_bridge\n  exit south: lesson_path\n  name: \"Ambush Bridge\"\n  description: \"A weathered bridge spans the ravine. The approach is south.\"\n  dark: false\nend"
    },
    {
      "path": "npcs/lesson_rider.taml",
      "content": "npc lesson_rider\n  name: \"masked rider\"\n  description: \"A masked rider has appeared on the bridge.\"\n  location: nowhere\n  mobile: true\n  follow: false\n  health: 100\n  combat_side: neutral\n  auto_fight: false\n  attack_power: 10\n  defense: 0\n  trust: 50\n  dialogue default:\n    print \"lesson rider looks at you in silence.\"\n  end\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_played",
        "name": "played",
        "description": "Progress remembered by this recipe.",
        "type": "boolean",
        "initial": false
      }
    ],
    "rules": [
      {
        "id": "lesson_scene",
        "name": "scene",
        "enabled": true,
        "trigger": {
          "kind": "room",
          "target": "lesson_bridge",
          "event": "after_first"
        },
        "match": "all",
        "conditions": [],
        "actions": [
          {
            "kind": "message",
            "value": "Halfway across the bridge, loose ropes whip in the wind."
          },
          {
            "kind": "move_npc",
            "target": "lesson_rider",
            "destination": "lesson_bridge"
          },
          {
            "kind": "message",
            "value": "A masked rider appears on the far side."
          },
          {
            "kind": "message",
            "value": "The rider warns you to turn back."
          },
          {
            "kind": "state",
            "target": "lesson_played",
            "value": true
          },
          {
            "kind": "stop"
          },
          {
            "kind": "message",
            "value": "This line must never appear."
          }
        ],
        "otherwise": "",
        "once": true
      },
      {
        "id": "lesson_talk",
        "name": "talk",
        "enabled": true,
        "trigger": {
          "kind": "npc",
          "target": "lesson_rider",
          "event": "talk"
        },
        "match": "all",
        "conditions": [],
        "actions": [
          {
            "kind": "message",
            "value": "The rider refuses to explain the warning."
          }
        ],
        "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_played",
            "operator": "==",
            "value": true
          }
        ],
        "actions": [
          {
            "kind": "message",
            "value": "The one-time scene finished without stopping the game. 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": "17-simulate-cutscenes-with-room-events-and-stop",
        "choices": {
          "path": {
            "existing": "",
            "name": "Bridge Approach",
            "description": "The bridge lies north."
          },
          "bridge": {
            "existing": "",
            "name": "Ambush Bridge",
            "description": "A weathered bridge spans the ravine. The approach is south."
          },
          "rider": {
            "existing": "",
            "name": "masked rider",
            "description": "A masked rider has appeared on the bridge."
          }
        },
        "values": {
          "first": "Halfway across the bridge, loose ropes whip in the wind.",
          "second": "A masked rider appears on the far side.",
          "third": "The rider warns you to turn back.",
          "talk": "The rider refuses to explain the warning."
        },
        "reuseRoutes": {}
      },
      "owned": [
        {
          "path": "files",
          "key": "rooms/lesson_path.taml",
          "after": {
            "path": "rooms/lesson_path.taml",
            "name": "lesson_path.taml",
            "content": "room lesson_path\n  exit north: lesson_bridge\n  name: \"Bridge Approach\"\n  description: \"The bridge lies north.\"\n  dark: false\nend",
            "isDirty": true
          }
        },
        {
          "path": "files",
          "key": "rooms/lesson_bridge.taml",
          "after": {
            "path": "rooms/lesson_bridge.taml",
            "name": "lesson_bridge.taml",
            "content": "room lesson_bridge\n  exit south: lesson_path\n  name: \"Ambush Bridge\"\n  description: \"A weathered bridge spans the ravine. The approach is south.\"\n  dark: false\nend",
            "isDirty": true
          }
        },
        {
          "path": "files",
          "key": "npcs/lesson_rider.taml",
          "after": {
            "path": "npcs/lesson_rider.taml",
            "name": "lesson_rider.taml",
            "content": "npc lesson_rider\n  name: \"masked rider\"\n  description: \"A masked rider has appeared on the bridge.\"\n  location: nowhere\n  mobile: true\n  follow: false\n  health: 100\n  combat_side: neutral\n  auto_fight: false\n  attack_power: 10\n  defense: 0\n  trust: 50\n  dialogue default:\n    print \"lesson rider looks at you in silence.\"\n  end\nend",
            "isDirty": true
          }
        },
        {
          "path": "npcs",
          "key": "lesson_rider",
          "after": {
            "id": "lesson_rider",
            "name": "masked rider",
            "description": "A masked rider has appeared on the bridge.",
            "location": "nowhere",
            "mobile": true,
            "aliases": [],
            "onEnter": "",
            "onExamine": "",
            "onTalk": "",
            "onAttack": "",
            "onDeath": "",
            "onFollow": "",
            "onAutoAttack": "",
            "onTrustChange": "",
            "onGive": "",
            "onBeforeTalk": "",
            "onAfterTalk": "",
            "onBeforeAttack": "",
            "onAfterAttack": "",
            "onDamage": "",
            "onHeal": "",
            "onMove": "",
            "onLeave": "",
            "followPlayer": false,
            "health": 100,
            "combatSide": "neutral",
            "autoFight": false,
            "attackPower": 10,
            "defense": 0,
            "trustLevel": 50,
            "conversationEnabled": false,
            "convGreeting": "",
            "convFarewell": "",
            "convTopics": [],
            "dialogues": [
              {
                "id": "default",
                "trigger": "default",
                "body": "print \"lesson rider looks at you in silence.\""
              }
            ]
          }
        },
        {
          "path": "mapRooms",
          "key": "lesson_path",
          "after": {
            "id": "lesson_path",
            "name": "Bridge Approach",
            "description": "The bridge lies north.",
            "reentryEnabled": false,
            "reentryDesc": "",
            "hint": "",
            "dark": false,
            "roomType": "regular",
            "x": 100,
            "y": 100,
            "width": 160,
            "height": 64,
            "color": "#000000",
            "blockedDescriptions": {}
          }
        },
        {
          "path": "mapRooms",
          "key": "lesson_bridge",
          "after": {
            "id": "lesson_bridge",
            "name": "Ambush Bridge",
            "description": "A weathered bridge spans the ravine. The approach 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_bridge",
          "after": {
            "id": "lesson_route_bridge",
            "fromRoom": "lesson_path",
            "toRoom": "lesson_bridge",
            "direction": "north",
            "locked": false
          }
        },
        {
          "path": "mapExits",
          "key": "lesson_route_return",
          "after": {
            "id": "lesson_route_return",
            "fromRoom": "lesson_bridge",
            "toRoom": "lesson_path",
            "direction": "south",
            "locked": false
          }
        },
        {
          "path": "manifest.story.states",
          "key": "lesson_played",
          "after": {
            "id": "lesson_played",
            "name": "played",
            "description": "Progress remembered by this recipe.",
            "type": "boolean",
            "initial": false
          }
        },
        {
          "path": "manifest.story.rules",
          "key": "lesson_scene",
          "after": {
            "id": "lesson_scene",
            "name": "scene",
            "enabled": true,
            "trigger": {
              "kind": "room",
              "target": "lesson_bridge",
              "event": "after_first"
            },
            "match": "all",
            "conditions": [],
            "actions": [
              {
                "kind": "message",
                "value": "Halfway across the bridge, loose ropes whip in the wind."
              },
              {
                "kind": "move_npc",
                "target": "lesson_rider",
                "destination": "lesson_bridge"
              },
              {
                "kind": "message",
                "value": "A masked rider appears on the far side."
              },
              {
                "kind": "message",
                "value": "The rider warns you to turn back."
              },
              {
                "kind": "state",
                "target": "lesson_played",
                "value": true
              },
              {
                "kind": "stop"
              },
              {
                "kind": "message",
                "value": "This line must never appear."
              }
            ],
            "otherwise": "",
            "once": true
          }
        },
        {
          "path": "manifest.story.rules",
          "key": "lesson_talk",
          "after": {
            "id": "lesson_talk",
            "name": "talk",
            "enabled": true,
            "trigger": {
              "kind": "npc",
              "target": "lesson_rider",
              "event": "talk"
            },
            "match": "all",
            "conditions": [],
            "actions": [
              {
                "kind": "message",
                "value": "The rider refuses to explain the warning."
              }
            ],
            "otherwise": "",
            "once": false
          }
        }
      ]
    }
  ],
  "creatorNotes": "The first entry to a bridge plays a short ordered scene, moves one existing rider into view and records the event. Stop ends only that action list; the player can still talk, travel and finish the game.\nOpen Help → Cookbook → Simulate Cutscenes with Room Events and Stop → Start this recipe to inspect its saved settings. The field journal and 100-point ending belong only to the sample game.\nCommands: north; talk masked rider; south; north; talk masked rider; use field journal",
  "mapRooms": [
    {
      "id": "lesson_path",
      "name": "Bridge Approach",
      "description": "The bridge lies north.",
      "reentryEnabled": false,
      "reentryDesc": "",
      "hint": "",
      "dark": false,
      "roomType": "regular",
      "x": 100,
      "y": 100,
      "width": 160,
      "height": 64,
      "color": "#000000",
      "blockedDescriptions": {}
    },
    {
      "id": "lesson_bridge",
      "name": "Ambush Bridge",
      "description": "A weathered bridge spans the ravine. The approach 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_bridge",
      "fromRoom": "lesson_path",
      "toRoom": "lesson_bridge",
      "direction": "north",
      "locked": false
    },
    {
      "id": "lesson_route_return",
      "fromRoom": "lesson_bridge",
      "toRoom": "lesson_path",
      "direction": "south",
      "locked": false
    }
  ],
  "objects": [
    {
      "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": [
    {
      "id": "lesson_rider",
      "name": "masked rider",
      "description": "A masked rider has appeared on the bridge.",
      "location": "nowhere",
      "mobile": true,
      "aliases": [],
      "onEnter": "",
      "onExamine": "",
      "onTalk": "",
      "onAttack": "",
      "onDeath": "",
      "onFollow": "",
      "onAutoAttack": "",
      "onTrustChange": "",
      "onGive": "",
      "onBeforeTalk": "",
      "onAfterTalk": "",
      "onBeforeAttack": "",
      "onAfterAttack": "",
      "onDamage": "",
      "onHeal": "",
      "onMove": "",
      "onLeave": "",
      "followPlayer": false,
      "health": 100,
      "combatSide": "neutral",
      "autoFight": false,
      "attackPower": 10,
      "defense": 0,
      "trustLevel": 50,
      "conversationEnabled": false,
      "convGreeting": "",
      "convFarewell": "",
      "convTopics": [],
      "dialogues": [
        {
          "id": "default",
          "trigger": "default",
          "body": "print \"lesson rider looks at you in silence.\""
        }
      ]
    }
  ],
  "activeMechanics": [],
  "verbAliases": [],
  "scripts": [],
  "worldEvents": [],
  "customMechanicDefs": [],
  "savedMechanicTemplates": [],
  "objectiveSets": [],
  "gameOutliner": {},
  "customRoomTemplates": [],
  "customObjectTemplates": [],
  "customNpcTemplates": [],
  "customSavedScripts": [],
  "requiredCapabilities": [
    "story-rules-v1"
  ]
}
