{
  "version": "1.1",
  "name": "Use Custom Verbs for Special Actions",
  "startRoom": "lesson_room",
  "author": "TAGMaker",
  "description": "Create one new player command and an alias. Using it on a fixed obelisk requires a carried token, then remembers success and gives a clear response on repeats.",
  "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  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/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": "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": "12-use-custom-verbs-for-special-actions",
        "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."
          }
        },
        "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."
        },
        "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  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": "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": "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"
          }
        },
        {
          "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."
          }
        }
      ]
    }
  ],
  "creatorNotes": "Create one new player command and an alias. Using it on a fixed obelisk requires a carried token, then remembers success and gives a clear response on repeats.\nOpen Help → Cookbook → Use Custom Verbs for Special Actions → Start this recipe to inspect its saved settings. The field journal and 100-point ending belong only to the sample game.\nCommands: chant echo obelisk; recite echo obelisk; take silver token; recite echo obelisk; chant 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"
    }
  ],
  "mapExits": [],
  "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": "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"
  ]
}
