{
  "version": "1.1",
  "name": "Wearable Object Ends Game",
  "startRoom": "lesson_room",
  "author": "TAGMaker",
  "description": "Wearing a cursed mask ends the game. Examining or carrying it is safe.",
  "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: \"Mask Chamber\"\n  description: \"A cursed mask rests here. Examine or take it safely; wearing it ends this story.\"\n  dark: false\nend"
    },
    {
      "path": "objects/lesson_mask.taml",
      "content": "object lesson_mask\n  name: \"cursed mask\"\n  description: \"The stone mask is warm. Wearing it binds you to its spirit.\"\n  location: lesson_room\n  takeable: true\n  wearable: true\n  weight: 0.1\nend"
    }
  ],
  "story": {
    "version": 1,
    "states": [
      {
        "id": "lesson_worn",
        "name": "worn",
        "description": "Progress remembered by this recipe.",
        "type": "boolean",
        "initial": false
      }
    ],
    "rules": [
      {
        "id": "lesson_ending",
        "name": "ending",
        "enabled": true,
        "trigger": {
          "kind": "object",
          "target": "lesson_mask",
          "event": "wear"
        },
        "match": "all",
        "conditions": [],
        "actions": [
          {
            "kind": "state",
            "target": "lesson_worn",
            "value": true
          },
          {
            "kind": "message",
            "value": "You lift the mask to your face. A voice whispers your name. Your old life ends here."
          },
          {
            "kind": "end",
            "value": "You lift the mask to your face. A voice whispers your name. Your old life ends here."
          }
        ],
        "otherwise": "",
        "once": true
      }
    ]
  },
  "cookbookRecipes": [
    {
      "version": 1,
      "settings": {
        "instance": "lesson",
        "recipeId": "wearable-object-ends-game",
        "choices": {
          "room": {
            "existing": "",
            "name": "Mask Chamber",
            "description": "A cursed mask rests here. Examine or take it safely; wearing it ends this story."
          },
          "mask": {
            "existing": "",
            "name": "cursed mask",
            "description": "The stone mask is warm. Wearing it binds you to its spirit."
          }
        },
        "values": {
          "ending": "You lift the mask to your face. A voice whispers your name. Your old life ends here."
        },
        "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: \"Mask Chamber\"\n  description: \"A cursed mask rests here. Examine or take it safely; wearing it ends this story.\"\n  dark: false\nend",
            "isDirty": true
          }
        },
        {
          "path": "files",
          "key": "objects/lesson_mask.taml",
          "after": {
            "path": "objects/lesson_mask.taml",
            "name": "lesson_mask.taml",
            "content": "object lesson_mask\n  name: \"cursed mask\"\n  description: \"The stone mask is warm. Wearing it binds you to its spirit.\"\n  location: lesson_room\n  takeable: true\n  wearable: true\n  weight: 0.1\nend",
            "isDirty": true
          }
        },
        {
          "path": "objects",
          "key": "lesson_mask",
          "after": {
            "id": "lesson_mask",
            "name": "cursed mask",
            "description": "The stone mask is warm. Wearing it binds you to its spirit.",
            "article": "",
            "location": "lesson_room",
            "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_room",
          "after": {
            "id": "lesson_room",
            "name": "Mask Chamber",
            "description": "A cursed mask rests here. Examine or take it safely; wearing it ends this story.",
            "reentryEnabled": false,
            "reentryDesc": "",
            "hint": "",
            "dark": false,
            "roomType": "regular",
            "x": 100,
            "y": 100,
            "width": 160,
            "height": 64,
            "color": "#000000"
          }
        },
        {
          "path": "manifest.story.states",
          "key": "lesson_worn",
          "after": {
            "id": "lesson_worn",
            "name": "worn",
            "description": "Progress remembered by this recipe.",
            "type": "boolean",
            "initial": false
          }
        },
        {
          "path": "manifest.story.rules",
          "key": "lesson_ending",
          "after": {
            "id": "lesson_ending",
            "name": "ending",
            "enabled": true,
            "trigger": {
              "kind": "object",
              "target": "lesson_mask",
              "event": "wear"
            },
            "match": "all",
            "conditions": [],
            "actions": [
              {
                "kind": "state",
                "target": "lesson_worn",
                "value": true
              },
              {
                "kind": "message",
                "value": "You lift the mask to your face. A voice whispers your name. Your old life ends here."
              },
              {
                "kind": "end",
                "value": "You lift the mask to your face. A voice whispers your name. Your old life ends here."
              }
            ],
            "otherwise": "",
            "once": true
          }
        }
      ]
    }
  ],
  "creatorNotes": "Wearing a cursed mask ends the game. Examining or carrying it is safe. Open this recipe in Help to inspect its saved settings.",
  "mapRooms": [
    {
      "id": "lesson_room",
      "name": "Mask Chamber",
      "description": "A cursed mask rests here. Examine or take it safely; wearing it ends this story.",
      "reentryEnabled": false,
      "reentryDesc": "",
      "hint": "",
      "dark": false,
      "roomType": "regular",
      "x": 100,
      "y": 100,
      "width": 160,
      "height": 64,
      "color": "#000000"
    }
  ],
  "mapExits": [],
  "objects": [
    {
      "id": "lesson_mask",
      "name": "cursed mask",
      "description": "The stone mask is warm. Wearing it binds you to its spirit.",
      "article": "",
      "location": "lesson_room",
      "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": []
    }
  ],
  "npcs": [],
  "activeMechanics": [],
  "verbAliases": [],
  "scripts": [],
  "worldEvents": [],
  "customMechanicDefs": [],
  "savedMechanicTemplates": [],
  "objectiveSets": [],
  "gameOutliner": {},
  "customRoomTemplates": [],
  "customObjectTemplates": [],
  "customNpcTemplates": [],
  "customSavedScripts": [],
  "requiredCapabilities": [
    "story-rules-v1"
  ]
}
