{
  "version": "1.1",
  "name": "Riddle Answer Opens Door",
  "startRoom": "lesson_room",
  "author": "TAGMaker",
  "description": "Use a carried sun token with a stone mouth to answer its riddle. The accepted token is consumed once and the north door opens. A moon token is rejected and kept.",
  "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  blocked north: \"Answer the stone mouth’s riddle first.\"\n  exit north: lesson_beyond when: lesson_solved\n  name: \"Riddle Door Hall\"\n  description: \"The stone mouth asks: What rises in the east and brings the day? Use the matching carried token with it.\"\n  dark: false\nend"
    },
    {
      "path": "rooms/lesson_beyond.taml",
      "content": "room lesson_beyond\n  exit south: lesson_room\n  name: \"Sunlit Archive\"\n  description: \"The riddle hall is south.\"\n  dark: false\nend"
    },
    {
      "path": "objects/lesson_mouth.taml",
      "content": "object lesson_mouth\n  name: \"stone mouth\"\n  description: \"A stone face waits for an answer.\"\n  location: lesson_room\n  droppable: false\n  use_give: true\n  weight: 0.1\nend"
    },
    {
      "path": "objects/lesson_sun.taml",
      "content": "object lesson_sun\n  name: \"sun token\"\n  description: \"A golden sun symbol.\"\n  location: lesson_room\n  takeable: true\n  use_give: true\n  weight: 0.1\nend"
    },
    {
      "path": "objects/lesson_moon.taml",
      "content": "object lesson_moon\n  name: \"moon token\"\n  description: \"A silver moon symbol.\"\n  location: lesson_room\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_solved",
        "name": "solved",
        "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_solved",
            "operator": "==",
            "value": true
          }
        ],
        "actions": [
          {
            "kind": "message",
            "value": "The correct answer opened the door and consumed only the accepted token. 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_answer",
          "name": "answer",
          "enabled": true,
          "verbs": [
            "use"
          ],
          "unordered": true,
          "inputs": [
            {
              "objectId": "lesson_sun",
              "disposition": "consume"
            }
          ],
          "tools": [],
          "target": {
            "kind": "object",
            "id": "lesson_mouth"
          },
          "match": "all",
          "conditions": [],
          "actions": [
            {
              "kind": "state",
              "target": "lesson_solved",
              "value": true
            }
          ],
          "once": true,
          "success": "The stone mouth accepts the sun token. The door opens.",
          "failure": "Carry a token and answer the stone mouth’s riddle.",
          "repeat": "The riddle door is already open."
        },
        {
          "id": "lesson_wrong",
          "name": "wrong",
          "enabled": true,
          "verbs": [
            "use"
          ],
          "unordered": true,
          "inputs": [
            {
              "objectId": "lesson_moon",
              "disposition": "retain"
            }
          ],
          "tools": [],
          "target": {
            "kind": "object",
            "id": "lesson_mouth"
          },
          "match": "all",
          "conditions": [],
          "actions": [],
          "once": false,
          "success": "The moon is not the answer. You keep that token.",
          "failure": "Carry a token and answer the stone mouth’s riddle.",
          "repeat": "The riddle door is already open."
        }
      ]
    }
  },
  "cookbookRecipes": [
    {
      "version": 1,
      "settings": {
        "instance": "lesson",
        "recipeId": "50-riddle-answer-opens-door",
        "choices": {
          "room": {
            "existing": "",
            "name": "Riddle Door Hall",
            "description": "The stone mouth asks: What rises in the east and brings the day? Use the matching carried token with it."
          },
          "beyond": {
            "existing": "",
            "name": "Sunlit Archive",
            "description": "The riddle hall is south."
          },
          "mouth": {
            "existing": "",
            "name": "stone mouth",
            "description": "A stone face waits for an answer."
          },
          "sun": {
            "existing": "",
            "name": "sun token",
            "description": "A golden sun symbol."
          },
          "moon": {
            "existing": "",
            "name": "moon token",
            "description": "A silver moon symbol."
          }
        },
        "values": {
          "success": "The stone mouth accepts the sun token. The door opens.",
          "failure": "Carry a token and answer the stone mouth’s riddle.",
          "wrong": "The moon is not the answer. You keep that token.",
          "repeat": "The riddle door is already open."
        },
        "reuseRoutes": {}
      },
      "owned": [
        {
          "path": "files",
          "key": "rooms/lesson_room.taml",
          "after": {
            "path": "rooms/lesson_room.taml",
            "name": "lesson_room.taml",
            "content": "room lesson_room\n  blocked north: \"Answer the stone mouth’s riddle first.\"\n  exit north: lesson_beyond when: lesson_solved\n  name: \"Riddle Door Hall\"\n  description: \"The stone mouth asks: What rises in the east and brings the day? Use the matching carried token with it.\"\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_room\n  name: \"Sunlit Archive\"\n  description: \"The riddle hall is south.\"\n  dark: false\nend",
            "isDirty": true
          }
        },
        {
          "path": "files",
          "key": "objects/lesson_mouth.taml",
          "after": {
            "path": "objects/lesson_mouth.taml",
            "name": "lesson_mouth.taml",
            "content": "object lesson_mouth\n  name: \"stone mouth\"\n  description: \"A stone face waits for an answer.\"\n  location: lesson_room\n  droppable: false\n  use_give: true\n  weight: 0.1\nend",
            "isDirty": true
          }
        },
        {
          "path": "files",
          "key": "objects/lesson_sun.taml",
          "after": {
            "path": "objects/lesson_sun.taml",
            "name": "lesson_sun.taml",
            "content": "object lesson_sun\n  name: \"sun token\"\n  description: \"A golden sun symbol.\"\n  location: lesson_room\n  takeable: true\n  use_give: true\n  weight: 0.1\nend",
            "isDirty": true
          }
        },
        {
          "path": "files",
          "key": "objects/lesson_moon.taml",
          "after": {
            "path": "objects/lesson_moon.taml",
            "name": "lesson_moon.taml",
            "content": "object lesson_moon\n  name: \"moon token\"\n  description: \"A silver moon symbol.\"\n  location: lesson_room\n  takeable: true\n  use_give: true\n  weight: 0.1\nend",
            "isDirty": true
          }
        },
        {
          "path": "objects",
          "key": "lesson_mouth",
          "after": {
            "id": "lesson_mouth",
            "name": "stone mouth",
            "description": "A stone face waits for an answer.",
            "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_sun",
          "after": {
            "id": "lesson_sun",
            "name": "sun token",
            "description": "A golden sun symbol.",
            "article": "",
            "location": "lesson_room",
            "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": "objects",
          "key": "lesson_moon",
          "after": {
            "id": "lesson_moon",
            "name": "moon token",
            "description": "A silver moon symbol.",
            "article": "",
            "location": "lesson_room",
            "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": "Riddle Door Hall",
            "description": "The stone mouth asks: What rises in the east and brings the day? Use the matching carried token with it.",
            "reentryEnabled": false,
            "reentryDesc": "",
            "hint": "",
            "dark": false,
            "roomType": "regular",
            "x": 100,
            "y": 100,
            "width": 160,
            "height": 64,
            "color": "#000000",
            "blockedDescriptions": {
              "north": "Answer the stone mouth’s riddle first."
            }
          }
        },
        {
          "path": "mapRooms",
          "key": "lesson_beyond",
          "after": {
            "id": "lesson_beyond",
            "name": "Sunlit Archive",
            "description": "The riddle hall is 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_out",
          "after": {
            "id": "lesson_route_out",
            "fromRoom": "lesson_room",
            "toRoom": "lesson_beyond",
            "direction": "north",
            "locked": false,
            "when": "lesson_solved"
          }
        },
        {
          "path": "mapExits",
          "key": "lesson_route_back",
          "after": {
            "id": "lesson_route_back",
            "fromRoom": "lesson_beyond",
            "toRoom": "lesson_room",
            "direction": "south",
            "locked": false
          }
        },
        {
          "path": "manifest.story.states",
          "key": "lesson_solved",
          "after": {
            "id": "lesson_solved",
            "name": "solved",
            "description": "Progress remembered by this recipe.",
            "type": "boolean",
            "initial": false
          }
        },
        {
          "path": "manifest.story.features.recipes",
          "key": "lesson_answer",
          "after": {
            "id": "lesson_answer",
            "name": "answer",
            "enabled": true,
            "verbs": [
              "use"
            ],
            "unordered": true,
            "inputs": [
              {
                "objectId": "lesson_sun",
                "disposition": "consume"
              }
            ],
            "tools": [],
            "target": {
              "kind": "object",
              "id": "lesson_mouth"
            },
            "match": "all",
            "conditions": [],
            "actions": [
              {
                "kind": "state",
                "target": "lesson_solved",
                "value": true
              }
            ],
            "once": true,
            "success": "The stone mouth accepts the sun token. The door opens.",
            "failure": "Carry a token and answer the stone mouth’s riddle.",
            "repeat": "The riddle door is already open."
          }
        },
        {
          "path": "manifest.story.features.recipes",
          "key": "lesson_wrong",
          "after": {
            "id": "lesson_wrong",
            "name": "wrong",
            "enabled": true,
            "verbs": [
              "use"
            ],
            "unordered": true,
            "inputs": [
              {
                "objectId": "lesson_moon",
                "disposition": "retain"
              }
            ],
            "tools": [],
            "target": {
              "kind": "object",
              "id": "lesson_mouth"
            },
            "match": "all",
            "conditions": [],
            "actions": [],
            "once": false,
            "success": "The moon is not the answer. You keep that token.",
            "failure": "Carry a token and answer the stone mouth’s riddle.",
            "repeat": "The riddle door is already open."
          }
        }
      ]
    }
  ],
  "creatorNotes": "Use a carried sun token with a stone mouth to answer its riddle. The accepted token is consumed once and the north door opens. A moon token is rejected and kept.\nOpen Help → Cookbook → Riddle Answer Opens Door → Start this recipe to inspect its saved settings. The field journal and 100-point ending belong only to the sample game.\nCommands: north; take moon token; use moon token with stone mouth; take sun token; use sun token with stone mouth; use sun token with stone mouth; north; use field journal",
  "mapRooms": [
    {
      "id": "lesson_room",
      "name": "Riddle Door Hall",
      "description": "The stone mouth asks: What rises in the east and brings the day? Use the matching carried token with it.",
      "reentryEnabled": false,
      "reentryDesc": "",
      "hint": "",
      "dark": false,
      "roomType": "regular",
      "x": 100,
      "y": 100,
      "width": 160,
      "height": 64,
      "color": "#000000",
      "blockedDescriptions": {
        "north": "Answer the stone mouth’s riddle first."
      }
    },
    {
      "id": "lesson_beyond",
      "name": "Sunlit Archive",
      "description": "The riddle hall is south.",
      "reentryEnabled": false,
      "reentryDesc": "",
      "hint": "",
      "dark": false,
      "roomType": "regular",
      "x": 320,
      "y": 100,
      "width": 160,
      "height": 64,
      "color": "#000000",
      "blockedDescriptions": {}
    }
  ],
  "mapExits": [
    {
      "id": "lesson_route_out",
      "fromRoom": "lesson_room",
      "toRoom": "lesson_beyond",
      "direction": "north",
      "locked": false,
      "when": "lesson_solved"
    },
    {
      "id": "lesson_route_back",
      "fromRoom": "lesson_beyond",
      "toRoom": "lesson_room",
      "direction": "south",
      "locked": false
    }
  ],
  "objects": [
    {
      "id": "lesson_mouth",
      "name": "stone mouth",
      "description": "A stone face waits for an answer.",
      "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_sun",
      "name": "sun token",
      "description": "A golden sun symbol.",
      "article": "",
      "location": "lesson_room",
      "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": "lesson_moon",
      "name": "moon token",
      "description": "A silver moon symbol.",
      "article": "",
      "location": "lesson_room",
      "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"
  ]
}
