{
  "version": "1.0",
  "name": "Mystery Cabin",
  "author": "TAGMaker",
  "description": "Explore a mysterious cabin and uncover its secret.",
  "startRoom": "porch",
  "created": "2026-01-01T00:00:00.000Z",
  "modified": "2026-01-01T00:00:00.000Z",
  "files": [
    {
      "path": "scripts/game_start.taml",
      "content": "script on_game_start\n  goto: porch\nend"
    },
    {
      "path": "scripts/on_turn_end.taml",
      "content": "script on_turn_end\nend"
    },
    {
      "path": "rooms/porch.taml",
      "content": "room porch\n  name: \"Cabin Porch\"\n  narrative: \"You stand on the weathered porch of an abandoned cabin. Pine trees press close on all sides. Silence, except for wind through the branches.\"\n  description: \"A creaky porch. The cabin door is open to the east.\"\n  dark: false\n  exit east: main_room\nend"
    },
    {
      "path": "rooms/main_room.taml",
      "content": "room main_room\n  name: \"Main Room\"\n  description: \"A dusty main room. A table sits in the centre with a folded note on it. A trap door in the floor leads down to a cellar.\"\n  dark: false\n  exit west: porch\n  exit down: cellar\nend"
    },
    {
      "path": "rooms/cellar.taml",
      "content": "room cellar\n  name: \"Root Cellar\"\n  description: \"A damp cellar. Shelves of old jars line the walls. Something glints in the corner.\"\n  dark: true\n  exit up: main_room\nend"
    },
    {
      "path": "objects/dusty_note.taml",
      "content": "object dusty_note\n  name: \"Dusty Note\"\n  description: \"A folded piece of paper.\"\n  article: \"a\"\n  location: main_room\n  visible: true\n  takeable: true\n  weight: 0\n  on examine:\n    print \"The note reads:\"\n    print \"\"\n    print \"  \\\"I hid the silver locket in the cellar.\"\n    print \"   The dark will keep it safe.\\\"\"\n    print \"\"\n    print \"  — M.\"\n    set note_read = true\n  end\nend"
    },
    {
      "path": "objects/silver_locket.taml",
      "content": "object silver_locket\n  name: \"Silver Locket\"\n  description: \"A small silver locket on a delicate chain. It opens to reveal a tiny portrait.\"\n  article: \"a\"\n  location: cellar\n  visible: true\n  takeable: true\n  weight: 0.1\n  on examine:\n    print \"The locket holds a tiny portrait — a woman with kind eyes.\"\n    print \"On the back, an engraving: \\\"For M., always.\\\"\"\n  end\nend"
    }
  ],
  "mapRooms": [
    {
      "id": "porch",
      "name": "Cabin Porch",
      "description": "A creaky porch.",
      "dark": false,
      "x": -160,
      "y": 0,
      "width": 140,
      "height": 70,
      "color": "#ffffff",
      "roomType": "regular",
      "events": {}
    },
    {
      "id": "main_room",
      "name": "Main Room",
      "description": "A dusty main room.",
      "dark": false,
      "x": 10,
      "y": 0,
      "width": 140,
      "height": 70,
      "color": "#ffffff",
      "roomType": "regular",
      "events": {}
    },
    {
      "id": "cellar",
      "name": "Root Cellar",
      "description": "A damp cellar.",
      "dark": true,
      "x": 10,
      "y": 120,
      "width": 140,
      "height": 70,
      "color": "#f5f5f5",
      "roomType": "regular",
      "events": {}
    }
  ],
  "mapExits": [
    {
      "id": "ex-por-e",
      "fromRoom": "porch",
      "toRoom": "main_room",
      "direction": "east",
      "locked": false
    },
    {
      "id": "ex-mai-w",
      "fromRoom": "main_room",
      "toRoom": "porch",
      "direction": "west",
      "locked": false
    },
    {
      "id": "ex-mai-d",
      "fromRoom": "main_room",
      "toRoom": "cellar",
      "direction": "down",
      "locked": false
    },
    {
      "id": "ex-cel-u",
      "fromRoom": "cellar",
      "toRoom": "main_room",
      "direction": "up",
      "locked": false
    }
  ],
  "objects": [
    {
      "id": "dusty_note",
      "name": "Dusty Note",
      "article": "a",
      "description": "A folded piece of paper.",
      "location": "main_room",
      "visible": true,
      "takeable": true,
      "droppable": true,
      "useGive": false,
      "switchable": false,
      "edible": false,
      "drinkable": false,
      "wearable": false,
      "container": false,
      "weapon": false,
      "locked": false,
      "lockKey": "",
      "weight": 0,
      "aliases": [
        "note",
        "paper"
      ],
      "events": [
        {
          "id": "ev-ex",
          "event": "examine",
          "withTarget": "",
          "body": "print \"The note reads:\"\nprint \"\"\nprint \"  \\\"I hid the silver locket in the cellar.\"\nprint \"   The dark will keep it safe.\\\"\"\nprint \"\"\nprint \"  — M.\"\nset note_read = true"
        }
      ]
    },
    {
      "id": "silver_locket",
      "name": "Silver Locket",
      "article": "a",
      "description": "A small silver locket on a delicate chain.",
      "location": "cellar",
      "visible": true,
      "takeable": true,
      "droppable": true,
      "useGive": false,
      "switchable": false,
      "edible": false,
      "drinkable": false,
      "wearable": true,
      "container": false,
      "weapon": false,
      "locked": false,
      "lockKey": "",
      "weight": 0.1,
      "aliases": [
        "locket"
      ],
      "events": [
        {
          "id": "ev-ex2",
          "event": "examine",
          "withTarget": "",
          "body": "print \"The locket holds a tiny portrait — a woman with kind eyes.\"\nprint \"On the back, an engraving: \\\"For M., always.\\\"\""
        }
      ]
    }
  ],
  "npcs": [],
  "activeMechanics": [],
  "verbAliases": [],
  "scripts": [
    {
      "id": "mc-start",
      "name": "on_game_start",
      "description": "Runs when the game starts.",
      "body": "goto: porch"
    },
    {
      "id": "mc-turn",
      "name": "on_turn_end",
      "description": "Runs after every player action.",
      "body": ""
    }
  ]
}
