{
  "version": "1.1",
  "name": "Shadow Curse",
  "startRoom": "lesson_road",
  "author": "TAGMaker",
  "description": "Entering a cursed threshold starts a ten-turn deadline. Open a real chest, take its silver medallion and wear it to lift the curse. Carrying it alone is insufficient. If the deadline passes, the shadow appears and the game ends.",
  "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_road.taml",
      "content": "room lesson_road\n  exit north: lesson_threshold\n  name: \"Uncursed Road\"\n  description: \"The cursed threshold is north. Waiting here does not start the curse.\"\n  dark: false\nend"
    },
    {
      "path": "rooms/lesson_threshold.taml",
      "content": "room lesson_threshold\n  exit east: lesson_reliquary\n  exit south: lesson_road\n  name: \"Cursed Threshold\"\n  description: \"The reliquary is east. Find and wear the silver medallion before the shadow arrives.\"\n  dark: false\nend"
    },
    {
      "path": "rooms/lesson_reliquary.taml",
      "content": "room lesson_reliquary\n  exit west: lesson_threshold\n  name: \"Medallion Reliquary\"\n  description: \"OPEN CHEST, TAKE SILVER MEDALLION FROM CHEST, then WEAR SILVER MEDALLION.\"\n  dark: false\nend"
    },
    {
      "path": "objects/lesson_chest.taml",
      "content": "object lesson_chest\n  name: \"chest\"\n  description: \"A real container holding the medallion.\"\n  contents_v1: \"{\\\"version\\\":1,\\\"kind\\\":\\\"container\\\",\\\"open\\\":false}\"\n  location: lesson_reliquary\n  droppable: false\n  container: true\n  weight: 0.1\nend"
    },
    {
      "path": "objects/lesson_medallion.taml",
      "content": "object lesson_medallion\n  name: \"silver medallion\"\n  description: \"Wear this to lift the curse.\"\n  contents_v1: \"{\\\"version\\\":1,\\\"placement\\\":{\\\"parentId\\\":\\\"lesson_chest\\\",\\\"relation\\\":\\\"inside\\\"}}\"\n  takeable: true\n  wearable: true\n  weight: 0.1\nend"
    },
    {
      "path": "npcs/lesson_shadow.taml",
      "content": "npc lesson_shadow\n  name: \"shadow\"\n  description: \"The shadow has reached the cursed threshold.\"\n  location: nowhere\n  mobile: true\n  follow: false\n  health: 100\n  combat_side: neutral\n  auto_fight: false\n  attack_power: 10\n  defense: 0\n  trust: 50\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_cured",
        "name": "cured",
        "description": "Progress remembered by this recipe.",
        "type": "boolean",
        "initial": false
      },
      {
        "id": "lesson_caught",
        "name": "caught",
        "description": "Progress remembered by this recipe.",
        "type": "boolean",
        "initial": false
      }
    ],
    "rules": [
      {
        "id": "sample_finish",
        "name": "Record the completed expedition",
        "enabled": true,
        "trigger": {
          "kind": "object",
          "target": "sample_field_journal",
          "event": "use"
        },
        "match": "all",
        "conditions": [
          {
            "kind": "state",
            "target": "lesson_cured",
            "operator": "==",
            "value": true
          }
        ],
        "actions": [
          {
            "kind": "message",
            "value": "The actual worn medallion stopped the curse permanently. You record the result in your field journal. Your expedition is complete."
          },
          {
            "kind": "score",
            "value": 100
          },
          {
            "kind": "end",
            "value": "Your expedition is complete."
          }
        ],
        "otherwise": "Your expedition is not complete yet. Follow the room clues, then use the field journal to record your success.",
        "once": true
      }
    ],
    "features": {
      "version": 1,
      "mechanics": [
        {
          "version": 1,
          "id": "lesson_curse",
          "name": "Countdown",
          "description": "Countdown",
          "category": "Creator Cookbook",
          "enabled": true,
          "autoStart": true,
          "inputs": [],
          "variables": [
            {
              "id": "remaining",
              "name": "Turns remaining",
              "type": "number",
              "initial": 10,
              "min": 0,
              "max": 10000,
              "showInPlayer": true,
              "suffix": "turns"
            }
          ],
          "scope": {
            "kind": "global",
            "rooms": []
          },
          "initialPhase": "waiting",
          "phases": [
            {
              "id": "waiting",
              "name": "waiting",
              "onEnter": [],
              "onExit": []
            },
            {
              "id": "active",
              "name": "active",
              "onEnter": [],
              "onExit": []
            },
            {
              "id": "finished",
              "name": "finished",
              "onEnter": [],
              "onExit": []
            },
            {
              "id": "cancelled",
              "name": "cancelled",
              "onEnter": [],
              "onExit": []
            }
          ],
          "rules": [
            {
              "id": "cure",
              "name": "cure",
              "enabled": true,
              "trigger": {
                "kind": "turn",
                "target": "",
                "event": ""
              },
              "conditions": {
                "match": "all",
                "conditions": [
                  {
                    "kind": "objective",
                    "criterion": {
                      "kind": "object_worn",
                      "target": "lesson_medallion",
                      "targetKind": "object"
                    }
                  }
                ]
              },
              "actions": [
                {
                  "kind": "state",
                  "target": "lesson_cured",
                  "value": true
                },
                {
                  "kind": "message",
                  "value": "The worn medallion lifts the curse. The shadow cannot return."
                }
              ],
              "otherwise": [],
              "initialDelay": 0,
              "interval": 1,
              "cooldown": 0,
              "maxUses": 1,
              "probability": 1,
              "priority": 200,
              "phase": "active"
            },
            {
              "id": "start",
              "name": "start",
              "enabled": true,
              "trigger": {
                "kind": "room",
                "target": "lesson_threshold",
                "event": "enter"
              },
              "conditions": {
                "match": "all",
                "conditions": []
              },
              "actions": [
                {
                  "kind": "phase",
                  "target": "active"
                },
                {
                  "kind": "message",
                  "value": "A shadow follows your steps. Find and wear the silver medallion."
                }
              ],
              "otherwise": [],
              "initialDelay": 0,
              "interval": 1,
              "cooldown": 0,
              "maxUses": 1,
              "probability": 1,
              "priority": 0,
              "phase": "waiting"
            },
            {
              "id": "cancel",
              "name": "cancel",
              "enabled": true,
              "trigger": {
                "kind": "turn",
                "target": "",
                "event": ""
              },
              "conditions": {
                "match": "all",
                "conditions": [
                  {
                    "kind": "rule",
                    "condition": {
                      "kind": "state",
                      "target": "lesson_cured",
                      "operator": "==",
                      "value": true
                    }
                  }
                ]
              },
              "actions": [
                {
                  "kind": "phase",
                  "target": "cancelled"
                },
                {
                  "kind": "mechanic",
                  "target": "self",
                  "operation": "complete"
                }
              ],
              "otherwise": [],
              "initialDelay": 0,
              "interval": 1,
              "cooldown": 0,
              "maxUses": 0,
              "probability": 1,
              "priority": 100,
              "phase": "active"
            },
            {
              "id": "tick",
              "name": "tick",
              "enabled": true,
              "trigger": {
                "kind": "turn",
                "target": "",
                "event": ""
              },
              "conditions": {
                "match": "all",
                "conditions": []
              },
              "actions": [
                {
                  "kind": "local",
                  "target": "remaining",
                  "operation": "subtract",
                  "value": 1
                }
              ],
              "otherwise": [],
              "initialDelay": 0,
              "interval": 1,
              "cooldown": 0,
              "maxUses": 0,
              "probability": 1,
              "priority": 30,
              "phase": "active"
            },
            {
              "id": "warning",
              "name": "warning",
              "enabled": true,
              "trigger": {
                "kind": "turn",
                "target": "",
                "event": ""
              },
              "conditions": {
                "match": "all",
                "conditions": [
                  {
                    "kind": "local",
                    "target": "remaining",
                    "operator": "<=",
                    "value": 2
                  },
                  {
                    "kind": "local",
                    "target": "remaining",
                    "operator": ">",
                    "value": 0
                  }
                ]
              },
              "actions": [
                {
                  "kind": "message",
                  "value": "The shadow is almost here. Wear the medallion now."
                }
              ],
              "otherwise": [],
              "initialDelay": 0,
              "interval": 1,
              "cooldown": 0,
              "maxUses": 1,
              "probability": 1,
              "priority": 20,
              "phase": "active"
            },
            {
              "id": "finish",
              "name": "finish",
              "enabled": true,
              "trigger": {
                "kind": "turn",
                "target": "",
                "event": ""
              },
              "conditions": {
                "match": "all",
                "conditions": [
                  {
                    "kind": "local",
                    "target": "remaining",
                    "operator": "<=",
                    "value": 0
                  }
                ]
              },
              "actions": [
                {
                  "kind": "state",
                  "target": "lesson_caught",
                  "value": true
                },
                {
                  "kind": "message",
                  "value": "The shadow arrives and the curse overwhelms you."
                },
                {
                  "kind": "move_npc",
                  "target": "lesson_shadow",
                  "destination": "lesson_threshold"
                },
                {
                  "kind": "end",
                  "value": "The shadow arrives and the curse overwhelms you."
                },
                {
                  "kind": "phase",
                  "target": "finished"
                },
                {
                  "kind": "mechanic",
                  "target": "self",
                  "operation": "complete"
                }
              ],
              "otherwise": [],
              "initialDelay": 0,
              "interval": 1,
              "cooldown": 0,
              "maxUses": 1,
              "probability": 1,
              "priority": 10,
              "phase": "active"
            }
          ]
        }
      ]
    }
  },
  "cookbookRecipes": [
    {
      "version": 1,
      "settings": {
        "instance": "lesson",
        "recipeId": "reference-shadow",
        "choices": {
          "road": {
            "existing": "",
            "name": "Uncursed Road",
            "description": "The cursed threshold is north. Waiting here does not start the curse."
          },
          "threshold": {
            "existing": "",
            "name": "Cursed Threshold",
            "description": "The reliquary is east. Find and wear the silver medallion before the shadow arrives."
          },
          "reliquary": {
            "existing": "",
            "name": "Medallion Reliquary",
            "description": "OPEN CHEST, TAKE SILVER MEDALLION FROM CHEST, then WEAR SILVER MEDALLION."
          },
          "chest": {
            "existing": "",
            "name": "chest",
            "description": "A real container holding the medallion."
          },
          "medallion": {
            "existing": "",
            "name": "silver medallion",
            "description": "Wear this to lift the curse."
          },
          "shadow": {
            "existing": "",
            "name": "shadow",
            "description": "The shadow has reached the cursed threshold."
          }
        },
        "values": {
          "start": "A shadow follows your steps. Find and wear the silver medallion.",
          "warning": "The shadow is almost here. Wear the medallion now.",
          "cure": "The worn medallion lifts the curse. The shadow cannot return.",
          "failure": "The shadow arrives and the curse overwhelms you.",
          "turns": 10
        },
        "reuseRoutes": {}
      },
      "owned": [
        {
          "path": "files",
          "key": "rooms/lesson_road.taml",
          "after": {
            "path": "rooms/lesson_road.taml",
            "name": "lesson_road.taml",
            "content": "room lesson_road\n  exit north: lesson_threshold\n  name: \"Uncursed Road\"\n  description: \"The cursed threshold is north. Waiting here does not start the curse.\"\n  dark: false\nend",
            "isDirty": true
          }
        },
        {
          "path": "files",
          "key": "rooms/lesson_threshold.taml",
          "after": {
            "path": "rooms/lesson_threshold.taml",
            "name": "lesson_threshold.taml",
            "content": "room lesson_threshold\n  exit east: lesson_reliquary\n  exit south: lesson_road\n  name: \"Cursed Threshold\"\n  description: \"The reliquary is east. Find and wear the silver medallion before the shadow arrives.\"\n  dark: false\nend",
            "isDirty": true
          }
        },
        {
          "path": "files",
          "key": "rooms/lesson_reliquary.taml",
          "after": {
            "path": "rooms/lesson_reliquary.taml",
            "name": "lesson_reliquary.taml",
            "content": "room lesson_reliquary\n  exit west: lesson_threshold\n  name: \"Medallion Reliquary\"\n  description: \"OPEN CHEST, TAKE SILVER MEDALLION FROM CHEST, then WEAR SILVER MEDALLION.\"\n  dark: false\nend",
            "isDirty": true
          }
        },
        {
          "path": "files",
          "key": "objects/lesson_chest.taml",
          "after": {
            "path": "objects/lesson_chest.taml",
            "name": "lesson_chest.taml",
            "content": "object lesson_chest\n  name: \"chest\"\n  description: \"A real container holding the medallion.\"\n  contents_v1: \"{\\\"version\\\":1,\\\"kind\\\":\\\"container\\\",\\\"open\\\":false}\"\n  location: lesson_reliquary\n  droppable: false\n  container: true\n  weight: 0.1\nend",
            "isDirty": true
          }
        },
        {
          "path": "files",
          "key": "objects/lesson_medallion.taml",
          "after": {
            "path": "objects/lesson_medallion.taml",
            "name": "lesson_medallion.taml",
            "content": "object lesson_medallion\n  name: \"silver medallion\"\n  description: \"Wear this to lift the curse.\"\n  contents_v1: \"{\\\"version\\\":1,\\\"placement\\\":{\\\"parentId\\\":\\\"lesson_chest\\\",\\\"relation\\\":\\\"inside\\\"}}\"\n  takeable: true\n  wearable: true\n  weight: 0.1\nend",
            "isDirty": true
          }
        },
        {
          "path": "files",
          "key": "npcs/lesson_shadow.taml",
          "after": {
            "path": "npcs/lesson_shadow.taml",
            "name": "lesson_shadow.taml",
            "content": "npc lesson_shadow\n  name: \"shadow\"\n  description: \"The shadow has reached the cursed threshold.\"\n  location: nowhere\n  mobile: true\n  follow: false\n  health: 100\n  combat_side: neutral\n  auto_fight: false\n  attack_power: 10\n  defense: 0\n  trust: 50\nend",
            "isDirty": true
          }
        },
        {
          "path": "objects",
          "key": "lesson_chest",
          "after": {
            "id": "lesson_chest",
            "name": "chest",
            "description": "A real container holding the medallion.",
            "article": "",
            "location": "lesson_reliquary",
            "aliases": [],
            "visible": true,
            "takeable": false,
            "droppable": false,
            "useGive": false,
            "container": true,
            "switchable": false,
            "edible": false,
            "drinkable": false,
            "wearable": false,
            "weapon": false,
            "weight": 0.1,
            "locked": false,
            "lockKey": "",
            "events": [],
            "contents": {
              "version": 1,
              "kind": "container",
              "open": false
            }
          }
        },
        {
          "path": "objects",
          "key": "lesson_medallion",
          "after": {
            "id": "lesson_medallion",
            "name": "silver medallion",
            "description": "Wear this to lift the curse.",
            "article": "",
            "location": "nowhere",
            "aliases": [],
            "visible": true,
            "takeable": true,
            "droppable": true,
            "useGive": false,
            "container": false,
            "switchable": false,
            "edible": false,
            "drinkable": false,
            "wearable": true,
            "weapon": false,
            "weight": 0.1,
            "locked": false,
            "lockKey": "",
            "events": [],
            "contents": {
              "version": 1,
              "placement": {
                "parentId": "lesson_chest",
                "relation": "inside"
              }
            }
          }
        },
        {
          "path": "npcs",
          "key": "lesson_shadow",
          "after": {
            "id": "lesson_shadow",
            "name": "shadow",
            "description": "The shadow has reached the cursed threshold.",
            "location": "nowhere",
            "mobile": true,
            "aliases": [],
            "onEnter": "",
            "onExamine": "",
            "onTalk": "",
            "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": []
          }
        },
        {
          "path": "mapRooms",
          "key": "lesson_road",
          "after": {
            "id": "lesson_road",
            "name": "Uncursed Road",
            "description": "The cursed threshold is north. Waiting here does not start the curse.",
            "reentryEnabled": false,
            "reentryDesc": "",
            "hint": "",
            "dark": false,
            "roomType": "regular",
            "x": 100,
            "y": 100,
            "width": 160,
            "height": 64,
            "color": "#000000",
            "blockedDescriptions": {}
          }
        },
        {
          "path": "mapRooms",
          "key": "lesson_threshold",
          "after": {
            "id": "lesson_threshold",
            "name": "Cursed Threshold",
            "description": "The reliquary is east. Find and wear the silver medallion before the shadow arrives.",
            "reentryEnabled": false,
            "reentryDesc": "",
            "hint": "",
            "dark": false,
            "roomType": "regular",
            "x": 320,
            "y": 100,
            "width": 160,
            "height": 64,
            "color": "#000000",
            "blockedDescriptions": {}
          }
        },
        {
          "path": "mapRooms",
          "key": "lesson_reliquary",
          "after": {
            "id": "lesson_reliquary",
            "name": "Medallion Reliquary",
            "description": "OPEN CHEST, TAKE SILVER MEDALLION FROM CHEST, then WEAR SILVER MEDALLION.",
            "reentryEnabled": false,
            "reentryDesc": "",
            "hint": "",
            "dark": false,
            "roomType": "regular",
            "x": 540,
            "y": 100,
            "width": 160,
            "height": 64,
            "color": "#000000",
            "blockedDescriptions": {}
          }
        },
        {
          "path": "mapExits",
          "key": "lesson_route_north",
          "after": {
            "id": "lesson_route_north",
            "fromRoom": "lesson_road",
            "toRoom": "lesson_threshold",
            "direction": "north",
            "locked": false
          }
        },
        {
          "path": "mapExits",
          "key": "lesson_route_south",
          "after": {
            "id": "lesson_route_south",
            "fromRoom": "lesson_threshold",
            "toRoom": "lesson_road",
            "direction": "south",
            "locked": false
          }
        },
        {
          "path": "mapExits",
          "key": "lesson_route_east",
          "after": {
            "id": "lesson_route_east",
            "fromRoom": "lesson_threshold",
            "toRoom": "lesson_reliquary",
            "direction": "east",
            "locked": false
          }
        },
        {
          "path": "mapExits",
          "key": "lesson_route_west",
          "after": {
            "id": "lesson_route_west",
            "fromRoom": "lesson_reliquary",
            "toRoom": "lesson_threshold",
            "direction": "west",
            "locked": false
          }
        },
        {
          "path": "manifest.story.states",
          "key": "lesson_cured",
          "after": {
            "id": "lesson_cured",
            "name": "cured",
            "description": "Progress remembered by this recipe.",
            "type": "boolean",
            "initial": false
          }
        },
        {
          "path": "manifest.story.states",
          "key": "lesson_caught",
          "after": {
            "id": "lesson_caught",
            "name": "caught",
            "description": "Progress remembered by this recipe.",
            "type": "boolean",
            "initial": false
          }
        },
        {
          "path": "manifest.story.features.mechanics",
          "key": "lesson_curse",
          "after": {
            "version": 1,
            "id": "lesson_curse",
            "name": "Countdown",
            "description": "Countdown",
            "category": "Creator Cookbook",
            "enabled": true,
            "autoStart": true,
            "inputs": [],
            "variables": [
              {
                "id": "remaining",
                "name": "Turns remaining",
                "type": "number",
                "initial": 10,
                "min": 0,
                "max": 10000,
                "showInPlayer": true,
                "suffix": "turns"
              }
            ],
            "scope": {
              "kind": "global",
              "rooms": []
            },
            "initialPhase": "waiting",
            "phases": [
              {
                "id": "waiting",
                "name": "waiting",
                "onEnter": [],
                "onExit": []
              },
              {
                "id": "active",
                "name": "active",
                "onEnter": [],
                "onExit": []
              },
              {
                "id": "finished",
                "name": "finished",
                "onEnter": [],
                "onExit": []
              },
              {
                "id": "cancelled",
                "name": "cancelled",
                "onEnter": [],
                "onExit": []
              }
            ],
            "rules": [
              {
                "id": "cure",
                "name": "cure",
                "enabled": true,
                "trigger": {
                  "kind": "turn",
                  "target": "",
                  "event": ""
                },
                "conditions": {
                  "match": "all",
                  "conditions": [
                    {
                      "kind": "objective",
                      "criterion": {
                        "kind": "object_worn",
                        "target": "lesson_medallion",
                        "targetKind": "object"
                      }
                    }
                  ]
                },
                "actions": [
                  {
                    "kind": "state",
                    "target": "lesson_cured",
                    "value": true
                  },
                  {
                    "kind": "message",
                    "value": "The worn medallion lifts the curse. The shadow cannot return."
                  }
                ],
                "otherwise": [],
                "initialDelay": 0,
                "interval": 1,
                "cooldown": 0,
                "maxUses": 1,
                "probability": 1,
                "priority": 200,
                "phase": "active"
              },
              {
                "id": "start",
                "name": "start",
                "enabled": true,
                "trigger": {
                  "kind": "room",
                  "target": "lesson_threshold",
                  "event": "enter"
                },
                "conditions": {
                  "match": "all",
                  "conditions": []
                },
                "actions": [
                  {
                    "kind": "phase",
                    "target": "active"
                  },
                  {
                    "kind": "message",
                    "value": "A shadow follows your steps. Find and wear the silver medallion."
                  }
                ],
                "otherwise": [],
                "initialDelay": 0,
                "interval": 1,
                "cooldown": 0,
                "maxUses": 1,
                "probability": 1,
                "priority": 0,
                "phase": "waiting"
              },
              {
                "id": "cancel",
                "name": "cancel",
                "enabled": true,
                "trigger": {
                  "kind": "turn",
                  "target": "",
                  "event": ""
                },
                "conditions": {
                  "match": "all",
                  "conditions": [
                    {
                      "kind": "rule",
                      "condition": {
                        "kind": "state",
                        "target": "lesson_cured",
                        "operator": "==",
                        "value": true
                      }
                    }
                  ]
                },
                "actions": [
                  {
                    "kind": "phase",
                    "target": "cancelled"
                  },
                  {
                    "kind": "mechanic",
                    "target": "self",
                    "operation": "complete"
                  }
                ],
                "otherwise": [],
                "initialDelay": 0,
                "interval": 1,
                "cooldown": 0,
                "maxUses": 0,
                "probability": 1,
                "priority": 100,
                "phase": "active"
              },
              {
                "id": "tick",
                "name": "tick",
                "enabled": true,
                "trigger": {
                  "kind": "turn",
                  "target": "",
                  "event": ""
                },
                "conditions": {
                  "match": "all",
                  "conditions": []
                },
                "actions": [
                  {
                    "kind": "local",
                    "target": "remaining",
                    "operation": "subtract",
                    "value": 1
                  }
                ],
                "otherwise": [],
                "initialDelay": 0,
                "interval": 1,
                "cooldown": 0,
                "maxUses": 0,
                "probability": 1,
                "priority": 30,
                "phase": "active"
              },
              {
                "id": "warning",
                "name": "warning",
                "enabled": true,
                "trigger": {
                  "kind": "turn",
                  "target": "",
                  "event": ""
                },
                "conditions": {
                  "match": "all",
                  "conditions": [
                    {
                      "kind": "local",
                      "target": "remaining",
                      "operator": "<=",
                      "value": 2
                    },
                    {
                      "kind": "local",
                      "target": "remaining",
                      "operator": ">",
                      "value": 0
                    }
                  ]
                },
                "actions": [
                  {
                    "kind": "message",
                    "value": "The shadow is almost here. Wear the medallion now."
                  }
                ],
                "otherwise": [],
                "initialDelay": 0,
                "interval": 1,
                "cooldown": 0,
                "maxUses": 1,
                "probability": 1,
                "priority": 20,
                "phase": "active"
              },
              {
                "id": "finish",
                "name": "finish",
                "enabled": true,
                "trigger": {
                  "kind": "turn",
                  "target": "",
                  "event": ""
                },
                "conditions": {
                  "match": "all",
                  "conditions": [
                    {
                      "kind": "local",
                      "target": "remaining",
                      "operator": "<=",
                      "value": 0
                    }
                  ]
                },
                "actions": [
                  {
                    "kind": "state",
                    "target": "lesson_caught",
                    "value": true
                  },
                  {
                    "kind": "message",
                    "value": "The shadow arrives and the curse overwhelms you."
                  },
                  {
                    "kind": "move_npc",
                    "target": "lesson_shadow",
                    "destination": "lesson_threshold"
                  },
                  {
                    "kind": "end",
                    "value": "The shadow arrives and the curse overwhelms you."
                  },
                  {
                    "kind": "phase",
                    "target": "finished"
                  },
                  {
                    "kind": "mechanic",
                    "target": "self",
                    "operation": "complete"
                  }
                ],
                "otherwise": [],
                "initialDelay": 0,
                "interval": 1,
                "cooldown": 0,
                "maxUses": 1,
                "probability": 1,
                "priority": 10,
                "phase": "active"
              }
            ]
          }
        }
      ]
    }
  ],
  "creatorNotes": "Entering a cursed threshold starts a ten-turn deadline. Open a real chest, take its silver medallion and wear it to lift the curse. Carrying it alone is insufficient. If the deadline passes, the shadow appears and the game ends.\nOpen Help → Cookbook → Shadow Curse → Start this recipe to inspect its saved settings. The field journal and 100-point ending belong only to the sample game.\nCommands: wait; north; east; take silver medallion; open chest; take silver medallion from chest; wear silver medallion; west; south; north; wait; use field journal",
  "mapRooms": [
    {
      "id": "lesson_road",
      "name": "Uncursed Road",
      "description": "The cursed threshold is north. Waiting here does not start the curse.",
      "reentryEnabled": false,
      "reentryDesc": "",
      "hint": "",
      "dark": false,
      "roomType": "regular",
      "x": 100,
      "y": 100,
      "width": 160,
      "height": 64,
      "color": "#000000",
      "blockedDescriptions": {}
    },
    {
      "id": "lesson_threshold",
      "name": "Cursed Threshold",
      "description": "The reliquary is east. Find and wear the silver medallion before the shadow arrives.",
      "reentryEnabled": false,
      "reentryDesc": "",
      "hint": "",
      "dark": false,
      "roomType": "regular",
      "x": 320,
      "y": 100,
      "width": 160,
      "height": 64,
      "color": "#000000",
      "blockedDescriptions": {}
    },
    {
      "id": "lesson_reliquary",
      "name": "Medallion Reliquary",
      "description": "OPEN CHEST, TAKE SILVER MEDALLION FROM CHEST, then WEAR SILVER MEDALLION.",
      "reentryEnabled": false,
      "reentryDesc": "",
      "hint": "",
      "dark": false,
      "roomType": "regular",
      "x": 540,
      "y": 100,
      "width": 160,
      "height": 64,
      "color": "#000000",
      "blockedDescriptions": {}
    }
  ],
  "mapExits": [
    {
      "id": "lesson_route_north",
      "fromRoom": "lesson_road",
      "toRoom": "lesson_threshold",
      "direction": "north",
      "locked": false
    },
    {
      "id": "lesson_route_south",
      "fromRoom": "lesson_threshold",
      "toRoom": "lesson_road",
      "direction": "south",
      "locked": false
    },
    {
      "id": "lesson_route_east",
      "fromRoom": "lesson_threshold",
      "toRoom": "lesson_reliquary",
      "direction": "east",
      "locked": false
    },
    {
      "id": "lesson_route_west",
      "fromRoom": "lesson_reliquary",
      "toRoom": "lesson_threshold",
      "direction": "west",
      "locked": false
    }
  ],
  "objects": [
    {
      "id": "lesson_chest",
      "name": "chest",
      "description": "A real container holding the medallion.",
      "article": "",
      "location": "lesson_reliquary",
      "aliases": [],
      "visible": true,
      "takeable": false,
      "droppable": false,
      "useGive": false,
      "container": true,
      "switchable": false,
      "edible": false,
      "drinkable": false,
      "wearable": false,
      "weapon": false,
      "weight": 0.1,
      "locked": false,
      "lockKey": "",
      "events": [],
      "contents": {
        "version": 1,
        "kind": "container",
        "open": false
      }
    },
    {
      "id": "lesson_medallion",
      "name": "silver medallion",
      "description": "Wear this to lift the curse.",
      "article": "",
      "location": "nowhere",
      "aliases": [],
      "visible": true,
      "takeable": true,
      "droppable": true,
      "useGive": false,
      "container": false,
      "switchable": false,
      "edible": false,
      "drinkable": false,
      "wearable": true,
      "weapon": false,
      "weight": 0.1,
      "locked": false,
      "lockKey": "",
      "events": [],
      "contents": {
        "version": 1,
        "placement": {
          "parentId": "lesson_chest",
          "relation": "inside"
        }
      }
    },
    {
      "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": [
    {
      "id": "lesson_shadow",
      "name": "shadow",
      "description": "The shadow has reached the cursed threshold.",
      "location": "nowhere",
      "mobile": true,
      "aliases": [],
      "onEnter": "",
      "onExamine": "",
      "onTalk": "",
      "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": []
    }
  ],
  "activeMechanics": [],
  "verbAliases": [],
  "scripts": [],
  "worldEvents": [],
  "customMechanicDefs": [],
  "savedMechanicTemplates": [],
  "objectiveSets": [],
  "gameOutliner": {},
  "customRoomTemplates": [],
  "customObjectTemplates": [],
  "customNpcTemplates": [],
  "customSavedScripts": [],
  "requiredCapabilities": [
    "story-rules-v1",
    "object-contents-v1",
    "creator-features-v1",
    "mechanics-builder-v1"
  ]
}
