{
  "version": "1.1",
  "name": "Poisoned Room Requires Protection",
  "startRoom": "lesson_hall",
  "author": "TAGMaker",
  "description": "Wear the gas mask before entering the gas chamber. Carrying it is not enough. Damage happens on unprotected entry, and taking it off removes protection.",
  "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: \"Equipment Station\"\n  description: \"Take and wear the gas mask before going north.\"\n  dark: false\nend"
    },
    {
      "path": "rooms/lesson_hazard.taml",
      "content": "room lesson_hazard\n  exit south: lesson_hall\n  name: \"Gas Chamber\"\n  description: \"The equipment station is south.\"\n  dark: false\nend"
    },
    {
      "path": "objects/lesson_clothing.taml",
      "content": "object lesson_clothing\n  name: \"gas mask\"\n  description: \"Carry and wear this protective item before entering the hazard.\"\n  location: lesson_hall\n  takeable: true\n  wearable: 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_visit",
        "name": "protected visit",
        "description": "Progress remembered by this recipe.",
        "type": "boolean",
        "initial": false
      }
    ],
    "rules": [
      {
        "id": "lesson_hurt",
        "name": "hurt",
        "enabled": true,
        "trigger": {
          "kind": "room",
          "target": "lesson_hazard",
          "event": "enter"
        },
        "match": "all",
        "conditions": [
          {
            "kind": "object_state",
            "target": "lesson_clothing",
            "key": "worn",
            "operator": "==",
            "value": false
          }
        ],
        "actions": [
          {
            "kind": "health",
            "operation": "add",
            "value": -10
          },
          {
            "kind": "message",
            "value": "Without the worn gas mask, the hazard hurts you."
          }
        ],
        "otherwise": "",
        "once": false
      },
      {
        "id": "lesson_safe",
        "name": "safe",
        "enabled": true,
        "trigger": {
          "kind": "room",
          "target": "lesson_hazard",
          "event": "enter"
        },
        "match": "all",
        "conditions": [
          {
            "kind": "object_state",
            "target": "lesson_clothing",
            "key": "worn",
            "operator": "==",
            "value": true
          }
        ],
        "actions": [
          {
            "kind": "state",
            "target": "lesson_protected_visit",
            "value": true
          },
          {
            "kind": "message",
            "value": "The worn gas mask protects you."
          }
        ],
        "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_protected_visit",
            "operator": "==",
            "value": true
          }
        ],
        "actions": [
          {
            "kind": "message",
            "value": "Wearing the protective item prevented hazard damage. 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": "38-poisoned-room-requires-protection",
        "choices": {
          "hall": {
            "existing": "",
            "name": "Equipment Station",
            "description": "Take and wear the gas mask before going north."
          },
          "hazard": {
            "existing": "",
            "name": "Gas Chamber",
            "description": "The equipment station is south."
          },
          "clothing": {
            "existing": "",
            "name": "gas mask",
            "description": "Carry and wear this protective item before entering the hazard."
          }
        },
        "values": {
          "hurt": "Without the worn gas mask, the hazard hurts you.",
          "safe": "The worn gas mask protects you.",
          "damage": 10,
          "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: \"Equipment Station\"\n  description: \"Take and wear the gas mask before going 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: \"Gas Chamber\"\n  description: \"The equipment station is south.\"\n  dark: false\nend",
            "isDirty": true
          }
        },
        {
          "path": "files",
          "key": "objects/lesson_clothing.taml",
          "after": {
            "path": "objects/lesson_clothing.taml",
            "name": "lesson_clothing.taml",
            "content": "object lesson_clothing\n  name: \"gas mask\"\n  description: \"Carry and wear this protective item before entering the hazard.\"\n  location: lesson_hall\n  takeable: true\n  wearable: true\n  weight: 0.1\nend",
            "isDirty": true
          }
        },
        {
          "path": "objects",
          "key": "lesson_clothing",
          "after": {
            "id": "lesson_clothing",
            "name": "gas mask",
            "description": "Carry and wear this protective item before entering the hazard.",
            "article": "",
            "location": "lesson_hall",
            "aliases": [],
            "visible": true,
            "takeable": true,
            "droppable": true,
            "useGive": false,
            "container": false,
            "switchable": false,
            "edible": false,
            "drinkable": false,
            "wearable": true,
            "weapon": false,
            "weight": 0.1,
            "locked": false,
            "lockKey": "",
            "events": []
          }
        },
        {
          "path": "mapRooms",
          "key": "lesson_hall",
          "after": {
            "id": "lesson_hall",
            "name": "Equipment Station",
            "description": "Take and wear the gas mask before going 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": "Gas Chamber",
            "description": "The equipment 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_hazard",
          "after": {
            "id": "lesson_route_hazard",
            "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_visit",
          "after": {
            "id": "lesson_protected_visit",
            "name": "protected visit",
            "description": "Progress remembered by this recipe.",
            "type": "boolean",
            "initial": false
          }
        },
        {
          "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": "object_state",
                "target": "lesson_clothing",
                "key": "worn",
                "operator": "==",
                "value": false
              }
            ],
            "actions": [
              {
                "kind": "health",
                "operation": "add",
                "value": -10
              },
              {
                "kind": "message",
                "value": "Without the worn gas mask, the hazard hurts you."
              }
            ],
            "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": "object_state",
                "target": "lesson_clothing",
                "key": "worn",
                "operator": "==",
                "value": true
              }
            ],
            "actions": [
              {
                "kind": "state",
                "target": "lesson_protected_visit",
                "value": true
              },
              {
                "kind": "message",
                "value": "The worn gas mask protects you."
              }
            ],
            "otherwise": "",
            "once": false
          }
        },
        {
          "path": "manifest.playerConfig.healthEnabled",
          "key": "$value",
          "after": true
        },
        {
          "path": "manifest.playerConfig.startingHealth",
          "key": "$value",
          "after": 100
        }
      ]
    }
  ],
  "creatorNotes": "Wear the gas mask before entering the gas chamber. Carrying it is not enough. Damage happens on unprotected entry, and taking it off removes protection.\nOpen Help → Cookbook → Poisoned Room Requires Protection → Start this recipe to inspect its saved settings. The field journal and 100-point ending belong only to the sample game.\nCommands: take gas mask; north; south; wear gas mask; north; south; remove gas mask; north; south; wear gas mask; north; use field journal",
  "mapRooms": [
    {
      "id": "lesson_hall",
      "name": "Equipment Station",
      "description": "Take and wear the gas mask before going north.",
      "reentryEnabled": false,
      "reentryDesc": "",
      "hint": "",
      "dark": false,
      "roomType": "regular",
      "x": 100,
      "y": 100,
      "width": 160,
      "height": 64,
      "color": "#000000",
      "blockedDescriptions": {}
    },
    {
      "id": "lesson_hazard",
      "name": "Gas Chamber",
      "description": "The equipment 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_hazard",
      "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_clothing",
      "name": "gas mask",
      "description": "Carry and wear this protective item before entering the hazard.",
      "article": "",
      "location": "lesson_hall",
      "aliases": [],
      "visible": true,
      "takeable": true,
      "droppable": true,
      "useGive": false,
      "container": false,
      "switchable": false,
      "edible": false,
      "drinkable": false,
      "wearable": true,
      "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"
  ]
}
