{
  "version": "1.1",
  "name": "Poison Room with Antidote",
  "startRoom": "lesson_hall",
  "author": "TAGMaker",
  "description": "Drink a carried antidote before entering a poison chamber to prevent damage. An unprotected first entry costs Health; protected entries leave Health unchanged.",
  "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_hall.taml",
      "content": "room lesson_hall\n  exit north: lesson_hazard\n  name: \"Antidote Station\"\n  description: \"Take and drink the antidote before entering the chamber north.\"\n  dark: false\nend"
    },
    {
      "path": "rooms/lesson_hazard.taml",
      "content": "room lesson_hazard\n  exit south: lesson_hall\n  name: \"Poison Chamber\"\n  description: \"Poison hangs in the air. The station is south.\"\n  dark: false\nend"
    },
    {
      "path": "objects/lesson_antidote.taml",
      "content": "object lesson_antidote\n  name: \"antidote\"\n  description: \"Drink this carried dose to gain protection.\"\n  location: lesson_hall\n  takeable: true\n  drinkable: 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_protected",
        "name": "protected",
        "description": "Progress remembered by this recipe.",
        "type": "boolean",
        "initial": false
      },
      {
        "id": "lesson_visited",
        "name": "visited",
        "description": "Progress remembered by this recipe.",
        "type": "boolean",
        "initial": false
      }
    ],
    "rules": [
      {
        "id": "lesson_drink",
        "name": "drink",
        "enabled": true,
        "trigger": {
          "kind": "object",
          "target": "lesson_antidote",
          "event": "drink"
        },
        "match": "all",
        "conditions": [
          {
            "kind": "inventory",
            "target": "lesson_antidote",
            "operator": "==",
            "value": true
          }
        ],
        "actions": [
          {
            "kind": "consume",
            "target": "lesson_antidote"
          },
          {
            "kind": "state",
            "target": "lesson_protected",
            "value": true
          },
          {
            "kind": "message",
            "value": "You drink the antidote. You are now protected from this poison."
          }
        ],
        "otherwise": "Take the antidote before drinking it.",
        "once": true
      },
      {
        "id": "lesson_hurt",
        "name": "hurt",
        "enabled": true,
        "trigger": {
          "kind": "room",
          "target": "lesson_hazard",
          "event": "enter"
        },
        "match": "all",
        "conditions": [
          {
            "kind": "state",
            "target": "lesson_protected",
            "operator": "==",
            "value": false
          }
        ],
        "actions": [
          {
            "kind": "health",
            "operation": "add",
            "value": -20
          },
          {
            "kind": "message",
            "value": "The poison burns your lungs. Drink the antidote before entering again."
          }
        ],
        "otherwise": "",
        "once": false
      },
      {
        "id": "lesson_safe",
        "name": "safe",
        "enabled": true,
        "trigger": {
          "kind": "room",
          "target": "lesson_hazard",
          "event": "enter"
        },
        "match": "all",
        "conditions": [
          {
            "kind": "state",
            "target": "lesson_protected",
            "operator": "==",
            "value": true
          }
        ],
        "actions": [
          {
            "kind": "state",
            "target": "lesson_visited",
            "value": true
          },
          {
            "kind": "message",
            "value": "The antidote protects you from the poison."
          }
        ],
        "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_visited",
            "operator": "==",
            "value": true
          }
        ],
        "actions": [
          {
            "kind": "message",
            "value": "The antidote protected you while you explored the poison chamber. 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": "poison-room-antidote",
        "choices": {
          "hall": {
            "existing": "",
            "name": "Antidote Station",
            "description": "Take and drink the antidote before entering the chamber north."
          },
          "hazard": {
            "existing": "",
            "name": "Poison Chamber",
            "description": "Poison hangs in the air. The station is south."
          },
          "antidote": {
            "existing": "",
            "name": "antidote",
            "description": "Drink this carried dose to gain protection."
          }
        },
        "values": {
          "drink": "You drink the antidote. You are now protected from this poison.",
          "danger": "The poison burns your lungs. Drink the antidote before entering again.",
          "protected": "The antidote protects you from the poison.",
          "damage": 20,
          "enableHealth": true
        },
        "reuseRoutes": {}
      },
      "owned": [
        {
          "path": "files",
          "key": "rooms/lesson_hall.taml",
          "after": {
            "path": "rooms/lesson_hall.taml",
            "name": "lesson_hall.taml",
            "content": "room lesson_hall\n  exit north: lesson_hazard\n  name: \"Antidote Station\"\n  description: \"Take and drink the antidote before entering the chamber north.\"\n  dark: false\nend",
            "isDirty": true
          }
        },
        {
          "path": "files",
          "key": "rooms/lesson_hazard.taml",
          "after": {
            "path": "rooms/lesson_hazard.taml",
            "name": "lesson_hazard.taml",
            "content": "room lesson_hazard\n  exit south: lesson_hall\n  name: \"Poison Chamber\"\n  description: \"Poison hangs in the air. The station is south.\"\n  dark: false\nend",
            "isDirty": true
          }
        },
        {
          "path": "files",
          "key": "objects/lesson_antidote.taml",
          "after": {
            "path": "objects/lesson_antidote.taml",
            "name": "lesson_antidote.taml",
            "content": "object lesson_antidote\n  name: \"antidote\"\n  description: \"Drink this carried dose to gain protection.\"\n  location: lesson_hall\n  takeable: true\n  drinkable: true\n  weight: 0.1\nend",
            "isDirty": true
          }
        },
        {
          "path": "objects",
          "key": "lesson_antidote",
          "after": {
            "id": "lesson_antidote",
            "name": "antidote",
            "description": "Drink this carried dose to gain protection.",
            "article": "",
            "location": "lesson_hall",
            "aliases": [],
            "visible": true,
            "takeable": true,
            "droppable": true,
            "useGive": false,
            "container": false,
            "switchable": false,
            "edible": false,
            "drinkable": true,
            "wearable": false,
            "weapon": false,
            "weight": 0.1,
            "locked": false,
            "lockKey": "",
            "events": []
          }
        },
        {
          "path": "mapRooms",
          "key": "lesson_hall",
          "after": {
            "id": "lesson_hall",
            "name": "Antidote Station",
            "description": "Take and drink the antidote before entering the chamber north.",
            "reentryEnabled": false,
            "reentryDesc": "",
            "hint": "",
            "dark": false,
            "roomType": "regular",
            "x": 100,
            "y": 100,
            "width": 160,
            "height": 64,
            "color": "#000000",
            "blockedDescriptions": {}
          }
        },
        {
          "path": "mapRooms",
          "key": "lesson_hazard",
          "after": {
            "id": "lesson_hazard",
            "name": "Poison Chamber",
            "description": "Poison hangs in the air. The station 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_danger",
          "after": {
            "id": "lesson_route_danger",
            "fromRoom": "lesson_hall",
            "toRoom": "lesson_hazard",
            "direction": "north",
            "locked": false
          }
        },
        {
          "path": "mapExits",
          "key": "lesson_route_return",
          "after": {
            "id": "lesson_route_return",
            "fromRoom": "lesson_hazard",
            "toRoom": "lesson_hall",
            "direction": "south",
            "locked": false
          }
        },
        {
          "path": "manifest.story.states",
          "key": "lesson_protected",
          "after": {
            "id": "lesson_protected",
            "name": "protected",
            "description": "Progress remembered by this recipe.",
            "type": "boolean",
            "initial": false
          }
        },
        {
          "path": "manifest.story.states",
          "key": "lesson_visited",
          "after": {
            "id": "lesson_visited",
            "name": "visited",
            "description": "Progress remembered by this recipe.",
            "type": "boolean",
            "initial": false
          }
        },
        {
          "path": "manifest.story.rules",
          "key": "lesson_drink",
          "after": {
            "id": "lesson_drink",
            "name": "drink",
            "enabled": true,
            "trigger": {
              "kind": "object",
              "target": "lesson_antidote",
              "event": "drink"
            },
            "match": "all",
            "conditions": [
              {
                "kind": "inventory",
                "target": "lesson_antidote",
                "operator": "==",
                "value": true
              }
            ],
            "actions": [
              {
                "kind": "consume",
                "target": "lesson_antidote"
              },
              {
                "kind": "state",
                "target": "lesson_protected",
                "value": true
              },
              {
                "kind": "message",
                "value": "You drink the antidote. You are now protected from this poison."
              }
            ],
            "otherwise": "Take the antidote before drinking it.",
            "once": true
          }
        },
        {
          "path": "manifest.story.rules",
          "key": "lesson_hurt",
          "after": {
            "id": "lesson_hurt",
            "name": "hurt",
            "enabled": true,
            "trigger": {
              "kind": "room",
              "target": "lesson_hazard",
              "event": "enter"
            },
            "match": "all",
            "conditions": [
              {
                "kind": "state",
                "target": "lesson_protected",
                "operator": "==",
                "value": false
              }
            ],
            "actions": [
              {
                "kind": "health",
                "operation": "add",
                "value": -20
              },
              {
                "kind": "message",
                "value": "The poison burns your lungs. Drink the antidote before entering again."
              }
            ],
            "otherwise": "",
            "once": false
          }
        },
        {
          "path": "manifest.story.rules",
          "key": "lesson_safe",
          "after": {
            "id": "lesson_safe",
            "name": "safe",
            "enabled": true,
            "trigger": {
              "kind": "room",
              "target": "lesson_hazard",
              "event": "enter"
            },
            "match": "all",
            "conditions": [
              {
                "kind": "state",
                "target": "lesson_protected",
                "operator": "==",
                "value": true
              }
            ],
            "actions": [
              {
                "kind": "state",
                "target": "lesson_visited",
                "value": true
              },
              {
                "kind": "message",
                "value": "The antidote protects you from the poison."
              }
            ],
            "otherwise": "",
            "once": false
          }
        },
        {
          "path": "manifest.playerConfig.healthEnabled",
          "key": "$value",
          "after": true
        },
        {
          "path": "manifest.playerConfig.startingHealth",
          "key": "$value",
          "after": 100
        }
      ]
    }
  ],
  "creatorNotes": "Drink a carried antidote before entering a poison chamber to prevent damage. An unprotected first entry costs Health; protected entries leave Health unchanged.\nOpen Help → Cookbook → Poison Room with Antidote → Start this recipe to inspect its saved settings. The field journal and 100-point ending belong only to the sample game.\nCommands: north; south; take antidote; drink antidote; north; south; north; use field journal",
  "mapRooms": [
    {
      "id": "lesson_hall",
      "name": "Antidote Station",
      "description": "Take and drink the antidote before entering the chamber north.",
      "reentryEnabled": false,
      "reentryDesc": "",
      "hint": "",
      "dark": false,
      "roomType": "regular",
      "x": 100,
      "y": 100,
      "width": 160,
      "height": 64,
      "color": "#000000",
      "blockedDescriptions": {}
    },
    {
      "id": "lesson_hazard",
      "name": "Poison Chamber",
      "description": "Poison hangs in the air. The station 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_danger",
      "fromRoom": "lesson_hall",
      "toRoom": "lesson_hazard",
      "direction": "north",
      "locked": false
    },
    {
      "id": "lesson_route_return",
      "fromRoom": "lesson_hazard",
      "toRoom": "lesson_hall",
      "direction": "south",
      "locked": false
    }
  ],
  "objects": [
    {
      "id": "lesson_antidote",
      "name": "antidote",
      "description": "Drink this carried dose to gain protection.",
      "article": "",
      "location": "lesson_hall",
      "aliases": [],
      "visible": true,
      "takeable": true,
      "droppable": true,
      "useGive": false,
      "container": false,
      "switchable": false,
      "edible": false,
      "drinkable": true,
      "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"
  ]
}
