{
  "version": "1.0",
  "name": "Locked Door Tutorial",
  "author": "TAGMaker",
  "description": "A minimal two-room demo: find the key, unlock the door.",
  "startRoom": "entrance",
  "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: entrance\nend"
    },
    {
      "path": "scripts/on_turn_end.taml",
      "content": "script on_turn_end\nend"
    },
    {
      "path": "rooms/entrance.taml",
      "content": "room entrance\n  name: \"Entrance Hall\"\n  narrative: \"You wake to find yourself in a dimly lit hall. Stone walls press close on either side. A heavy iron door blocks the only exit to the north.\"\n  description: \"A dusty entrance hall. A heavy iron door blocks the north exit.\"\n  dark: false\n  exit north: vault when: brass_key_taken\n  blocked north: \"The iron door won't budge. You need the right key.\"\nend"
    },
    {
      "path": "rooms/vault.taml",
      "content": "room vault\n  name: \"The Vault\"\n  description: \"A small vault. Ancient coins and dusty ledgers line the shelves.\"\n  dark: false\n  exit south: entrance\nend"
    },
    {
      "path": "objects/brass_key.taml",
      "content": "object brass_key\n  name: \"Brass Key\"\n  description: \"An old brass key with ornate engravings. It looks like it fits a large lock.\"\n  article: \"a\"\n  location: entrance\n  takeable: true\n  weight: 0.1\n  on take:\n    set brass_key_taken = true\n    print \"The key feels heavy in your hand. Maybe it opens something.\"\n  end\nend"
    }
  ],
  "mapRooms": [
    {
      "id": "entrance",
      "name": "Entrance Hall",
      "description": "A dusty entrance hall.",
      "narrative": "",
      "dark": false,
      "x": 0,
      "y": 100,
      "width": 140,
      "height": 70,
      "color": "#ffffff",
      "roomType": "regular",
      "events": {},
      "blockedDescriptions": {
        "north": "The iron door won't budge. You need the right key."
      }
    },
    {
      "id": "vault",
      "name": "The Vault",
      "description": "A small vault.",
      "narrative": "",
      "dark": false,
      "x": 0,
      "y": -30,
      "width": 140,
      "height": 70,
      "color": "#ffffff",
      "roomType": "regular",
      "events": {}
    }
  ],
  "mapExits": [
    {
      "id": "exit-ent-n",
      "fromRoom": "entrance",
      "toRoom": "vault",
      "direction": "north",
      "locked": false,
      "when": "brass_key_taken"
    },
    {
      "id": "exit-vlt-s",
      "fromRoom": "vault",
      "toRoom": "entrance",
      "direction": "south",
      "locked": false
    }
  ],
  "objects": [
    {
      "id": "brass_key",
      "name": "Brass Key",
      "article": "a",
      "description": "An old brass key with ornate engravings.",
      "location": "entrance",
      "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.1,
      "aliases": [],
      "events": [
        {
          "id": "ev-take",
          "event": "take",
          "withTarget": "",
          "body": "set brass_key_taken = true\nprint \"The key feels heavy in your hand. Maybe it opens something.\""
        }
      ]
    }
  ],
  "npcs": [],
  "activeMechanics": [],
  "verbAliases": [],
  "scripts": [
    {
      "id": "game_start",
      "name": "on_game_start",
      "description": "Game start",
      "body": "goto: entrance"
    },
    {
      "id": "on_turn_end",
      "name": "on_turn_end",
      "description": "Turn end",
      "body": ""
    }
  ]
}
