{
  "version": "1.1",
  "name": "Bad Choice Locks Out Optional Reward",
  "startRoom": "lesson_room",
  "author": "TAGMaker",
  "description": "Choose whether to respect a shrine’s seal. Breaking it permanently loses the optional medal; respecting it allows the reward to be collected once.",
  "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: \"Sealed Shrine\"\n  description: \"Use the shrine seal to decide whether to respect it. Then use the reward cabinet.\"\n  dark: false\nend"
    },
    {
      "path": "objects/lesson_seal.taml",
      "content": "object lesson_seal\n  name: \"shrine seal\"\n  description: \"The inscription asks visitors to leave this seal intact.\"\n  location: lesson_room\n  droppable: false\n  use_give: true\n  weight: 0.1\nend"
    },
    {
      "path": "objects/lesson_cabinet.taml",
      "content": "object lesson_cabinet\n  name: \"reward cabinet\"\n  description: \"The cabinet rewards a visitor who respects the seal.\"\n  location: lesson_room\n  droppable: false\n  use_give: true\n  weight: 0.1\nend"
    },
    {
      "path": "objects/lesson_medal.taml",
      "content": "object lesson_medal\n  name: \"silver medal\"\n  description: \"A reward for respecting the shrine.\"\n  takeable: true\n  use_give: 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"
    }
  ],
  "story": {
    "version": 1,
    "states": [
      {
        "id": "lesson_decided",
        "name": "decided",
        "description": "Progress remembered by this recipe.",
        "type": "boolean",
        "initial": false
      },
      {
        "id": "lesson_bad",
        "name": "bad",
        "description": "Progress remembered by this recipe.",
        "type": "boolean",
        "initial": false
      },
      {
        "id": "lesson_finished",
        "name": "finished",
        "description": "Progress remembered by this recipe.",
        "type": "boolean",
        "initial": false
      },
      {
        "id": "lesson_rewarded",
        "name": "rewarded",
        "description": "Progress remembered by this recipe.",
        "type": "boolean",
        "initial": false
      }
    ],
    "rules": [
      {
        "id": "lesson_decide",
        "name": "decide",
        "enabled": true,
        "trigger": {
          "kind": "object",
          "target": "lesson_seal",
          "event": "use"
        },
        "match": "all",
        "conditions": [],
        "actions": [
          {
            "kind": "prompt",
            "target": "lesson_choice"
          }
        ],
        "otherwise": "",
        "once": false
      },
      {
        "id": "lesson_reward",
        "name": "reward",
        "enabled": true,
        "trigger": {
          "kind": "object",
          "target": "lesson_cabinet",
          "event": "use"
        },
        "match": "all",
        "conditions": [
          {
            "kind": "state",
            "target": "lesson_decided",
            "operator": "==",
            "value": true
          },
          {
            "kind": "state",
            "target": "lesson_bad",
            "operator": "==",
            "value": false
          }
        ],
        "actions": [
          {
            "kind": "state",
            "target": "lesson_rewarded",
            "value": true
          },
          {
            "kind": "state",
            "target": "lesson_finished",
            "value": true
          },
          {
            "kind": "give",
            "target": "lesson_medal"
          },
          {
            "kind": "message",
            "value": "The cabinet opens and gives you a silver medal."
          }
        ],
        "otherwise": "The cabinet requires a decision to respect the seal. A broken seal cannot be undone.",
        "once": true,
        "repeatText": "You have already received the shrine’s medal."
      },
      {
        "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_finished",
            "operator": "==",
            "value": true
          }
        ],
        "actions": [
          {
            "kind": "message",
            "value": "You saw how a permanent decision controls an optional reward. 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,
      "prompts": [
        {
          "id": "lesson_choice",
          "name": "Will you respect the shrine seal?",
          "enabled": true,
          "text": "Will you respect the shrine seal?",
          "cancelLabel": "Leave the choice for later",
          "cancelable": true,
          "owner": {
            "kind": "object",
            "id": "lesson_seal"
          },
          "options": [
            {
              "id": "respect",
              "label": "Respect the seal",
              "match": "all",
              "conditions": [
                {
                  "kind": "state",
                  "target": "lesson_decided",
                  "operator": "==",
                  "value": false
                }
              ],
              "actions": [
                {
                  "kind": "state",
                  "target": "lesson_decided",
                  "value": true
                },
                {
                  "kind": "message",
                  "value": "You leave the seal intact. The shrine accepts your respect."
                }
              ],
              "once": false,
              "unavailable": "disable"
            },
            {
              "id": "break",
              "label": "Break the seal",
              "match": "all",
              "conditions": [
                {
                  "kind": "state",
                  "target": "lesson_decided",
                  "operator": "==",
                  "value": false
                }
              ],
              "actions": [
                {
                  "kind": "state",
                  "target": "lesson_decided",
                  "value": true
                },
                {
                  "kind": "state",
                  "target": "lesson_bad",
                  "value": true
                },
                {
                  "kind": "state",
                  "target": "lesson_finished",
                  "value": true
                },
                {
                  "kind": "message",
                  "value": "You break the seal. The optional medal is lost to you."
                }
              ],
              "once": false,
              "unavailable": "disable"
            }
          ]
        }
      ]
    }
  },
  "cookbookRecipes": [
    {
      "version": 1,
      "settings": {
        "instance": "lesson",
        "recipeId": "36-bad-choice-locks-out-optional-reward",
        "choices": {
          "room": {
            "existing": "",
            "name": "Sealed Shrine",
            "description": "Use the shrine seal to decide whether to respect it. Then use the reward cabinet."
          },
          "seal": {
            "existing": "",
            "name": "shrine seal",
            "description": "The inscription asks visitors to leave this seal intact."
          },
          "cabinet": {
            "existing": "",
            "name": "reward cabinet",
            "description": "The cabinet rewards a visitor who respects the seal."
          },
          "medal": {
            "existing": "",
            "name": "silver medal",
            "description": "A reward for respecting the shrine."
          }
        },
        "values": {
          "question": "Will you respect the shrine seal?",
          "good": "You leave the seal intact. The shrine accepts your respect.",
          "bad": "You break the seal. The optional medal is lost to you.",
          "reward": "The cabinet opens and gives you a silver medal.",
          "failure": "The cabinet requires a decision to respect the seal. A broken seal cannot be undone.",
          "repeat": "You have already received the shrine’s medal."
        },
        "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: \"Sealed Shrine\"\n  description: \"Use the shrine seal to decide whether to respect it. Then use the reward cabinet.\"\n  dark: false\nend",
            "isDirty": true
          }
        },
        {
          "path": "files",
          "key": "objects/lesson_seal.taml",
          "after": {
            "path": "objects/lesson_seal.taml",
            "name": "lesson_seal.taml",
            "content": "object lesson_seal\n  name: \"shrine seal\"\n  description: \"The inscription asks visitors to leave this seal intact.\"\n  location: lesson_room\n  droppable: false\n  use_give: true\n  weight: 0.1\nend",
            "isDirty": true
          }
        },
        {
          "path": "files",
          "key": "objects/lesson_cabinet.taml",
          "after": {
            "path": "objects/lesson_cabinet.taml",
            "name": "lesson_cabinet.taml",
            "content": "object lesson_cabinet\n  name: \"reward cabinet\"\n  description: \"The cabinet rewards a visitor who respects the seal.\"\n  location: lesson_room\n  droppable: false\n  use_give: true\n  weight: 0.1\nend",
            "isDirty": true
          }
        },
        {
          "path": "files",
          "key": "objects/lesson_medal.taml",
          "after": {
            "path": "objects/lesson_medal.taml",
            "name": "lesson_medal.taml",
            "content": "object lesson_medal\n  name: \"silver medal\"\n  description: \"A reward for respecting the shrine.\"\n  takeable: true\n  use_give: true\n  weight: 0.1\nend",
            "isDirty": true
          }
        },
        {
          "path": "objects",
          "key": "lesson_seal",
          "after": {
            "id": "lesson_seal",
            "name": "shrine seal",
            "description": "The inscription asks visitors to leave this seal intact.",
            "article": "",
            "location": "lesson_room",
            "aliases": [],
            "visible": true,
            "takeable": false,
            "droppable": false,
            "useGive": true,
            "container": false,
            "switchable": false,
            "edible": false,
            "drinkable": false,
            "wearable": false,
            "weapon": false,
            "weight": 0.1,
            "locked": false,
            "lockKey": "",
            "events": []
          }
        },
        {
          "path": "objects",
          "key": "lesson_cabinet",
          "after": {
            "id": "lesson_cabinet",
            "name": "reward cabinet",
            "description": "The cabinet rewards a visitor who respects the seal.",
            "article": "",
            "location": "lesson_room",
            "aliases": [],
            "visible": true,
            "takeable": false,
            "droppable": false,
            "useGive": true,
            "container": false,
            "switchable": false,
            "edible": false,
            "drinkable": false,
            "wearable": false,
            "weapon": false,
            "weight": 0.1,
            "locked": false,
            "lockKey": "",
            "events": []
          }
        },
        {
          "path": "objects",
          "key": "lesson_medal",
          "after": {
            "id": "lesson_medal",
            "name": "silver medal",
            "description": "A reward for respecting the shrine.",
            "article": "",
            "location": "nowhere",
            "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": "mapRooms",
          "key": "lesson_room",
          "after": {
            "id": "lesson_room",
            "name": "Sealed Shrine",
            "description": "Use the shrine seal to decide whether to respect it. Then use the reward cabinet.",
            "reentryEnabled": false,
            "reentryDesc": "",
            "hint": "",
            "dark": false,
            "roomType": "regular",
            "x": 100,
            "y": 100,
            "width": 160,
            "height": 64,
            "color": "#000000"
          }
        },
        {
          "path": "manifest.story.states",
          "key": "lesson_decided",
          "after": {
            "id": "lesson_decided",
            "name": "decided",
            "description": "Progress remembered by this recipe.",
            "type": "boolean",
            "initial": false
          }
        },
        {
          "path": "manifest.story.states",
          "key": "lesson_bad",
          "after": {
            "id": "lesson_bad",
            "name": "bad",
            "description": "Progress remembered by this recipe.",
            "type": "boolean",
            "initial": false
          }
        },
        {
          "path": "manifest.story.states",
          "key": "lesson_finished",
          "after": {
            "id": "lesson_finished",
            "name": "finished",
            "description": "Progress remembered by this recipe.",
            "type": "boolean",
            "initial": false
          }
        },
        {
          "path": "manifest.story.states",
          "key": "lesson_rewarded",
          "after": {
            "id": "lesson_rewarded",
            "name": "rewarded",
            "description": "Progress remembered by this recipe.",
            "type": "boolean",
            "initial": false
          }
        },
        {
          "path": "manifest.story.rules",
          "key": "lesson_decide",
          "after": {
            "id": "lesson_decide",
            "name": "decide",
            "enabled": true,
            "trigger": {
              "kind": "object",
              "target": "lesson_seal",
              "event": "use"
            },
            "match": "all",
            "conditions": [],
            "actions": [
              {
                "kind": "prompt",
                "target": "lesson_choice"
              }
            ],
            "otherwise": "",
            "once": false
          }
        },
        {
          "path": "manifest.story.rules",
          "key": "lesson_reward",
          "after": {
            "id": "lesson_reward",
            "name": "reward",
            "enabled": true,
            "trigger": {
              "kind": "object",
              "target": "lesson_cabinet",
              "event": "use"
            },
            "match": "all",
            "conditions": [
              {
                "kind": "state",
                "target": "lesson_decided",
                "operator": "==",
                "value": true
              },
              {
                "kind": "state",
                "target": "lesson_bad",
                "operator": "==",
                "value": false
              }
            ],
            "actions": [
              {
                "kind": "state",
                "target": "lesson_rewarded",
                "value": true
              },
              {
                "kind": "state",
                "target": "lesson_finished",
                "value": true
              },
              {
                "kind": "give",
                "target": "lesson_medal"
              },
              {
                "kind": "message",
                "value": "The cabinet opens and gives you a silver medal."
              }
            ],
            "otherwise": "The cabinet requires a decision to respect the seal. A broken seal cannot be undone.",
            "once": true,
            "repeatText": "You have already received the shrine’s medal."
          }
        },
        {
          "path": "manifest.story.features.prompts",
          "key": "lesson_choice",
          "after": {
            "id": "lesson_choice",
            "name": "Will you respect the shrine seal?",
            "enabled": true,
            "text": "Will you respect the shrine seal?",
            "cancelLabel": "Leave the choice for later",
            "cancelable": true,
            "owner": {
              "kind": "object",
              "id": "lesson_seal"
            },
            "options": [
              {
                "id": "respect",
                "label": "Respect the seal",
                "match": "all",
                "conditions": [
                  {
                    "kind": "state",
                    "target": "lesson_decided",
                    "operator": "==",
                    "value": false
                  }
                ],
                "actions": [
                  {
                    "kind": "state",
                    "target": "lesson_decided",
                    "value": true
                  },
                  {
                    "kind": "message",
                    "value": "You leave the seal intact. The shrine accepts your respect."
                  }
                ],
                "once": false,
                "unavailable": "disable"
              },
              {
                "id": "break",
                "label": "Break the seal",
                "match": "all",
                "conditions": [
                  {
                    "kind": "state",
                    "target": "lesson_decided",
                    "operator": "==",
                    "value": false
                  }
                ],
                "actions": [
                  {
                    "kind": "state",
                    "target": "lesson_decided",
                    "value": true
                  },
                  {
                    "kind": "state",
                    "target": "lesson_bad",
                    "value": true
                  },
                  {
                    "kind": "state",
                    "target": "lesson_finished",
                    "value": true
                  },
                  {
                    "kind": "message",
                    "value": "You break the seal. The optional medal is lost to you."
                  }
                ],
                "once": false,
                "unavailable": "disable"
              }
            ]
          }
        }
      ]
    }
  ],
  "creatorNotes": "Choose whether to respect a shrine’s seal. Breaking it permanently loses the optional medal; respecting it allows the reward to be collected once.\nOpen Help → Cookbook → Bad Choice Locks Out Optional Reward → Start this recipe to inspect its saved settings. The field journal and 100-point ending belong only to the sample game.\nCommands: use reward cabinet; use shrine seal; 1; use reward cabinet; use reward cabinet; use field journal",
  "mapRooms": [
    {
      "id": "lesson_room",
      "name": "Sealed Shrine",
      "description": "Use the shrine seal to decide whether to respect it. Then use the reward cabinet.",
      "reentryEnabled": false,
      "reentryDesc": "",
      "hint": "",
      "dark": false,
      "roomType": "regular",
      "x": 100,
      "y": 100,
      "width": 160,
      "height": 64,
      "color": "#000000"
    }
  ],
  "mapExits": [],
  "objects": [
    {
      "id": "lesson_seal",
      "name": "shrine seal",
      "description": "The inscription asks visitors to leave this seal intact.",
      "article": "",
      "location": "lesson_room",
      "aliases": [],
      "visible": true,
      "takeable": false,
      "droppable": false,
      "useGive": true,
      "container": false,
      "switchable": false,
      "edible": false,
      "drinkable": false,
      "wearable": false,
      "weapon": false,
      "weight": 0.1,
      "locked": false,
      "lockKey": "",
      "events": []
    },
    {
      "id": "lesson_cabinet",
      "name": "reward cabinet",
      "description": "The cabinet rewards a visitor who respects the seal.",
      "article": "",
      "location": "lesson_room",
      "aliases": [],
      "visible": true,
      "takeable": false,
      "droppable": false,
      "useGive": true,
      "container": false,
      "switchable": false,
      "edible": false,
      "drinkable": false,
      "wearable": false,
      "weapon": false,
      "weight": 0.1,
      "locked": false,
      "lockKey": "",
      "events": []
    },
    {
      "id": "lesson_medal",
      "name": "silver medal",
      "description": "A reward for respecting the shrine.",
      "article": "",
      "location": "nowhere",
      "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": [],
  "activeMechanics": [],
  "verbAliases": [],
  "scripts": [],
  "worldEvents": [],
  "customMechanicDefs": [],
  "savedMechanicTemplates": [],
  "objectiveSets": [],
  "gameOutliner": {},
  "customRoomTemplates": [],
  "customObjectTemplates": [],
  "customNpcTemplates": [],
  "customSavedScripts": [],
  "requiredCapabilities": [
    "story-rules-v1",
    "creator-features-v1"
  ]
}
