{
  "version": "1.1",
  "name": "Use Default Verb Scripts for Fallback Responses",
  "startRoom": "lesson_room",
  "author": "TAGMaker",
  "description": "A global custom-command fallback gives a helpful response for known objects without their own handler. A specific object response takes priority. Unknown nouns still ask for clarification, and a room response handles the command without a noun.",
  "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": "scripts/custom_commands.taml",
      "content": "verb chant\n  aliases: [\"recite\"]\nend"
    },
    {
      "path": "rooms/lesson_room.taml",
      "content": "room lesson_room\n  exit north: lesson_quiet\n  name: \"Echo Shrine\"\n  description: \"Take the silver token. CHANT at the echo obelisk by typing CHANT ECHO OBELISK. RECITE is an alias. CHANT by itself speaks to the room.\"\n  dark: false\nend"
    },
    {
      "path": "objects/lesson_obelisk.taml",
      "content": "object lesson_obelisk\n  name: \"echo obelisk\"\n  description: \"Use the shrine’s custom command with this obelisk.\"\n  location: lesson_room\n  droppable: false\n  use_give: true\n  weight: 0.1\nend"
    },
    {
      "path": "objects/lesson_token.taml",
      "content": "object lesson_token\n  name: \"silver token\"\n  description: \"Carry this token when using the custom command.\"\n  location: lesson_room\n  takeable: true\n  use_give: true\n  weight: 0.1\nend"
    },
    {
      "path": "objects/lesson_bench.taml",
      "content": "object lesson_bench\n  name: \"stone bench\"\n  description: \"Ordinary scenery with no special chanting response.\"\n  location: lesson_room\n  droppable: false\n  use_give: true\n  weight: 0.1\nend"
    },
    {
      "path": "rooms/lesson_quiet.taml",
      "content": "room lesson_quiet\n  exit south: lesson_room\n  name: \"Quiet Passage\"\n  description: \"This passage has ordinary stonework. Return south to the echo shrine.\"\n  dark: false\nend"
    },
    {
      "path": "objects/lesson_stone.taml",
      "content": "object lesson_stone\n  name: \"plain stone\"\n  description: \"An ordinary stone with no special chanting response.\"\n  location: lesson_quiet\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_answered",
        "name": "answered",
        "description": "Progress remembered by this recipe.",
        "type": "boolean",
        "initial": false
      },
      {
        "id": "lesson_room_answered",
        "name": "room answered",
        "description": "Progress remembered by this recipe.",
        "type": "boolean",
        "initial": false
      }
    ],
    "rules": [
      {
        "id": "lesson_chant",
        "name": "chant",
        "enabled": true,
        "trigger": {
          "kind": "object",
          "target": "lesson_obelisk",
          "event": "custom:chant"
        },
        "match": "all",
        "conditions": [
          {
            "kind": "inventory",
            "target": "lesson_token",
            "operator": "==",
            "value": true
          }
        ],
        "actions": [
          {
            "kind": "state",
            "target": "lesson_answered",
            "value": true
          },
          {
            "kind": "message",
            "value": "The echo obelisk answers your chant and remembers you."
          }
        ],
        "otherwise": "Carry the silver token before chanting to the obelisk.",
        "once": true,
        "repeatText": "The echo obelisk has already answered."
      },
      {
        "id": "lesson_default",
        "name": "default",
        "enabled": true,
        "trigger": {
          "kind": "command",
          "target": "",
          "event": "chant"
        },
        "match": "all",
        "conditions": [],
        "actions": [
          {
            "kind": "message",
            "value": "You chant quietly, but this object does not answer."
          }
        ],
        "otherwise": "",
        "once": false
      },
      {
        "id": "lesson_room_default",
        "name": "room default",
        "enabled": true,
        "trigger": {
          "kind": "room",
          "target": "lesson_room",
          "event": "custom:chant"
        },
        "match": "all",
        "conditions": [],
        "actions": [
          {
            "kind": "message",
            "value": "Your voice fades into the empty shrine."
          }
        ],
        "otherwise": "",
        "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_answered",
            "operator": "==",
            "value": true
          }
        ],
        "actions": [
          {
            "kind": "message",
            "value": "The named custom action and its alias worked without a script body. 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": "16-use-default-verb-scripts-for-fallback-responses",
        "choices": {
          "room": {
            "existing": "",
            "name": "Echo Shrine",
            "description": "Take the silver token. CHANT at the echo obelisk by typing CHANT ECHO OBELISK. RECITE is an alias. CHANT by itself speaks to the room."
          },
          "obelisk": {
            "existing": "",
            "name": "echo obelisk",
            "description": "Use the shrine’s custom command with this obelisk."
          },
          "token": {
            "existing": "",
            "name": "silver token",
            "description": "Carry this token when using the custom command."
          },
          "bench": {
            "existing": "",
            "name": "stone bench",
            "description": "Ordinary scenery with no special chanting response."
          },
          "quiet": {
            "existing": "",
            "name": "Quiet Passage",
            "description": "This passage has ordinary stonework. Return south to the echo shrine."
          },
          "stone": {
            "existing": "",
            "name": "plain stone",
            "description": "An ordinary stone with no special chanting response."
          }
        },
        "values": {
          "success": "The echo obelisk answers your chant and remembers you.",
          "verb": "chant",
          "alias": "recite",
          "reuseCommand": false,
          "failure": "Carry the silver token before chanting to the obelisk.",
          "repeat": "The echo obelisk has already answered.",
          "fallback": "You chant quietly, but this object does not answer.",
          "roomResponse": "Your voice fades into the empty shrine."
        },
        "reuseRoutes": {}
      },
      "owned": [
        {
          "path": "files",
          "key": "scripts/custom_commands.taml",
          "after": {
            "path": "scripts/custom_commands.taml",
            "name": "custom_commands.taml",
            "content": "verb chant\n  aliases: [\"recite\"]\nend",
            "isDirty": true
          }
        },
        {
          "path": "files",
          "key": "rooms/lesson_room.taml",
          "after": {
            "path": "rooms/lesson_room.taml",
            "name": "lesson_room.taml",
            "content": "room lesson_room\n  exit north: lesson_quiet\n  name: \"Echo Shrine\"\n  description: \"Take the silver token. CHANT at the echo obelisk by typing CHANT ECHO OBELISK. RECITE is an alias. CHANT by itself speaks to the room.\"\n  dark: false\nend",
            "isDirty": true
          }
        },
        {
          "path": "files",
          "key": "objects/lesson_obelisk.taml",
          "after": {
            "path": "objects/lesson_obelisk.taml",
            "name": "lesson_obelisk.taml",
            "content": "object lesson_obelisk\n  name: \"echo obelisk\"\n  description: \"Use the shrine’s custom command with this obelisk.\"\n  location: lesson_room\n  droppable: false\n  use_give: true\n  weight: 0.1\nend",
            "isDirty": true
          }
        },
        {
          "path": "files",
          "key": "objects/lesson_token.taml",
          "after": {
            "path": "objects/lesson_token.taml",
            "name": "lesson_token.taml",
            "content": "object lesson_token\n  name: \"silver token\"\n  description: \"Carry this token when using the custom command.\"\n  location: lesson_room\n  takeable: true\n  use_give: true\n  weight: 0.1\nend",
            "isDirty": true
          }
        },
        {
          "path": "files",
          "key": "objects/lesson_bench.taml",
          "after": {
            "path": "objects/lesson_bench.taml",
            "name": "lesson_bench.taml",
            "content": "object lesson_bench\n  name: \"stone bench\"\n  description: \"Ordinary scenery with no special chanting response.\"\n  location: lesson_room\n  droppable: false\n  use_give: true\n  weight: 0.1\nend",
            "isDirty": true
          }
        },
        {
          "path": "files",
          "key": "rooms/lesson_quiet.taml",
          "after": {
            "path": "rooms/lesson_quiet.taml",
            "name": "lesson_quiet.taml",
            "content": "room lesson_quiet\n  exit south: lesson_room\n  name: \"Quiet Passage\"\n  description: \"This passage has ordinary stonework. Return south to the echo shrine.\"\n  dark: false\nend",
            "isDirty": true
          }
        },
        {
          "path": "files",
          "key": "objects/lesson_stone.taml",
          "after": {
            "path": "objects/lesson_stone.taml",
            "name": "lesson_stone.taml",
            "content": "object lesson_stone\n  name: \"plain stone\"\n  description: \"An ordinary stone with no special chanting response.\"\n  location: lesson_quiet\n  droppable: false\n  use_give: true\n  weight: 0.1\nend",
            "isDirty": true
          }
        },
        {
          "path": "objects",
          "key": "lesson_obelisk",
          "after": {
            "id": "lesson_obelisk",
            "name": "echo obelisk",
            "description": "Use the shrine’s custom command with this obelisk.",
            "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_token",
          "after": {
            "id": "lesson_token",
            "name": "silver token",
            "description": "Carry this token when using the custom command.",
            "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_bench",
          "after": {
            "id": "lesson_bench",
            "name": "stone bench",
            "description": "Ordinary scenery with no special chanting response.",
            "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_stone",
          "after": {
            "id": "lesson_stone",
            "name": "plain stone",
            "description": "An ordinary stone with no special chanting response.",
            "article": "",
            "location": "lesson_quiet",
            "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": "Echo Shrine",
            "description": "Take the silver token. CHANT at the echo obelisk by typing CHANT ECHO OBELISK. RECITE is an alias. CHANT by itself speaks to the room.",
            "reentryEnabled": false,
            "reentryDesc": "",
            "hint": "",
            "dark": false,
            "roomType": "regular",
            "x": 100,
            "y": 100,
            "width": 160,
            "height": 64,
            "color": "#000000",
            "blockedDescriptions": {}
          }
        },
        {
          "path": "mapRooms",
          "key": "lesson_quiet",
          "after": {
            "id": "lesson_quiet",
            "name": "Quiet Passage",
            "description": "This passage has ordinary stonework. Return south to the echo shrine.",
            "reentryEnabled": false,
            "reentryDesc": "",
            "hint": "",
            "dark": false,
            "roomType": "regular",
            "x": 320,
            "y": 100,
            "width": 160,
            "height": 64,
            "color": "#000000",
            "blockedDescriptions": {}
          }
        },
        {
          "path": "mapExits",
          "key": "lesson_route_quiet",
          "after": {
            "id": "lesson_route_quiet",
            "fromRoom": "lesson_room",
            "toRoom": "lesson_quiet",
            "direction": "north",
            "locked": false
          }
        },
        {
          "path": "mapExits",
          "key": "lesson_route_return",
          "after": {
            "id": "lesson_route_return",
            "fromRoom": "lesson_quiet",
            "toRoom": "lesson_room",
            "direction": "south",
            "locked": false
          }
        },
        {
          "path": "verbAliases",
          "key": "lesson_command_chant",
          "after": {
            "id": "lesson_command_chant",
            "canonical": "chant",
            "aliases": [
              "recite"
            ]
          }
        },
        {
          "path": "manifest.story.states",
          "key": "lesson_answered",
          "after": {
            "id": "lesson_answered",
            "name": "answered",
            "description": "Progress remembered by this recipe.",
            "type": "boolean",
            "initial": false
          }
        },
        {
          "path": "manifest.story.states",
          "key": "lesson_room_answered",
          "after": {
            "id": "lesson_room_answered",
            "name": "room answered",
            "description": "Progress remembered by this recipe.",
            "type": "boolean",
            "initial": false
          }
        },
        {
          "path": "manifest.story.rules",
          "key": "lesson_chant",
          "after": {
            "id": "lesson_chant",
            "name": "chant",
            "enabled": true,
            "trigger": {
              "kind": "object",
              "target": "lesson_obelisk",
              "event": "custom:chant"
            },
            "match": "all",
            "conditions": [
              {
                "kind": "inventory",
                "target": "lesson_token",
                "operator": "==",
                "value": true
              }
            ],
            "actions": [
              {
                "kind": "state",
                "target": "lesson_answered",
                "value": true
              },
              {
                "kind": "message",
                "value": "The echo obelisk answers your chant and remembers you."
              }
            ],
            "otherwise": "Carry the silver token before chanting to the obelisk.",
            "once": true,
            "repeatText": "The echo obelisk has already answered."
          }
        },
        {
          "path": "manifest.story.rules",
          "key": "lesson_default",
          "after": {
            "id": "lesson_default",
            "name": "default",
            "enabled": true,
            "trigger": {
              "kind": "command",
              "target": "",
              "event": "chant"
            },
            "match": "all",
            "conditions": [],
            "actions": [
              {
                "kind": "message",
                "value": "You chant quietly, but this object does not answer."
              }
            ],
            "otherwise": "",
            "once": false
          }
        },
        {
          "path": "manifest.story.rules",
          "key": "lesson_room_default",
          "after": {
            "id": "lesson_room_default",
            "name": "room default",
            "enabled": true,
            "trigger": {
              "kind": "room",
              "target": "lesson_room",
              "event": "custom:chant"
            },
            "match": "all",
            "conditions": [],
            "actions": [
              {
                "kind": "message",
                "value": "Your voice fades into the empty shrine."
              }
            ],
            "otherwise": "",
            "once": false
          }
        }
      ]
    }
  ],
  "creatorNotes": "A global custom-command fallback gives a helpful response for known objects without their own handler. A specific object response takes priority. Unknown nouns still ask for clarification, and a room response handles the command without a noun.\nOpen Help → Cookbook → Use Default Verb Scripts for Fallback Responses → Start this recipe to inspect its saved settings. The field journal and 100-point ending belong only to the sample game.\nCommands: chant; north; chant plain stone; chant absent statue; south; take silver token; chant echo obelisk; recite echo obelisk; use field journal",
  "mapRooms": [
    {
      "id": "lesson_room",
      "name": "Echo Shrine",
      "description": "Take the silver token. CHANT at the echo obelisk by typing CHANT ECHO OBELISK. RECITE is an alias. CHANT by itself speaks to the room.",
      "reentryEnabled": false,
      "reentryDesc": "",
      "hint": "",
      "dark": false,
      "roomType": "regular",
      "x": 100,
      "y": 100,
      "width": 160,
      "height": 64,
      "color": "#000000",
      "blockedDescriptions": {}
    },
    {
      "id": "lesson_quiet",
      "name": "Quiet Passage",
      "description": "This passage has ordinary stonework. Return south to the echo shrine.",
      "reentryEnabled": false,
      "reentryDesc": "",
      "hint": "",
      "dark": false,
      "roomType": "regular",
      "x": 320,
      "y": 100,
      "width": 160,
      "height": 64,
      "color": "#000000",
      "blockedDescriptions": {}
    }
  ],
  "mapExits": [
    {
      "id": "lesson_route_quiet",
      "fromRoom": "lesson_room",
      "toRoom": "lesson_quiet",
      "direction": "north",
      "locked": false
    },
    {
      "id": "lesson_route_return",
      "fromRoom": "lesson_quiet",
      "toRoom": "lesson_room",
      "direction": "south",
      "locked": false
    }
  ],
  "objects": [
    {
      "id": "lesson_obelisk",
      "name": "echo obelisk",
      "description": "Use the shrine’s custom command with this obelisk.",
      "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_token",
      "name": "silver token",
      "description": "Carry this token when using the custom command.",
      "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_bench",
      "name": "stone bench",
      "description": "Ordinary scenery with no special chanting response.",
      "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_stone",
      "name": "plain stone",
      "description": "An ordinary stone with no special chanting response.",
      "article": "",
      "location": "lesson_quiet",
      "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": [
    {
      "id": "lesson_command_chant",
      "canonical": "chant",
      "aliases": [
        "recite"
      ]
    }
  ],
  "scripts": [],
  "worldEvents": [],
  "customMechanicDefs": [],
  "savedMechanicTemplates": [],
  "objectiveSets": [],
  "gameOutliner": {},
  "customRoomTemplates": [],
  "customObjectTemplates": [],
  "customNpcTemplates": [],
  "customSavedScripts": [],
  "requiredCapabilities": [
    "story-rules-v1"
  ]
}
