{
  "version": "1.1",
  "name": "Atmospheric Warning Before Danger",
  "startRoom": "lesson_path",
  "author": "TAGMaker",
  "description": "A first-entry warning and visible claw marks prepare the player for a dangerous chamber. Entering danger causes real health loss; returning to the warning room does not repeat its first scare.",
  "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_ledge\n  name: \"Ridge Path\"\n  description: \"The warning ledge is north.\"\n  dark: false\nend"
    },
    {
      "path": "rooms/lesson_ledge.taml",
      "content": "room lesson_ledge\n  exit north: lesson_danger\n  exit south: lesson_path\n  name: \"Warning Ledge\"\n  narrative: \"A scraping sound echoes from the cavern. Fresh claw marks warn you to turn back.\"\n  description: \"Fresh claw marks cross the stone. The dangerous cavern is north; safety is south.\"\n  reentry: \"The claw marks still warn of danger ahead.\"\n  dark: false\nend"
    },
    {
      "path": "rooms/lesson_danger.taml",
      "content": "room lesson_danger\n  exit south: lesson_ledge\n  name: \"Claw Cavern\"\n  description: \"A snapping creature guards the passage. Retreat south.\"\n  dark: false\nend"
    },
    {
      "path": "objects/lesson_marks.taml",
      "content": "object lesson_marks\n  name: \"claw marks\"\n  description: \"Deep, fresh scratches point toward the cavern.\"\n  location: lesson_ledge\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"
    }
  ],
  "playerConfig": {
    "healthEnabled": true,
    "startingHealth": 100
  },
  "story": {
    "version": 1,
    "states": [
      {
        "id": "lesson_warned",
        "name": "warned",
        "description": "Progress remembered by this recipe.",
        "type": "boolean",
        "initial": false
      },
      {
        "id": "lesson_ventured",
        "name": "ventured",
        "description": "Progress remembered by this recipe.",
        "type": "boolean",
        "initial": false
      }
    ],
    "rules": [
      {
        "id": "lesson_warned",
        "name": "warned",
        "enabled": true,
        "trigger": {
          "kind": "room",
          "target": "lesson_ledge",
          "event": "after_first"
        },
        "match": "all",
        "conditions": [],
        "actions": [
          {
            "kind": "state",
            "target": "lesson_warned",
            "value": true
          }
        ],
        "otherwise": "",
        "once": true
      },
      {
        "id": "lesson_danger",
        "name": "danger",
        "enabled": true,
        "trigger": {
          "kind": "room",
          "target": "lesson_danger",
          "event": "enter"
        },
        "match": "all",
        "conditions": [],
        "actions": [
          {
            "kind": "state",
            "target": "lesson_ventured",
            "value": true
          },
          {
            "kind": "health",
            "operation": "add",
            "value": -10
          },
          {
            "kind": "message",
            "value": "The creature lunges and scratches you. You lose 10 health; retreat south."
          }
        ],
        "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_ventured",
            "operator": "==",
            "value": true
          }
        ],
        "actions": [
          {
            "kind": "message",
            "value": "Clear clues warned you before a real hazard. 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": "70-atmospheric-warning-before-danger",
        "choices": {
          "path": {
            "existing": "",
            "name": "Ridge Path",
            "description": "The warning ledge is north."
          },
          "ledge": {
            "existing": "",
            "name": "Warning Ledge",
            "description": "Fresh claw marks cross the stone. The dangerous cavern is north; safety is south."
          },
          "danger": {
            "existing": "",
            "name": "Claw Cavern",
            "description": "A snapping creature guards the passage. Retreat south."
          },
          "marks": {
            "existing": "",
            "name": "claw marks",
            "description": "Deep, fresh scratches point toward the cavern."
          }
        },
        "values": {
          "enableHealth": true,
          "warning": "A scraping sound echoes from the cavern. Fresh claw marks warn you to turn back.",
          "return": "The claw marks still warn of danger ahead.",
          "danger": "The creature lunges and scratches you. You lose 10 health; retreat south."
        },
        "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_ledge\n  name: \"Ridge Path\"\n  description: \"The warning ledge is north.\"\n  dark: false\nend",
            "isDirty": true
          }
        },
        {
          "path": "files",
          "key": "rooms/lesson_ledge.taml",
          "after": {
            "path": "rooms/lesson_ledge.taml",
            "name": "lesson_ledge.taml",
            "content": "room lesson_ledge\n  exit north: lesson_danger\n  exit south: lesson_path\n  name: \"Warning Ledge\"\n  narrative: \"A scraping sound echoes from the cavern. Fresh claw marks warn you to turn back.\"\n  description: \"Fresh claw marks cross the stone. The dangerous cavern is north; safety is south.\"\n  reentry: \"The claw marks still warn of danger ahead.\"\n  dark: false\nend",
            "isDirty": true
          }
        },
        {
          "path": "files",
          "key": "rooms/lesson_danger.taml",
          "after": {
            "path": "rooms/lesson_danger.taml",
            "name": "lesson_danger.taml",
            "content": "room lesson_danger\n  exit south: lesson_ledge\n  name: \"Claw Cavern\"\n  description: \"A snapping creature guards the passage. Retreat south.\"\n  dark: false\nend",
            "isDirty": true
          }
        },
        {
          "path": "files",
          "key": "objects/lesson_marks.taml",
          "after": {
            "path": "objects/lesson_marks.taml",
            "name": "lesson_marks.taml",
            "content": "object lesson_marks\n  name: \"claw marks\"\n  description: \"Deep, fresh scratches point toward the cavern.\"\n  location: lesson_ledge\n  droppable: false\n  use_give: true\n  weight: 0.1\nend",
            "isDirty": true
          }
        },
        {
          "path": "objects",
          "key": "lesson_marks",
          "after": {
            "id": "lesson_marks",
            "name": "claw marks",
            "description": "Deep, fresh scratches point toward the cavern.",
            "article": "",
            "location": "lesson_ledge",
            "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_path",
          "after": {
            "id": "lesson_path",
            "name": "Ridge Path",
            "description": "The warning ledge is north.",
            "reentryEnabled": false,
            "reentryDesc": "",
            "hint": "",
            "dark": false,
            "roomType": "regular",
            "x": 100,
            "y": 100,
            "width": 160,
            "height": 64,
            "color": "#000000",
            "blockedDescriptions": {}
          }
        },
        {
          "path": "mapRooms",
          "key": "lesson_ledge",
          "after": {
            "id": "lesson_ledge",
            "name": "Warning Ledge",
            "narrative": "A scraping sound echoes from the cavern. Fresh claw marks warn you to turn back.",
            "description": "Fresh claw marks cross the stone. The dangerous cavern is north; safety is south.",
            "reentryEnabled": true,
            "reentryDesc": "The claw marks still warn of danger ahead.",
            "hint": "",
            "dark": false,
            "roomType": "regular",
            "x": 320,
            "y": 100,
            "width": 160,
            "height": 64,
            "color": "#000000",
            "blockedDescriptions": {}
          }
        },
        {
          "path": "mapRooms",
          "key": "lesson_danger",
          "after": {
            "id": "lesson_danger",
            "name": "Claw Cavern",
            "description": "A snapping creature guards the passage. Retreat south.",
            "reentryEnabled": false,
            "reentryDesc": "",
            "hint": "",
            "dark": false,
            "roomType": "regular",
            "x": 540,
            "y": 100,
            "width": 160,
            "height": 64,
            "color": "#000000",
            "blockedDescriptions": {}
          }
        },
        {
          "path": "mapExits",
          "key": "lesson_route_ledge",
          "after": {
            "id": "lesson_route_ledge",
            "fromRoom": "lesson_path",
            "toRoom": "lesson_ledge",
            "direction": "north",
            "locked": false
          }
        },
        {
          "path": "mapExits",
          "key": "lesson_route_safe",
          "after": {
            "id": "lesson_route_safe",
            "fromRoom": "lesson_ledge",
            "toRoom": "lesson_path",
            "direction": "south",
            "locked": false
          }
        },
        {
          "path": "mapExits",
          "key": "lesson_route_danger",
          "after": {
            "id": "lesson_route_danger",
            "fromRoom": "lesson_ledge",
            "toRoom": "lesson_danger",
            "direction": "north",
            "locked": false
          }
        },
        {
          "path": "mapExits",
          "key": "lesson_route_retreat",
          "after": {
            "id": "lesson_route_retreat",
            "fromRoom": "lesson_danger",
            "toRoom": "lesson_ledge",
            "direction": "south",
            "locked": false
          }
        },
        {
          "path": "manifest.story.states",
          "key": "lesson_warned",
          "after": {
            "id": "lesson_warned",
            "name": "warned",
            "description": "Progress remembered by this recipe.",
            "type": "boolean",
            "initial": false
          }
        },
        {
          "path": "manifest.story.states",
          "key": "lesson_ventured",
          "after": {
            "id": "lesson_ventured",
            "name": "ventured",
            "description": "Progress remembered by this recipe.",
            "type": "boolean",
            "initial": false
          }
        },
        {
          "path": "manifest.story.rules",
          "key": "lesson_warned",
          "after": {
            "id": "lesson_warned",
            "name": "warned",
            "enabled": true,
            "trigger": {
              "kind": "room",
              "target": "lesson_ledge",
              "event": "after_first"
            },
            "match": "all",
            "conditions": [],
            "actions": [
              {
                "kind": "state",
                "target": "lesson_warned",
                "value": true
              }
            ],
            "otherwise": "",
            "once": true
          }
        },
        {
          "path": "manifest.story.rules",
          "key": "lesson_danger",
          "after": {
            "id": "lesson_danger",
            "name": "danger",
            "enabled": true,
            "trigger": {
              "kind": "room",
              "target": "lesson_danger",
              "event": "enter"
            },
            "match": "all",
            "conditions": [],
            "actions": [
              {
                "kind": "state",
                "target": "lesson_ventured",
                "value": true
              },
              {
                "kind": "health",
                "operation": "add",
                "value": -10
              },
              {
                "kind": "message",
                "value": "The creature lunges and scratches you. You lose 10 health; retreat south."
              }
            ],
            "otherwise": "",
            "once": false
          }
        },
        {
          "path": "manifest.playerConfig.healthEnabled",
          "key": "$value",
          "after": true
        },
        {
          "path": "manifest.playerConfig.startingHealth",
          "key": "$value",
          "after": 100
        }
      ]
    }
  ],
  "creatorNotes": "A first-entry warning and visible claw marks prepare the player for a dangerous chamber. Entering danger causes real health loss; returning to the warning room does not repeat its first scare.\nOpen Help → Cookbook → Atmospheric Warning Before Danger → Start this recipe to inspect its saved settings. The field journal and 100-point ending belong only to the sample game.\nCommands: north; examine claw marks; south; north; north; south; use field journal",
  "mapRooms": [
    {
      "id": "lesson_path",
      "name": "Ridge Path",
      "description": "The warning ledge is north.",
      "reentryEnabled": false,
      "reentryDesc": "",
      "hint": "",
      "dark": false,
      "roomType": "regular",
      "x": 100,
      "y": 100,
      "width": 160,
      "height": 64,
      "color": "#000000",
      "blockedDescriptions": {}
    },
    {
      "id": "lesson_ledge",
      "name": "Warning Ledge",
      "narrative": "A scraping sound echoes from the cavern. Fresh claw marks warn you to turn back.",
      "description": "Fresh claw marks cross the stone. The dangerous cavern is north; safety is south.",
      "reentryEnabled": true,
      "reentryDesc": "The claw marks still warn of danger ahead.",
      "hint": "",
      "dark": false,
      "roomType": "regular",
      "x": 320,
      "y": 100,
      "width": 160,
      "height": 64,
      "color": "#000000",
      "blockedDescriptions": {}
    },
    {
      "id": "lesson_danger",
      "name": "Claw Cavern",
      "description": "A snapping creature guards the passage. Retreat south.",
      "reentryEnabled": false,
      "reentryDesc": "",
      "hint": "",
      "dark": false,
      "roomType": "regular",
      "x": 540,
      "y": 100,
      "width": 160,
      "height": 64,
      "color": "#000000",
      "blockedDescriptions": {}
    }
  ],
  "mapExits": [
    {
      "id": "lesson_route_ledge",
      "fromRoom": "lesson_path",
      "toRoom": "lesson_ledge",
      "direction": "north",
      "locked": false
    },
    {
      "id": "lesson_route_safe",
      "fromRoom": "lesson_ledge",
      "toRoom": "lesson_path",
      "direction": "south",
      "locked": false
    },
    {
      "id": "lesson_route_danger",
      "fromRoom": "lesson_ledge",
      "toRoom": "lesson_danger",
      "direction": "north",
      "locked": false
    },
    {
      "id": "lesson_route_retreat",
      "fromRoom": "lesson_danger",
      "toRoom": "lesson_ledge",
      "direction": "south",
      "locked": false
    }
  ],
  "objects": [
    {
      "id": "lesson_marks",
      "name": "claw marks",
      "description": "Deep, fresh scratches point toward the cavern.",
      "article": "",
      "location": "lesson_ledge",
      "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"
  ]
}
