{
  "version": "1.1",
  "name": "Simulate Multi-Step Menus with Choice Objects",
  "startRoom": "lesson_room",
  "author": "TAGMaker",
  "description": "Clearly named choice objects form a conversation tree. Ask about the key before asking about the guard’s chair. Leaving the conversation closes the choices; reopening it preserves the clue already learned.",
  "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: \"Prisoner Conversation\"\n  description: \"Use key question, guard question, or leave conversation. A later topic is chair question. Use start conversation to resume.\"\n  dark: false\nend"
    },
    {
      "path": "objects/lesson_key.taml",
      "content": "object lesson_key\n  name: \"key question\"\n  description: \"A conversation choice that unlocks a more specific question.\"\n  location: lesson_room\n  droppable: false\n  use_give: true\n  weight: 0.1\nend"
    },
    {
      "path": "objects/lesson_guard.taml",
      "content": "object lesson_guard\n  name: \"guard question\"\n  description: \"A conversation choice about the guard.\"\n  location: lesson_room\n  droppable: false\n  use_give: true\n  weight: 0.1\nend"
    },
    {
      "path": "objects/lesson_chair.taml",
      "content": "object lesson_chair\n  name: \"chair question\"\n  description: \"A later conversation choice unlocked by asking about the key.\"\n  location: lesson_room\n  droppable: false\n  use_give: true\n  weight: 0.1\nend"
    },
    {
      "path": "objects/lesson_leave.taml",
      "content": "object lesson_leave\n  name: \"leave conversation\"\n  description: \"Close the current conversation choices.\"\n  location: lesson_room\n  droppable: false\n  use_give: true\n  weight: 0.1\nend"
    },
    {
      "path": "objects/lesson_start.taml",
      "content": "object lesson_start\n  name: \"start conversation\"\n  description: \"Reopen the conversation while keeping learned clues.\"\n  location: lesson_room\n  droppable: false\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_talking",
        "name": "talking",
        "description": "Progress remembered by this recipe.",
        "type": "boolean",
        "initial": true
      },
      {
        "id": "lesson_key_known",
        "name": "key known",
        "description": "Progress remembered by this recipe.",
        "type": "boolean",
        "initial": false
      },
      {
        "id": "lesson_chair_known",
        "name": "chair known",
        "description": "Progress remembered by this recipe.",
        "type": "boolean",
        "initial": false
      }
    ],
    "rules": [
      {
        "id": "lesson_start",
        "name": "start",
        "enabled": true,
        "trigger": {
          "kind": "object",
          "target": "lesson_start",
          "event": "use"
        },
        "match": "all",
        "conditions": [],
        "actions": [
          {
            "kind": "state",
            "target": "lesson_talking",
            "value": true
          },
          {
            "kind": "message",
            "value": "The conversation resumes."
          }
        ],
        "otherwise": "",
        "once": false
      },
      {
        "id": "lesson_leave",
        "name": "leave",
        "enabled": true,
        "trigger": {
          "kind": "object",
          "target": "lesson_leave",
          "event": "use"
        },
        "match": "all",
        "conditions": [],
        "actions": [
          {
            "kind": "state",
            "target": "lesson_talking",
            "value": false
          },
          {
            "kind": "message",
            "value": "You leave the conversation."
          }
        ],
        "otherwise": "",
        "once": false
      },
      {
        "id": "lesson_key",
        "name": "key",
        "enabled": true,
        "trigger": {
          "kind": "object",
          "target": "lesson_key",
          "event": "use"
        },
        "match": "all",
        "conditions": [
          {
            "kind": "state",
            "target": "lesson_talking",
            "operator": "==",
            "value": true
          }
        ],
        "actions": [
          {
            "kind": "state",
            "target": "lesson_key_known",
            "value": true
          },
          {
            "kind": "message",
            "value": "The prisoner says the guard keeps the key beneath his chair."
          }
        ],
        "otherwise": "Use start conversation before choosing a topic.",
        "once": false
      },
      {
        "id": "lesson_guard",
        "name": "guard",
        "enabled": true,
        "trigger": {
          "kind": "object",
          "target": "lesson_guard",
          "event": "use"
        },
        "match": "all",
        "conditions": [
          {
            "kind": "state",
            "target": "lesson_talking",
            "operator": "==",
            "value": true
          }
        ],
        "actions": [
          {
            "kind": "message",
            "value": "The guard leaves the post at the bell."
          }
        ],
        "otherwise": "Use start conversation before choosing a topic.",
        "once": false
      },
      {
        "id": "lesson_chair",
        "name": "chair",
        "enabled": true,
        "trigger": {
          "kind": "object",
          "target": "lesson_chair",
          "event": "use"
        },
        "match": "all",
        "conditions": [
          {
            "kind": "state",
            "target": "lesson_talking",
            "operator": "==",
            "value": true
          },
          {
            "kind": "state",
            "target": "lesson_key_known",
            "operator": "==",
            "value": true
          }
        ],
        "actions": [
          {
            "kind": "state",
            "target": "lesson_chair_known",
            "value": true
          },
          {
            "kind": "message",
            "value": "Search beneath the guard’s chair when the post is empty."
          }
        ],
        "otherwise": "Ask about the key before asking about the chair.",
        "once": false
      },
      {
        "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_chair_known",
            "operator": "==",
            "value": true
          }
        ],
        "actions": [
          {
            "kind": "message",
            "value": "The earlier topic unlocked a later clue and survived reopening. 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
      }
    ]
  },
  "cookbookRecipes": [
    {
      "version": 1,
      "settings": {
        "instance": "lesson",
        "recipeId": "18-simulate-multi-step-menus-with-choice-objects",
        "choices": {
          "room": {
            "existing": "",
            "name": "Prisoner Conversation",
            "description": "Use key question, guard question, or leave conversation. A later topic is chair question. Use start conversation to resume."
          },
          "key": {
            "existing": "",
            "name": "key question",
            "description": "A conversation choice that unlocks a more specific question."
          },
          "guard": {
            "existing": "",
            "name": "guard question",
            "description": "A conversation choice about the guard."
          },
          "chair": {
            "existing": "",
            "name": "chair question",
            "description": "A later conversation choice unlocked by asking about the key."
          },
          "leave": {
            "existing": "",
            "name": "leave conversation",
            "description": "Close the current conversation choices."
          },
          "start": {
            "existing": "",
            "name": "start conversation",
            "description": "Reopen the conversation while keeping learned clues."
          }
        },
        "values": {
          "key": "The prisoner says the guard keeps the key beneath his chair.",
          "guard": "The guard leaves the post at the bell.",
          "chair": "Search beneath the guard’s chair when the post is empty.",
          "missing": "Ask about the key before asking about the chair.",
          "closed": "Use start conversation before choosing a topic."
        },
        "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: \"Prisoner Conversation\"\n  description: \"Use key question, guard question, or leave conversation. A later topic is chair question. Use start conversation to resume.\"\n  dark: false\nend",
            "isDirty": true
          }
        },
        {
          "path": "files",
          "key": "objects/lesson_key.taml",
          "after": {
            "path": "objects/lesson_key.taml",
            "name": "lesson_key.taml",
            "content": "object lesson_key\n  name: \"key question\"\n  description: \"A conversation choice that unlocks a more specific question.\"\n  location: lesson_room\n  droppable: false\n  use_give: true\n  weight: 0.1\nend",
            "isDirty": true
          }
        },
        {
          "path": "files",
          "key": "objects/lesson_guard.taml",
          "after": {
            "path": "objects/lesson_guard.taml",
            "name": "lesson_guard.taml",
            "content": "object lesson_guard\n  name: \"guard question\"\n  description: \"A conversation choice about the guard.\"\n  location: lesson_room\n  droppable: false\n  use_give: true\n  weight: 0.1\nend",
            "isDirty": true
          }
        },
        {
          "path": "files",
          "key": "objects/lesson_chair.taml",
          "after": {
            "path": "objects/lesson_chair.taml",
            "name": "lesson_chair.taml",
            "content": "object lesson_chair\n  name: \"chair question\"\n  description: \"A later conversation choice unlocked by asking about the key.\"\n  location: lesson_room\n  droppable: false\n  use_give: true\n  weight: 0.1\nend",
            "isDirty": true
          }
        },
        {
          "path": "files",
          "key": "objects/lesson_leave.taml",
          "after": {
            "path": "objects/lesson_leave.taml",
            "name": "lesson_leave.taml",
            "content": "object lesson_leave\n  name: \"leave conversation\"\n  description: \"Close the current conversation choices.\"\n  location: lesson_room\n  droppable: false\n  use_give: true\n  weight: 0.1\nend",
            "isDirty": true
          }
        },
        {
          "path": "files",
          "key": "objects/lesson_start.taml",
          "after": {
            "path": "objects/lesson_start.taml",
            "name": "lesson_start.taml",
            "content": "object lesson_start\n  name: \"start conversation\"\n  description: \"Reopen the conversation while keeping learned clues.\"\n  location: lesson_room\n  droppable: false\n  use_give: true\n  weight: 0.1\nend",
            "isDirty": true
          }
        },
        {
          "path": "objects",
          "key": "lesson_key",
          "after": {
            "id": "lesson_key",
            "name": "key question",
            "description": "A conversation choice that unlocks a more specific question.",
            "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_guard",
          "after": {
            "id": "lesson_guard",
            "name": "guard question",
            "description": "A conversation choice about the guard.",
            "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_chair",
          "after": {
            "id": "lesson_chair",
            "name": "chair question",
            "description": "A later conversation choice unlocked by asking about the key.",
            "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_leave",
          "after": {
            "id": "lesson_leave",
            "name": "leave conversation",
            "description": "Close the current conversation choices.",
            "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_start",
          "after": {
            "id": "lesson_start",
            "name": "start conversation",
            "description": "Reopen the conversation while keeping learned clues.",
            "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": "mapRooms",
          "key": "lesson_room",
          "after": {
            "id": "lesson_room",
            "name": "Prisoner Conversation",
            "description": "Use key question, guard question, or leave conversation. A later topic is chair question. Use start conversation to resume.",
            "reentryEnabled": false,
            "reentryDesc": "",
            "hint": "",
            "dark": false,
            "roomType": "regular",
            "x": 100,
            "y": 100,
            "width": 160,
            "height": 64,
            "color": "#000000"
          }
        },
        {
          "path": "manifest.story.states",
          "key": "lesson_talking",
          "after": {
            "id": "lesson_talking",
            "name": "talking",
            "description": "Progress remembered by this recipe.",
            "type": "boolean",
            "initial": true
          }
        },
        {
          "path": "manifest.story.states",
          "key": "lesson_key_known",
          "after": {
            "id": "lesson_key_known",
            "name": "key known",
            "description": "Progress remembered by this recipe.",
            "type": "boolean",
            "initial": false
          }
        },
        {
          "path": "manifest.story.states",
          "key": "lesson_chair_known",
          "after": {
            "id": "lesson_chair_known",
            "name": "chair known",
            "description": "Progress remembered by this recipe.",
            "type": "boolean",
            "initial": false
          }
        },
        {
          "path": "manifest.story.rules",
          "key": "lesson_start",
          "after": {
            "id": "lesson_start",
            "name": "start",
            "enabled": true,
            "trigger": {
              "kind": "object",
              "target": "lesson_start",
              "event": "use"
            },
            "match": "all",
            "conditions": [],
            "actions": [
              {
                "kind": "state",
                "target": "lesson_talking",
                "value": true
              },
              {
                "kind": "message",
                "value": "The conversation resumes."
              }
            ],
            "otherwise": "",
            "once": false
          }
        },
        {
          "path": "manifest.story.rules",
          "key": "lesson_leave",
          "after": {
            "id": "lesson_leave",
            "name": "leave",
            "enabled": true,
            "trigger": {
              "kind": "object",
              "target": "lesson_leave",
              "event": "use"
            },
            "match": "all",
            "conditions": [],
            "actions": [
              {
                "kind": "state",
                "target": "lesson_talking",
                "value": false
              },
              {
                "kind": "message",
                "value": "You leave the conversation."
              }
            ],
            "otherwise": "",
            "once": false
          }
        },
        {
          "path": "manifest.story.rules",
          "key": "lesson_key",
          "after": {
            "id": "lesson_key",
            "name": "key",
            "enabled": true,
            "trigger": {
              "kind": "object",
              "target": "lesson_key",
              "event": "use"
            },
            "match": "all",
            "conditions": [
              {
                "kind": "state",
                "target": "lesson_talking",
                "operator": "==",
                "value": true
              }
            ],
            "actions": [
              {
                "kind": "state",
                "target": "lesson_key_known",
                "value": true
              },
              {
                "kind": "message",
                "value": "The prisoner says the guard keeps the key beneath his chair."
              }
            ],
            "otherwise": "Use start conversation before choosing a topic.",
            "once": false
          }
        },
        {
          "path": "manifest.story.rules",
          "key": "lesson_guard",
          "after": {
            "id": "lesson_guard",
            "name": "guard",
            "enabled": true,
            "trigger": {
              "kind": "object",
              "target": "lesson_guard",
              "event": "use"
            },
            "match": "all",
            "conditions": [
              {
                "kind": "state",
                "target": "lesson_talking",
                "operator": "==",
                "value": true
              }
            ],
            "actions": [
              {
                "kind": "message",
                "value": "The guard leaves the post at the bell."
              }
            ],
            "otherwise": "Use start conversation before choosing a topic.",
            "once": false
          }
        },
        {
          "path": "manifest.story.rules",
          "key": "lesson_chair",
          "after": {
            "id": "lesson_chair",
            "name": "chair",
            "enabled": true,
            "trigger": {
              "kind": "object",
              "target": "lesson_chair",
              "event": "use"
            },
            "match": "all",
            "conditions": [
              {
                "kind": "state",
                "target": "lesson_talking",
                "operator": "==",
                "value": true
              },
              {
                "kind": "state",
                "target": "lesson_key_known",
                "operator": "==",
                "value": true
              }
            ],
            "actions": [
              {
                "kind": "state",
                "target": "lesson_chair_known",
                "value": true
              },
              {
                "kind": "message",
                "value": "Search beneath the guard’s chair when the post is empty."
              }
            ],
            "otherwise": "Ask about the key before asking about the chair.",
            "once": false
          }
        }
      ]
    }
  ],
  "creatorNotes": "Clearly named choice objects form a conversation tree. Ask about the key before asking about the guard’s chair. Leaving the conversation closes the choices; reopening it preserves the clue already learned.\nOpen Help → Cookbook → Simulate Multi-Step Menus with Choice Objects → Start this recipe to inspect its saved settings. The field journal and 100-point ending belong only to the sample game.\nCommands: use chair question; use guard question; use key question; use leave conversation; use key question; use chair question; use start conversation; use chair question; use chair question; use field journal",
  "mapRooms": [
    {
      "id": "lesson_room",
      "name": "Prisoner Conversation",
      "description": "Use key question, guard question, or leave conversation. A later topic is chair question. Use start conversation to resume.",
      "reentryEnabled": false,
      "reentryDesc": "",
      "hint": "",
      "dark": false,
      "roomType": "regular",
      "x": 100,
      "y": 100,
      "width": 160,
      "height": 64,
      "color": "#000000"
    }
  ],
  "mapExits": [],
  "objects": [
    {
      "id": "lesson_key",
      "name": "key question",
      "description": "A conversation choice that unlocks a more specific question.",
      "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_guard",
      "name": "guard question",
      "description": "A conversation choice about the guard.",
      "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_chair",
      "name": "chair question",
      "description": "A later conversation choice unlocked by asking about the key.",
      "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_leave",
      "name": "leave conversation",
      "description": "Close the current conversation choices.",
      "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_start",
      "name": "start conversation",
      "description": "Reopen the conversation while keeping learned clues.",
      "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": "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"
  ]
}
