{
  "version": "1.1",
  "requiredCapabilities": [
    "story-rules-v1",
    "creator-features-v1",
    "script-functions-v1"
  ],
  "name": "The Signal Desk Scripts Workshop",
  "author": "TAGMaker",
  "description": "A safe three-room example of real typed reusable scripts, isolated locals, returned results, nested STOP repeat guards, a physical dispatch and accepted native Quest handover. Complete it for 100 points and 5 archive tokens.",
  "startRoom": "reception",
  "created": "2026-10-24T00:00:00.000Z",
  "modified": "2026-10-24T00:00:00.000Z",
  "playerConfig": {
    "scoreEnabled": true,
    "healthEnabled": false,
    "moneyEnabled": true,
    "startingMoney": 0,
    "currencyName": "archive tokens"
  },
  "story": {
    "version": 1,
    "states": [
      {
        "id": "red_ready",
        "name": "red ready",
        "description": "Workshop puzzle state.",
        "type": "boolean",
        "initial": false
      },
      {
        "id": "blue_ready",
        "name": "blue ready",
        "description": "Workshop puzzle state.",
        "type": "boolean",
        "initial": false
      },
      {
        "id": "dispatch_issued",
        "name": "dispatch issued",
        "description": "Workshop puzzle state.",
        "type": "boolean",
        "initial": false
      },
      {
        "id": "archive_open",
        "name": "archive open",
        "description": "Workshop puzzle state.",
        "type": "boolean",
        "initial": false
      },
      {
        "id": "dispatch_delivered",
        "name": "dispatch delivered",
        "description": "Workshop puzzle state.",
        "type": "boolean",
        "initial": false
      }
    ],
    "rules": [],
    "features": {
      "version": 1,
      "commandContext": true,
      "scriptFunctions": [
        {
          "version": 1,
          "id": "verify_setting",
          "name": "Verify a channel setting",
          "description": "Editable typed helper used by the Signal Desk workshop.",
          "inputs": [
            {
              "id": "entered",
              "name": "Submitted setting",
              "type": "number",
              "required": true
            },
            {
              "id": "expected",
              "name": "Required setting",
              "type": "number",
              "required": true
            },
            {
              "id": "label",
              "name": "Channel label",
              "type": "text",
              "required": false,
              "defaultValue": "channel"
            }
          ],
          "locals": [
            {
              "id": "difference",
              "name": "Difference",
              "type": "number",
              "initial": 0
            }
          ],
          "resultType": "boolean",
          "mode": "taml",
          "steps": []
        },
        {
          "version": 1,
          "id": "release_dispatch",
          "name": "Release the existing dispatch",
          "description": "Editable typed helper used by the Signal Desk workshop.",
          "inputs": [
            {
              "id": "parcel",
              "name": "Dispatch object",
              "type": "object",
              "required": true
            }
          ],
          "locals": [],
          "resultType": "boolean",
          "mode": "taml",
          "steps": []
        }
      ],
      "recipes": [
        {
          "id": "accept_dispatch",
          "name": "Accepted archivist dispatch",
          "enabled": true,
          "verbs": [
            "give"
          ],
          "unordered": false,
          "inputs": [
            {
              "objectId": "sealed_dispatch",
              "disposition": "transfer"
            }
          ],
          "tools": [],
          "target": {
            "kind": "npc",
            "id": "archivist"
          },
          "roomId": "reception",
          "match": "all",
          "conditions": [
            {
              "kind": "state",
              "target": "archive_open",
              "operator": "==",
              "value": true
            }
          ],
          "actions": [
            {
              "kind": "state",
              "target": "dispatch_delivered",
              "value": true
            }
          ],
          "once": true,
          "success": "The archivist accepts the one sealed dispatch and signs the delivery ledger.",
          "failure": "Bring the released sealed dispatch to the archivist at reception.",
          "repeat": "The archivist has already accepted the dispatch."
        }
      ],
      "quests": [
        {
          "id": "signal_dispatch",
          "name": "Calibrate and deliver",
          "enabled": true,
          "description": "Calibrate the two real channels, release the dispatch, and make an accepted handover.",
          "stages": [
            {
              "id": "calibrate",
              "name": "Calibrate both channels",
              "description": "Both typed helper results must have been accepted.",
              "prerequisites": [],
              "optional": false,
              "automatic": true,
              "conditions": [
                {
                  "kind": "state",
                  "target": "red_ready",
                  "operator": "==",
                  "value": true
                },
                {
                  "kind": "state",
                  "target": "blue_ready",
                  "operator": "==",
                  "value": true
                }
              ],
              "match": "all",
              "completionText": "Both channels agree. The console is ready.",
              "actions": []
            },
            {
              "id": "release",
              "name": "Release the dispatch",
              "description": "Open the real route through the console.",
              "prerequisites": [
                "calibrate"
              ],
              "optional": false,
              "automatic": true,
              "conditions": [
                {
                  "kind": "state",
                  "target": "archive_open",
                  "operator": "==",
                  "value": true
                }
              ],
              "match": "all",
              "completionText": "The archive route is available.",
              "actions": []
            },
            {
              "id": "deliver",
              "name": "Make the accepted handover",
              "description": "A native Recipe must transfer the dispatch to the archivist.",
              "prerequisites": [
                "release"
              ],
              "optional": false,
              "automatic": true,
              "conditions": [
                {
                  "kind": "state",
                  "target": "dispatch_delivered",
                  "operator": "==",
                  "value": true
                }
              ],
              "match": "all",
              "completionText": "The signed handover completes the service.",
              "actions": []
            }
          ],
          "completionText": "Signal Desk service complete! Shared typed calls, a real route, one physical dispatch and its accepted handover agree. You earn 100 points and 5 archive tokens.",
          "completionActions": [
            {
              "kind": "score",
              "value": 100
            },
            {
              "kind": "money",
              "value": 5
            },
            {
              "kind": "end"
            }
          ]
        }
      ]
    }
  },
  "files": [
    {
      "path": "scripts/game_start.taml",
      "content": "script on_game_start\ngoto: reception\nend"
    },
    {
      "path": "scripts/on_turn_end.taml",
      "content": "script on_turn_end\n\nend"
    },
    {
      "path": "scripts/verify_setting.taml",
      "content": "script verify_setting\nlocal difference = entered - expected\nif difference == 0\n  print label + \": setting accepted.\"\n  return true\nendif\nprint label + \": setting rejected; no puzzle state changed.\"\nreturn false\nend"
    },
    {
      "path": "scripts/release_dispatch.taml",
      "content": "script release_dispatch\nif dispatch_issued == true\n  print \"The console has already released its one sealed dispatch.\"\n  return false\nendif\nreveal: [parcel]\nset dispatch_issued = true\nprint \"The console opens the archive route and reveals the sealed dispatch.\"\nreturn true\nend"
    },
    {
      "path": "rooms/reception.taml",
      "content": "room reception\n  name: \"Archive Reception\"\n  narrative: \"The archivist needs a sealed dispatch from the signal archive. Go EAST, calibrate both dials, USE CONSOLE, collect the dispatch to the NORTH, then return and give it to the archivist. This safe workshop demonstrates shared scripts with typed arguments, local scratch values and returned results. There is no combat or time limit.\"\n  description: \"The archivist waits beside the delivery ledger. The signal room is east.\"\n  hint: \"Go EAST. READ INSTRUCTIONS for the complete route.\"\n  exit east: signal_room\nend"
    },
    {
      "path": "rooms/signal_room.taml",
      "content": "room signal_room\n  name: \"Signal Desk\"\n  description: \"Red and blue dials share one verification routine. A test dial demonstrates a rejected setting. The console controls the archive route to the north; reception is west.\"\n  hint: \"USE RED DIAL, USE BLUE DIAL, then USE CONSOLE. USE TEST DIAL safely demonstrates failure. Go NORTH once the route opens.\"\n  exit west: reception\n  exit north: archive when: archive_open\n  blocked north: \"The archive route is closed. Calibrate both dials, then USE CONSOLE.\"\nend"
    },
    {
      "path": "rooms/archive.taml",
      "content": "room archive\n  name: \"Dispatch Archive\"\n  description: \"The console has released one sealed dispatch. The signal room is south.\"\n  hint: \"TAKE SEALED DISPATCH, SOUTH, WEST, then GIVE SEALED DISPATCH TO ARCHIVIST.\"\n  exit south: signal_room\nend"
    },
    {
      "path": "objects/instructions.taml",
      "content": "object instructions\n  name: \"instructions\"\n  description: \"SIGNAL DESK WORKSHOP: USE TEST DIAL shows a rejected call without changing the puzzle. USE RED DIAL and USE BLUE DIAL calibrate the two channels through the same typed shared helper, each with its own arguments, local value and returned result. USE CONSOLE then opens the NORTH archive route and reveals one existing sealed dispatch through an object-typed helper. Go NORTH, TAKE SEALED DISPATCH, SOUTH, WEST, then GIVE SEALED DISPATCH TO ARCHIVIST. A real native Recipe must accept the handover before the Quest awards 100 points and 5 archive tokens. Repeated calibration and console use are harmless. SAVE, LOAD and UNDO can be tried before the final delivery. There is no combat, random gate or timed hazard.\"\n  location: signal_room\n  aliases: [\"briefing\", \"note\"]\n  droppable: false\n  weight: 0.1\n  on read:\n    print \"SIGNAL DESK WORKSHOP: USE TEST DIAL shows a rejected call without changing the puzzle. USE RED DIAL and USE BLUE DIAL calibrate the two channels through the same typed shared helper, each with its own arguments, local value and returned result. USE CONSOLE then opens the NORTH archive route and reveals one existing sealed dispatch through an object-typed helper. Go NORTH, TAKE SEALED DISPATCH, SOUTH, WEST, then GIVE SEALED DISPATCH TO ARCHIVIST. A real native Recipe must accept the handover before the Quest awards 100 points and 5 archive tokens. Repeated calibration and console use are harmless. SAVE, LOAD and UNDO can be tried before the final delivery. There is no combat, random gate or timed hazard.\"\n  end\nend"
    },
    {
      "path": "objects/red_dial.taml",
      "content": "object red_dial\n  name: \"red dial\"\n  description: \"USE RED DIAL calibrates the red channel to setting two. It calls the same shared verifier as the blue channel.\"\n  location: signal_room\n  aliases: [\"red control\"]\n  droppable: false\n  use_give: true\n  weight: 0.1\n  on use:\n    if red_ready == true\n    print \"The red channel is already calibrated.\"\n    stop\n    endif\n    local accepted = false\n    run_script: verify_setting with: [entered = 2, expected = 2, label = \"red channel\"] into: accepted\n    if accepted == true\n    set red_ready = true\n    endif\n  end\nend"
    },
    {
      "path": "objects/blue_dial.taml",
      "content": "object blue_dial\n  name: \"blue dial\"\n  description: \"USE BLUE DIAL calibrates the blue channel to setting three. Each call has separate local scratch values.\"\n  location: signal_room\n  aliases: [\"blue control\"]\n  droppable: false\n  use_give: true\n  weight: 0.1\n  on use:\n    if blue_ready == true\n    print \"The blue channel is already calibrated.\"\n    stop\n    endif\n    local accepted = false\n    run_script: verify_setting with: [entered = 3, expected = 3, label = \"blue channel\"] into: accepted\n    if accepted == true\n    set blue_ready = true\n    endif\n  end\nend"
    },
    {
      "path": "objects/test_dial.taml",
      "content": "object test_dial\n  name: \"test dial\"\n  description: \"USE TEST DIAL deliberately submits an incorrect setting to the shared verifier. It changes no channel and costs no resources.\"\n  location: signal_room\n  aliases: [\"test control\"]\n  droppable: false\n  use_give: true\n  weight: 0.1\n  on use:\n    local accepted = true\n    run_script: verify_setting with: [entered = 1, expected = 2, label = \"test channel\"] into: accepted\n    if accepted == false\n    print \"The failed test returned false. Both real channels remain as they were.\"\n    endif\n  end\nend"
    },
    {
      "path": "objects/console.taml",
      "content": "object console\n  name: \"console\"\n  description: \"After both channels are calibrated, USE CONSOLE opens the archive route and reveals its existing dispatch. It never creates another dispatch.\"\n  location: signal_room\n  aliases: [\"desk\", \"signal console\"]\n  droppable: false\n  use_give: true\n  weight: 0.1\n  on use:\n    if red_ready == false\n    print \"Calibrate the red channel first: USE RED DIAL.\"\n    stop\n    endif\n    if blue_ready == false\n    print \"Calibrate the blue channel first: USE BLUE DIAL.\"\n    stop\n    endif\n    local released = false\n    run_script: release_dispatch with: [parcel = \"sealed_dispatch\"] into: released\n    if released == true\n    set archive_open = true\n    endif\n  end\nend"
    },
    {
      "path": "objects/sealed_dispatch.taml",
      "content": "object sealed_dispatch\n  name: \"sealed dispatch\"\n  description: \"One physical sealed dispatch, released by the console. Carry it back to reception and GIVE SEALED DISPATCH TO ARCHIVIST.\"\n  location: archive\n  aliases: [\"dispatch\", \"parcel\"]\n  visible: false\n  takeable: true\n  use_give: true\n  weight: 0.1\nend"
    },
    {
      "path": "npcs/archivist.taml",
      "content": "npc archivist\n  name: \"archivist\"\n  description: \"The archivist receives the sealed dispatch through an accepted native handover.\"\n  location: reception\n  mobile: false\n  follow: false\n  aliases: [\"clerk\"]\n  health: 100\n  combat_side: neutral\n  auto_fight: false\n  attack_power: 10\n  defense: 0\n  trust: 50\n  dialogue default:\n    print \"archivist looks at you in silence.\"\n  end\n  on talk:\n    print \"Go EAST to the signal room. Calibrate both dials, USE CONSOLE, and collect the dispatch through the NORTH archive route. Return here and GIVE SEALED DISPATCH TO ARCHIVIST.\"\n  end\nend"
    }
  ],
  "mapRooms": [
    {
      "id": "reception",
      "name": "Archive Reception",
      "narrative": "The archivist needs a sealed dispatch from the signal archive. Go EAST, calibrate both dials, USE CONSOLE, collect the dispatch to the NORTH, then return and give it to the archivist. This safe workshop demonstrates shared scripts with typed arguments, local scratch values and returned results. There is no combat or time limit.",
      "description": "The archivist waits beside the delivery ledger. The signal room is east.",
      "reentryEnabled": false,
      "reentryDesc": "",
      "hint": "Go EAST. READ INSTRUCTIONS for the complete route.",
      "dark": false,
      "roomType": "regular",
      "x": 180,
      "y": 350,
      "width": 160,
      "height": 64,
      "color": "#000000"
    },
    {
      "id": "signal_room",
      "name": "Signal Desk",
      "description": "Red and blue dials share one verification routine. A test dial demonstrates a rejected setting. The console controls the archive route to the north; reception is west.",
      "reentryEnabled": false,
      "reentryDesc": "",
      "hint": "USE RED DIAL, USE BLUE DIAL, then USE CONSOLE. USE TEST DIAL safely demonstrates failure. Go NORTH once the route opens.",
      "dark": false,
      "roomType": "regular",
      "x": 380,
      "y": 350,
      "width": 160,
      "height": 64,
      "color": "#000000"
    },
    {
      "id": "archive",
      "name": "Dispatch Archive",
      "description": "The console has released one sealed dispatch. The signal room is south.",
      "reentryEnabled": false,
      "reentryDesc": "",
      "hint": "TAKE SEALED DISPATCH, SOUTH, WEST, then GIVE SEALED DISPATCH TO ARCHIVIST.",
      "dark": false,
      "roomType": "regular",
      "x": 380,
      "y": 150,
      "width": 160,
      "height": 64,
      "color": "#000000"
    }
  ],
  "mapExits": [
    {
      "id": "reception_signal",
      "fromRoom": "reception",
      "toRoom": "signal_room",
      "direction": "east",
      "locked": false
    },
    {
      "id": "signal_reception",
      "fromRoom": "signal_room",
      "toRoom": "reception",
      "direction": "west",
      "locked": false
    },
    {
      "id": "signal_archive",
      "fromRoom": "signal_room",
      "toRoom": "archive",
      "direction": "north",
      "when": "archive_open",
      "locked": false
    },
    {
      "id": "archive_signal",
      "fromRoom": "archive",
      "toRoom": "signal_room",
      "direction": "south",
      "locked": false
    }
  ],
  "objects": [
    {
      "id": "instructions",
      "name": "instructions",
      "description": "SIGNAL DESK WORKSHOP: USE TEST DIAL shows a rejected call without changing the puzzle. USE RED DIAL and USE BLUE DIAL calibrate the two channels through the same typed shared helper, each with its own arguments, local value and returned result. USE CONSOLE then opens the NORTH archive route and reveals one existing sealed dispatch through an object-typed helper. Go NORTH, TAKE SEALED DISPATCH, SOUTH, WEST, then GIVE SEALED DISPATCH TO ARCHIVIST. A real native Recipe must accept the handover before the Quest awards 100 points and 5 archive tokens. Repeated calibration and console use are harmless. SAVE, LOAD and UNDO can be tried before the final delivery. There is no combat, random gate or timed hazard.",
      "article": "",
      "location": "signal_room",
      "aliases": [
        "briefing",
        "note"
      ],
      "visible": true,
      "takeable": false,
      "droppable": false,
      "useGive": false,
      "container": false,
      "switchable": false,
      "edible": false,
      "drinkable": false,
      "wearable": false,
      "weapon": false,
      "weight": 0.1,
      "locked": false,
      "lockKey": "",
      "events": [
        {
          "id": "read",
          "event": "read",
          "withTarget": "",
          "body": "print \"SIGNAL DESK WORKSHOP: USE TEST DIAL shows a rejected call without changing the puzzle. USE RED DIAL and USE BLUE DIAL calibrate the two channels through the same typed shared helper, each with its own arguments, local value and returned result. USE CONSOLE then opens the NORTH archive route and reveals one existing sealed dispatch through an object-typed helper. Go NORTH, TAKE SEALED DISPATCH, SOUTH, WEST, then GIVE SEALED DISPATCH TO ARCHIVIST. A real native Recipe must accept the handover before the Quest awards 100 points and 5 archive tokens. Repeated calibration and console use are harmless. SAVE, LOAD and UNDO can be tried before the final delivery. There is no combat, random gate or timed hazard.\""
        }
      ]
    },
    {
      "id": "red_dial",
      "name": "red dial",
      "description": "USE RED DIAL calibrates the red channel to setting two. It calls the same shared verifier as the blue channel.",
      "article": "",
      "location": "signal_room",
      "aliases": [
        "red control"
      ],
      "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": "use",
          "event": "use",
          "withTarget": "",
          "body": "if red_ready == true\n  print \"The red channel is already calibrated.\"\n  stop\nendif\nlocal accepted = false\nrun_script: verify_setting with: [entered = 2, expected = 2, label = \"red channel\"] into: accepted\nif accepted == true\n  set red_ready = true\nendif"
        }
      ]
    },
    {
      "id": "blue_dial",
      "name": "blue dial",
      "description": "USE BLUE DIAL calibrates the blue channel to setting three. Each call has separate local scratch values.",
      "article": "",
      "location": "signal_room",
      "aliases": [
        "blue control"
      ],
      "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": "use",
          "event": "use",
          "withTarget": "",
          "body": "if blue_ready == true\n  print \"The blue channel is already calibrated.\"\n  stop\nendif\nlocal accepted = false\nrun_script: verify_setting with: [entered = 3, expected = 3, label = \"blue channel\"] into: accepted\nif accepted == true\n  set blue_ready = true\nendif"
        }
      ]
    },
    {
      "id": "test_dial",
      "name": "test dial",
      "description": "USE TEST DIAL deliberately submits an incorrect setting to the shared verifier. It changes no channel and costs no resources.",
      "article": "",
      "location": "signal_room",
      "aliases": [
        "test control"
      ],
      "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": "use",
          "event": "use",
          "withTarget": "",
          "body": "local accepted = true\nrun_script: verify_setting with: [entered = 1, expected = 2, label = \"test channel\"] into: accepted\nif accepted == false\n  print \"The failed test returned false. Both real channels remain as they were.\"\nendif"
        }
      ]
    },
    {
      "id": "console",
      "name": "console",
      "description": "After both channels are calibrated, USE CONSOLE opens the archive route and reveals its existing dispatch. It never creates another dispatch.",
      "article": "",
      "location": "signal_room",
      "aliases": [
        "desk",
        "signal console"
      ],
      "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": "use",
          "event": "use",
          "withTarget": "",
          "body": "if red_ready == false\n  print \"Calibrate the red channel first: USE RED DIAL.\"\n  stop\nendif\nif blue_ready == false\n  print \"Calibrate the blue channel first: USE BLUE DIAL.\"\n  stop\nendif\nlocal released = false\nrun_script: release_dispatch with: [parcel = \"sealed_dispatch\"] into: released\nif released == true\n  set archive_open = true\nendif"
        }
      ]
    },
    {
      "id": "sealed_dispatch",
      "name": "sealed dispatch",
      "description": "One physical sealed dispatch, released by the console. Carry it back to reception and GIVE SEALED DISPATCH TO ARCHIVIST.",
      "article": "",
      "location": "archive",
      "aliases": [
        "dispatch",
        "parcel"
      ],
      "visible": false,
      "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": []
    }
  ],
  "npcs": [
    {
      "id": "archivist",
      "name": "archivist",
      "description": "The archivist receives the sealed dispatch through an accepted native handover.",
      "location": "reception",
      "mobile": false,
      "aliases": [
        "clerk"
      ],
      "onEnter": "",
      "onExamine": "",
      "onTalk": "print \"Go EAST to the signal room. Calibrate both dials, USE CONSOLE, and collect the dispatch through the NORTH archive route. Return here and GIVE SEALED DISPATCH TO ARCHIVIST.\"",
      "onAttack": "",
      "onDeath": "",
      "onFollow": "",
      "onAutoAttack": "",
      "onTrustChange": "",
      "onGive": "",
      "onBeforeTalk": "",
      "onAfterTalk": "",
      "onBeforeAttack": "",
      "onAfterAttack": "",
      "onDamage": "",
      "onHeal": "",
      "onMove": "",
      "onLeave": "",
      "followPlayer": false,
      "health": 100,
      "combatSide": "neutral",
      "autoFight": false,
      "attackPower": 10,
      "defense": 0,
      "trustLevel": 50,
      "conversationEnabled": false,
      "convGreeting": "",
      "convFarewell": "",
      "convTopics": [],
      "dialogues": [
        {
          "id": "default",
          "trigger": "default",
          "body": "print \"archivist looks at you in silence.\""
        }
      ]
    }
  ],
  "scripts": [
    {
      "id": "on_game_start",
      "name": "On Game Start",
      "description": "Runs automatically when the game starts.",
      "body": "goto: reception",
      "kind": "global"
    },
    {
      "id": "on_turn_end",
      "name": "on_turn_end",
      "description": "Native lifecycle only.",
      "body": "",
      "kind": "global"
    },
    {
      "id": "verify_setting",
      "name": "Verify a channel setting",
      "description": "Shared numeric/text inputs, a private numeric local and Boolean result.",
      "body": "local difference = entered - expected\nif difference == 0\n  print label + \": setting accepted.\"\n  return true\nendif\nprint label + \": setting rejected; no puzzle state changed.\"\nreturn false",
      "kind": "shared"
    },
    {
      "id": "release_dispatch",
      "name": "Release the existing dispatch",
      "description": "A typed object target and saved once guard; no cloning.",
      "body": "if dispatch_issued == true\n  print \"The console has already released its one sealed dispatch.\"\n  return false\nendif\nreveal: [parcel]\nset dispatch_issued = true\nprint \"The console opens the archive route and reveals the sealed dispatch.\"\nreturn true",
      "kind": "shared"
    }
  ],
  "activeMechanics": [],
  "verbAliases": [],
  "worldEvents": [],
  "customMechanicDefs": [],
  "savedMechanicTemplates": [],
  "objectiveSets": [],
  "gameOutliner": {
    "title": "The Island of Failed Prophets",
    "hook": "You are invited to a remote island gathering of disgraced doomsday prophets, but when one of them predicts a final catastrophe before sunrise, the island turns into a deadly puzzle of lies, traps, rituals, and hidden machinery.",
    "coreIdea": "The player is trapped on Saint Orison Island with failed prophets, cult leaders, fake mystics, disgraced scientists, wealthy believers, and dangerous followers. A new prophecy claims that before sunrise the island will burn, the sea will rise, and only the true believer will leave alive. The player investigates, survives escalating danger, builds NPC relationships, uncovers the truth, stops the final ritual, and escapes before dawn.",
    "playerRole": "You are a skeptical investigator and writer known for exposing cults, false prophets, fake miracles, and end-times frauds. You begin confident and rational, but the island is designed to make you doubt what is staged and what might be real.",
    "mainObjective": "Survive the island, expose the false prophecy, stop the final ritual, rescue key allies, and escape before sunrise.",
    "secondaryObjectives": "Repair the radio tower and call for help. Rescue the sidekick if captured. Collect evidence proving the prophecy is staged. Discover who invited you to the island. Learn the mentor's hidden connection to the island. Expose the true villain. Escape with enough proof to destroy the cult network. Find the secret ending by proving the prophecy may be partly real.",
    "toneGenre": "Genre: mystery, survival horror, psychological thriller, cult investigation.\nTone: dark, tense, strange, suspicious, atmospheric.\nPerspective: second person, present tense.\nStyle: exploration-heavy text adventure with story-driven puzzles, NPC relationships, survival mechanics, clue gathering, danger events, and combat.",
    "settingOverview": "Remote Saint Orison Island: dock, guest lodge, dining hall, chapel, Prophets' Hall, observatory, gardens, radio tower, sea caves, maintenance tunnels, underground bunker, and burning shrine. The island should feel like a classic text adventure map with connected rooms, locked areas, hidden exits, puzzles, danger zones, and meaningful objects.",
    "storyTheme": "Main theme: What happens when people would rather believe a terrifying lie than face an ordinary truth?\n\nSecondary themes: fear as a weapon, cult manipulation, shame and redemption, skepticism versus faith, truth versus performance, the need to be believed, and the danger of charismatic leaders.",
    "mainConflict": "The player believes the prophecy is fake. The island is designed to make the player doubt that belief. The enemies want the player silenced, converted, discredited, or killed. The mystery is whether the prophecy is a fraud, staged ritual, murder plot, or something partly real.",
    "coreMechanics": "Health, fear meter, trust system, evidence score, time until dawn, and combat.\n\nFear may distort descriptions or choices. Trust unlocks help and secrets. Evidence improves endings. Time phases move from arrival to sunrise.",
    "mainNpcs": "Sidekick: Mara Voss, a documentary filmmaker and secret investigator.\nMentor: Dr. Elias Crowe, a former psychologist and cult-deprogramming expert.\nAllies: Nina Vale, Brother Amos, Tessa Quill.\nNeutral: Boat Captain, Archivist, Silent Gardener, Rich Patron.\nEnemies: Mother Sable, Jonah Flint, White-Robed Disciples, Masked Bell-Ringer, the True Architect.",
    "objectCategories": "Key objects: rusted key, brass chapel key, observatory crank, bunker access card.\nSurvival: bandages, clean water, lantern oil, coffee tin, matches, raincoat, rope.\nClue objects: torn prophecy page, burned journal, wet invitation, old photograph, audio tape, star chart, guest registry, payment ledger.\nWeapons: walking stick, kitchen knife, broken bottle, flare gun, rusted spear.\nPuzzle, trade, and dangerous objects as needed.",
    "mainRooms": "Dock: arrival — no easy way back.\nGuest Lodge: safe hub and early clues.\nDining Hall: prophecy announced, first danger.\nProphets' Hall: history of failed predictions.\nChapel: ritual room and bell puzzle.\nObservatory: false blood moon.\nGarden Maze: navigation/fear puzzle.\nRadio Tower: call for help.\nSea Caves: tide danger.\nMaintenance Tunnels: staged miracles revealed.\nUnderground Bunker: truth of the prophecy.\nBurning Shrine: final confrontation.",
    "puzzleDesign": "Example — The Chapel Bell Sequence:\nLocation: Chapel of the Last Hour.\nRequired objects: silver bell, torn hymn page, wax seal.\nClues: hymn page gives numbers; floor symbols show order.\nSolution: ring the bell according to the hymn pattern while standing on the correct symbol.\nFailure: chapel locks, fear rises, Bell-Ringer may appear.\nReward: hidden crypt stairs open.",
    "eventDesign": "Example events: The First Bell, The Poisoned Toast, The False Moon, Mara's Capture, The Rising Tide, The Shrine Fire.\n\nEach event should have a trigger, player choices, consequences, and story effect.",
    "combatDesign": "Example — White-Robed Disciple:\nLocation: Radio Tower or tunnels.\nWeapon: club or knife. Danger: medium.\nOptions: fight, flee, distract, use flare, call Mara for help, hide in maintenance closet.\nVictory reward: patrol key, robe disguise, or restricted path access.\nFailure penalty: health loss, capture, item loss, or fear increase.",
    "dialogueDesign": "Dialogue should reveal story, build relationships, unlock clues, and create consequences.\n\nTopics may include island, prophecy, specific NPCs, accusations, showing evidence, offering items, requesting help, threatening, comforting, lying, or telling the truth.\n\nExample: showing Tessa the red glass disc unlocks her explanation of the false blood moon effect.",
    "scoringSystem": "+5 useful object found\n+10 minor puzzle solved\n+20 major puzzle solved\n+25 rescue an ally\n+30 expose a fake omen\n+50 stop the final ritual\n+50 escape with evidence\n\nNegative score for: harming innocents, abandoning sidekick, destroying evidence, or killing when avoidable.",
    "endings": "Best: expose prophecy, save Mara, stop ritual, escape with evidence.\nGood: escape and stop ritual but lack enough proof.\nDark: escape alone while the island burns.\nCult: fail the final mind puzzle and become the new prophet.\nDeath: die from fire, tide, combat, poison, or final trap.\nSecret: prove most was fake but discover one part was real.",
    "builderChecklist": "Before building, answer:\n• What is the main objective?\n• What is the locked setting?\n• Who is the sidekick?\n• Who is the mentor?\n• Who are allies, neutrals, enemies?\n• What objects are essential, optional, dangerous, or misleading?\n• What are the rooms, puzzles, traps, combat encounters, mechanics, and endings?\n• What is the first scene the player experiences?\n• What is the emotional core of the story?",
    "finalNotes": "What makes this idea exciting as a text adventure: the island setting creates a natural locked environment, the NPC network rewards exploration and relationship-building, and the prophecy mystery gives the player a reason to investigate every room.\n\nBuild first: the core island loop — dock, lodge, dining hall, chapel — with working NPCs and the evidence system."
  },
  "customRoomTemplates": [],
  "customObjectTemplates": [],
  "customNpcTemplates": [],
  "customSavedScripts": []
}
