{
  "version": "1.1",
  "name": "Guard Blocks Passage Until Bribed",
  "startRoom": "lesson_entry",
  "author": "TAGMaker",
  "description": "Give a silver coin to the guard to open the passage. Payment removes the coin once and the guard remembers it.",
  "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_entry.taml",
      "content": "room lesson_entry\n  blocked north: \"The gate guard blocks the way. Give the silver coin to it first.\"\n  exit north: lesson_beyond when: lesson_open\n  name: \"Guard Post\"\n  description: \"The gate guard blocks the way north. Take the silver coin, then give silver coin to gate guard.\"\n  dark: false\nend"
    },
    {
      "path": "rooms/lesson_beyond.taml",
      "content": "room lesson_beyond\n  exit south: lesson_entry\n  name: \"Palace Walk\"\n  description: \"The passage is open. You can return south.\"\n  dark: false\nend"
    },
    {
      "path": "objects/lesson_tool.taml",
      "content": "object lesson_tool\n  name: \"silver coin\"\n  description: \"A silver coin for this obstacle. Take it before using it.\"\n  location: lesson_entry\n  takeable: true\n  use_give: true\n  weight: 0.1\nend"
    },
    {
      "path": "npcs/lesson_gate.taml",
      "content": "npc lesson_gate\n  name: \"gate guard\"\n  description: \"The guard waits for payment before allowing passage.\"\n  location: lesson_entry\n  mobile: false\n  follow: false\n  health: 100\n  combat_side: neutral\n  auto_fight: false\n  attack_power: 10\n  defense: 0\n  trust: 50\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"
    }
  ],
  "story": {
    "version": 1,
    "states": [
      {
        "id": "lesson_open",
        "name": "open",
        "description": "Progress remembered by this recipe.",
        "type": "boolean",
        "initial": false
      }
    ],
    "rules": [
      {
        "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_open",
            "operator": "==",
            "value": true
          }
        ],
        "actions": [
          {
            "kind": "message",
            "value": "You cleared the gate guard and made the passage usable. 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
      }
    ],
    "features": {
      "version": 1,
      "recipes": [
        {
          "id": "lesson_clear_obstacle",
          "name": "clear obstacle",
          "enabled": true,
          "verbs": [
            "give"
          ],
          "unordered": true,
          "inputs": [
            {
              "objectId": "lesson_tool",
              "disposition": "consume"
            }
          ],
          "tools": [],
          "target": {
            "kind": "npc",
            "id": "lesson_gate"
          },
          "match": "all",
          "conditions": [],
          "actions": [
            {
              "kind": "state",
              "target": "lesson_open",
              "value": true
            }
          ],
          "once": true,
          "success": "The guard accepts your silver coin and steps aside. The passage north is clear.",
          "failure": "Carry the silver coin and give it to the gate guard.",
          "repeat": "This obstacle is already cleared. The way north remains open."
        }
      ]
    }
  },
  "cookbookRecipes": [
    {
      "version": 1,
      "settings": {
        "instance": "lesson",
        "recipeId": "9-guard-blocks-passage-until-bribed",
        "choices": {
          "entry": {
            "existing": "",
            "name": "Guard Post",
            "description": "The gate guard blocks the way north. Take the silver coin, then give silver coin to gate guard."
          },
          "beyond": {
            "existing": "",
            "name": "Palace Walk",
            "description": "The passage is open. You can return south."
          },
          "tool": {
            "existing": "",
            "name": "silver coin",
            "description": "A silver coin for this obstacle. Take it before using it."
          },
          "gate": {
            "existing": "",
            "name": "gate guard",
            "description": "The guard waits for payment before allowing passage."
          }
        },
        "values": {
          "success": "The guard accepts your silver coin and steps aside. The passage north is clear.",
          "failure": "Carry the silver coin and give it to the gate guard.",
          "repeat": "This obstacle is already cleared. The way north remains open.",
          "blocked": "The gate guard blocks the way. Give the silver coin to it first."
        },
        "reuseRoutes": {}
      },
      "owned": [
        {
          "path": "files",
          "key": "rooms/lesson_entry.taml",
          "after": {
            "path": "rooms/lesson_entry.taml",
            "name": "lesson_entry.taml",
            "content": "room lesson_entry\n  blocked north: \"The gate guard blocks the way. Give the silver coin to it first.\"\n  exit north: lesson_beyond when: lesson_open\n  name: \"Guard Post\"\n  description: \"The gate guard blocks the way north. Take the silver coin, then give silver coin to gate guard.\"\n  dark: false\nend",
            "isDirty": true
          }
        },
        {
          "path": "files",
          "key": "rooms/lesson_beyond.taml",
          "after": {
            "path": "rooms/lesson_beyond.taml",
            "name": "lesson_beyond.taml",
            "content": "room lesson_beyond\n  exit south: lesson_entry\n  name: \"Palace Walk\"\n  description: \"The passage is open. You can return south.\"\n  dark: false\nend",
            "isDirty": true
          }
        },
        {
          "path": "files",
          "key": "objects/lesson_tool.taml",
          "after": {
            "path": "objects/lesson_tool.taml",
            "name": "lesson_tool.taml",
            "content": "object lesson_tool\n  name: \"silver coin\"\n  description: \"A silver coin for this obstacle. Take it before using it.\"\n  location: lesson_entry\n  takeable: true\n  use_give: true\n  weight: 0.1\nend",
            "isDirty": true
          }
        },
        {
          "path": "files",
          "key": "npcs/lesson_gate.taml",
          "after": {
            "path": "npcs/lesson_gate.taml",
            "name": "lesson_gate.taml",
            "content": "npc lesson_gate\n  name: \"gate guard\"\n  description: \"The guard waits for payment before allowing passage.\"\n  location: lesson_entry\n  mobile: false\n  follow: false\n  health: 100\n  combat_side: neutral\n  auto_fight: false\n  attack_power: 10\n  defense: 0\n  trust: 50\nend",
            "isDirty": true
          }
        },
        {
          "path": "objects",
          "key": "lesson_tool",
          "after": {
            "id": "lesson_tool",
            "name": "silver coin",
            "description": "A silver coin for this obstacle. Take it before using it.",
            "article": "",
            "location": "lesson_entry",
            "aliases": [],
            "visible": true,
            "takeable": true,
            "droppable": true,
            "useGive": true,
            "container": false,
            "switchable": false,
            "edible": false,
            "drinkable": false,
            "wearable": false,
            "weapon": false,
            "weight": 0.1,
            "locked": false,
            "lockKey": "",
            "events": []
          }
        },
        {
          "path": "npcs",
          "key": "lesson_gate",
          "after": {
            "id": "lesson_gate",
            "name": "gate guard",
            "description": "The guard waits for payment before allowing passage.",
            "location": "lesson_entry",
            "mobile": false,
            "aliases": [],
            "onEnter": "",
            "onExamine": "",
            "onTalk": "",
            "onAttack": "",
            "onDeath": "",
            "onFollow": "",
            "onAutoAttack": "",
            "onTrustChange": "",
            "onGive": "",
            "onBeforeTalk": "",
            "onAfterTalk": "",
            "onBeforeAttack": "",
            "onAfterAttack": "",
            "onDamage": "",
            "onHeal": "",
            "onMove": "",
            "onLeave": "",
            "followPlayer": false,
            "health": 100,
            "combatSide": "neutral",
            "autoFight": false,
            "attackPower": 10,
            "defense": 0,
            "trustLevel": 50,
            "conversationEnabled": false,
            "convGreeting": "",
            "convFarewell": "",
            "convTopics": [],
            "dialogues": []
          }
        },
        {
          "path": "mapRooms",
          "key": "lesson_entry",
          "after": {
            "id": "lesson_entry",
            "name": "Guard Post",
            "description": "The gate guard blocks the way north. Take the silver coin, then give silver coin to gate guard.",
            "reentryEnabled": false,
            "reentryDesc": "",
            "hint": "",
            "dark": false,
            "roomType": "regular",
            "x": 100,
            "y": 100,
            "width": 160,
            "height": 64,
            "color": "#000000",
            "blockedDescriptions": {
              "north": "The gate guard blocks the way. Give the silver coin to it first."
            }
          }
        },
        {
          "path": "mapRooms",
          "key": "lesson_beyond",
          "after": {
            "id": "lesson_beyond",
            "name": "Palace Walk",
            "description": "The passage is open. You can return 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_through",
          "after": {
            "id": "lesson_route_through",
            "fromRoom": "lesson_entry",
            "toRoom": "lesson_beyond",
            "direction": "north",
            "locked": false,
            "when": "lesson_open"
          }
        },
        {
          "path": "mapExits",
          "key": "lesson_route_return",
          "after": {
            "id": "lesson_route_return",
            "fromRoom": "lesson_beyond",
            "toRoom": "lesson_entry",
            "direction": "south",
            "locked": false
          }
        },
        {
          "path": "manifest.story.states",
          "key": "lesson_open",
          "after": {
            "id": "lesson_open",
            "name": "open",
            "description": "Progress remembered by this recipe.",
            "type": "boolean",
            "initial": false
          }
        },
        {
          "path": "manifest.story.features.recipes",
          "key": "lesson_clear_obstacle",
          "after": {
            "id": "lesson_clear_obstacle",
            "name": "clear obstacle",
            "enabled": true,
            "verbs": [
              "give"
            ],
            "unordered": true,
            "inputs": [
              {
                "objectId": "lesson_tool",
                "disposition": "consume"
              }
            ],
            "tools": [],
            "target": {
              "kind": "npc",
              "id": "lesson_gate"
            },
            "match": "all",
            "conditions": [],
            "actions": [
              {
                "kind": "state",
                "target": "lesson_open",
                "value": true
              }
            ],
            "once": true,
            "success": "The guard accepts your silver coin and steps aside. The passage north is clear.",
            "failure": "Carry the silver coin and give it to the gate guard.",
            "repeat": "This obstacle is already cleared. The way north remains open."
          }
        }
      ]
    }
  ],
  "creatorNotes": "Give a silver coin to the guard to open the passage. Payment removes the coin once and the guard remembers it.\nOpen Help → Cookbook → Guard Blocks Passage Until Bribed → Start this recipe to inspect its saved settings. The field journal and 100-point ending belong only to the sample game.\nCommands: north; give silver coin to gate guard; take silver coin; give silver coin to gate guard; give silver coin to gate guard; north; south; use field journal",
  "mapRooms": [
    {
      "id": "lesson_entry",
      "name": "Guard Post",
      "description": "The gate guard blocks the way north. Take the silver coin, then give silver coin to gate guard.",
      "reentryEnabled": false,
      "reentryDesc": "",
      "hint": "",
      "dark": false,
      "roomType": "regular",
      "x": 100,
      "y": 100,
      "width": 160,
      "height": 64,
      "color": "#000000",
      "blockedDescriptions": {
        "north": "The gate guard blocks the way. Give the silver coin to it first."
      }
    },
    {
      "id": "lesson_beyond",
      "name": "Palace Walk",
      "description": "The passage is open. You can return south.",
      "reentryEnabled": false,
      "reentryDesc": "",
      "hint": "",
      "dark": false,
      "roomType": "regular",
      "x": 320,
      "y": 100,
      "width": 160,
      "height": 64,
      "color": "#000000",
      "blockedDescriptions": {}
    }
  ],
  "mapExits": [
    {
      "id": "lesson_route_through",
      "fromRoom": "lesson_entry",
      "toRoom": "lesson_beyond",
      "direction": "north",
      "locked": false,
      "when": "lesson_open"
    },
    {
      "id": "lesson_route_return",
      "fromRoom": "lesson_beyond",
      "toRoom": "lesson_entry",
      "direction": "south",
      "locked": false
    }
  ],
  "objects": [
    {
      "id": "lesson_tool",
      "name": "silver coin",
      "description": "A silver coin for this obstacle. Take it before using it.",
      "article": "",
      "location": "lesson_entry",
      "aliases": [],
      "visible": true,
      "takeable": true,
      "droppable": true,
      "useGive": true,
      "container": false,
      "switchable": false,
      "edible": false,
      "drinkable": false,
      "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": [
    {
      "id": "lesson_gate",
      "name": "gate guard",
      "description": "The guard waits for payment before allowing passage.",
      "location": "lesson_entry",
      "mobile": false,
      "aliases": [],
      "onEnter": "",
      "onExamine": "",
      "onTalk": "",
      "onAttack": "",
      "onDeath": "",
      "onFollow": "",
      "onAutoAttack": "",
      "onTrustChange": "",
      "onGive": "",
      "onBeforeTalk": "",
      "onAfterTalk": "",
      "onBeforeAttack": "",
      "onAfterAttack": "",
      "onDamage": "",
      "onHeal": "",
      "onMove": "",
      "onLeave": "",
      "followPlayer": false,
      "health": 100,
      "combatSide": "neutral",
      "autoFight": false,
      "attackPower": 10,
      "defense": 0,
      "trustLevel": 50,
      "conversationEnabled": false,
      "convGreeting": "",
      "convFarewell": "",
      "convTopics": [],
      "dialogues": []
    }
  ],
  "activeMechanics": [],
  "verbAliases": [],
  "scripts": [],
  "worldEvents": [],
  "customMechanicDefs": [],
  "savedMechanicTemplates": [],
  "objectiveSets": [],
  "gameOutliner": {},
  "customRoomTemplates": [],
  "customObjectTemplates": [],
  "customNpcTemplates": [],
  "customSavedScripts": [],
  "requiredCapabilities": [
    "story-rules-v1",
    "creator-features-v1"
  ]
}
