{
  "version": "1.1",
  "name": "Branching Ending System Based on Five Final Flags",
  "startRoom": "lesson_room",
  "author": "TAGMaker",
  "description": "The finale checks five accomplishments and a betrayal override. Real ally survival, enemy defeat, a found relic and a rescued innocent combine with the main goal. Endings are checked only at the final room, with betrayal taking priority.",
  "playerAppearance": {
    "version": 1,
    "layout": "modern",
    "font": "sans",
    "colorScheme": "light",
    "textSize": 18,
    "lineHeight": 1.6,
    "readingWidth": 80,
    "quietReading": false,
    "mapMode": "discovered",
    "panels": {
      "inventory": true,
      "map": true,
      "objectives": true,
      "status": true,
      "words": true
    },
    "picture": {
      "visible": true,
      "fit": "contain",
      "focalX": 50,
      "focalY": 50
    },
    "commands": {
      "visible": true,
      "standard": [
        "look",
        "search",
        "inventory",
        "help"
      ],
      "custom": []
    },
    "words": []
  },
  "created": "2026-11-01T00:00:00.000Z",
  "modified": "2026-11-01T00:00:00.000Z",
  "files": [
    {
      "path": "rooms/lesson_room.taml",
      "content": "room lesson_room\n  exit west: lesson_shelter\n  exit north: lesson_finale\n  name: \"Final Reckoning\"\n  description: \"Use the signal console for the main goal. Talk to the ally and captive, defeat the tyrant, and take the secret relic. Going north ends the story. Using the betrayal seal betrays your ally.\"\n  dark: false\nend"
    },
    {
      "path": "rooms/lesson_finale.taml",
      "content": "room lesson_finale\n  name: \"Final Judgment\"\n  description: \"Your completed actions decide the ending.\"\n  dark: false\nend"
    },
    {
      "path": "rooms/lesson_shelter.taml",
      "content": "room lesson_shelter\n  exit east: lesson_room\n  name: \"Rescue Shelter\"\n  description: \"A safe place for the rescued captive.\"\n  dark: false\nend"
    },
    {
      "path": "objects/lesson_signal.taml",
      "content": "object lesson_signal\n  name: \"signal console\"\n  description: \"Use this to complete the main goal.\"\n  location: lesson_room\n  droppable: false\n  use_give: true\n  weight: 0.1\nend"
    },
    {
      "path": "objects/lesson_relic.taml",
      "content": "object lesson_relic\n  name: \"secret relic\"\n  description: \"A hidden legacy to recover.\"\n  location: lesson_room\n  takeable: true\n  use_give: true\n  weight: 0.1\nend"
    },
    {
      "path": "objects/lesson_betray.taml",
      "content": "object lesson_betray\n  name: \"betrayal seal\"\n  description: \"Using this permanently betrays the ally.\"\n  location: lesson_room\n  droppable: false\n  use_give: true\n  weight: 0.1\nend"
    },
    {
      "path": "npcs/lesson_ally.taml",
      "content": "npc lesson_ally\n  name: \"ally\"\n  description: \"Talk to recruit this ally.\"\n  location: lesson_room\n  mobile: true\n  follow: false\n  health: 100\n  combat_side: ally\n  auto_fight: false\n  attack_power: 10\n  defense: 0\n  trust: 50\n  dialogue default:\n    print \"lesson ally looks at you in silence.\"\n  end\nend"
    },
    {
      "path": "npcs/lesson_villain.taml",
      "content": "npc lesson_villain\n  name: \"tyrant\"\n  description: \"A tyrant with twenty health. Two attacks defeat the tyrant.\"\n  location: lesson_room\n  mobile: false\n  follow: false\n  health: 20\n  combat_side: enemy\n  auto_fight: false\n  attack_power: 0\n  defense: 0\n  trust: 50\n  dialogue default:\n    print \"lesson villain looks at you in silence.\"\n  end\nend"
    },
    {
      "path": "npcs/lesson_innocent.taml",
      "content": "npc lesson_innocent\n  name: \"captive\"\n  description: \"Talk to recruit the captive, lead them west to the rescue shelter, then talk again.\"\n  location: lesson_room\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\n  dialogue default:\n    print \"lesson innocent looks at you in silence.\"\n  end\nend"
    }
  ],
  "story": {
    "version": 1,
    "states": [
      {
        "id": "lesson_main",
        "name": "main",
        "description": "Progress remembered by this recipe.",
        "type": "boolean",
        "initial": false
      },
      {
        "id": "lesson_villain_dead",
        "name": "villain dead",
        "description": "Progress remembered by this recipe.",
        "type": "boolean",
        "initial": false
      },
      {
        "id": "lesson_relic_found",
        "name": "relic found",
        "description": "Progress remembered by this recipe.",
        "type": "boolean",
        "initial": false
      },
      {
        "id": "lesson_rescued",
        "name": "rescued",
        "description": "Progress remembered by this recipe.",
        "type": "boolean",
        "initial": false
      },
      {
        "id": "lesson_betrayed",
        "name": "betrayed",
        "description": "Progress remembered by this recipe.",
        "type": "boolean",
        "initial": false
      },
      {
        "id": "lesson_finished",
        "name": "finished",
        "description": "Progress remembered by this recipe.",
        "type": "boolean",
        "initial": false
      }
    ],
    "rules": [
      {
        "id": "lesson_signal",
        "name": "signal",
        "enabled": true,
        "trigger": {
          "kind": "object",
          "target": "lesson_signal",
          "event": "use"
        },
        "match": "all",
        "conditions": [],
        "actions": [
          {
            "kind": "state",
            "target": "lesson_main",
            "value": true
          },
          {
            "kind": "message",
            "value": "The signal is sent."
          }
        ],
        "otherwise": "",
        "once": true
      },
      {
        "id": "lesson_relic",
        "name": "relic",
        "enabled": true,
        "trigger": {
          "kind": "object",
          "target": "lesson_relic",
          "event": "take"
        },
        "match": "all",
        "conditions": [],
        "actions": [
          {
            "kind": "state",
            "target": "lesson_relic_found",
            "value": true
          }
        ],
        "otherwise": "",
        "once": true
      },
      {
        "id": "lesson_death",
        "name": "death",
        "enabled": true,
        "trigger": {
          "kind": "npc",
          "target": "lesson_villain",
          "event": "death"
        },
        "match": "all",
        "conditions": [],
        "actions": [
          {
            "kind": "state",
            "target": "lesson_villain_dead",
            "value": true
          }
        ],
        "otherwise": "",
        "once": true
      },
      {
        "id": "lesson_ally",
        "name": "ally",
        "enabled": true,
        "trigger": {
          "kind": "npc",
          "target": "lesson_ally",
          "event": "talk"
        },
        "match": "all",
        "conditions": [
          {
            "kind": "state",
            "target": "lesson_betrayed",
            "operator": "==",
            "value": false
          }
        ],
        "actions": [
          {
            "kind": "npc_control",
            "target": "lesson_ally",
            "operation": "recruit"
          }
        ],
        "otherwise": "",
        "once": true
      },
      {
        "id": "lesson_escort",
        "name": "escort",
        "enabled": true,
        "trigger": {
          "kind": "npc",
          "target": "lesson_innocent",
          "event": "talk"
        },
        "match": "all",
        "conditions": [
          {
            "kind": "room",
            "target": "lesson_room",
            "operator": "==",
            "value": true
          }
        ],
        "actions": [
          {
            "kind": "npc_control",
            "target": "lesson_innocent",
            "operation": "recruit"
          },
          {
            "kind": "message",
            "value": "The captive follows. Lead them west to the rescue shelter, then talk again."
          }
        ],
        "otherwise": "",
        "once": true
      },
      {
        "id": "lesson_rescue",
        "name": "rescue",
        "enabled": true,
        "trigger": {
          "kind": "npc",
          "target": "lesson_innocent",
          "event": "talk"
        },
        "match": "all",
        "conditions": [
          {
            "kind": "room",
            "target": "lesson_shelter",
            "operator": "==",
            "value": true
          }
        ],
        "actions": [
          {
            "kind": "npc_control",
            "target": "lesson_innocent",
            "operation": "rescue",
            "roomId": "lesson_shelter"
          },
          {
            "kind": "state",
            "target": "lesson_rescued",
            "value": true
          },
          {
            "kind": "message",
            "value": "The captive reaches the rescue shelter."
          }
        ],
        "otherwise": "",
        "once": true
      }
    ],
    "features": {
      "version": 1,
      "npcProfiles": [
        {
          "version": 1,
          "id": "lesson_ally_profile",
          "name": "ally abilities",
          "npcId": "lesson_ally",
          "enabled": true,
          "memory": [],
          "traits": {
            "loyalty": 50,
            "fear": 0,
            "suspicion": 0
          },
          "life": {
            "maxHealth": 100,
            "initial": "active",
            "essential": false,
            "defeat": "dead",
            "retreatAtHealth": 0
          },
          "inventory": {
            "objects": [],
            "equipped": [],
            "equipment": [],
            "money": 0,
            "dropOnDeath": false
          },
          "combat": {
            "assist": "off",
            "target": "first_enemy",
            "interceptPercent": 50,
            "interval": 1
          },
          "perception": {
            "enabled": false,
            "sightRange": 0,
            "hearingRange": 0,
            "suspicionPerSight": 10,
            "suspicionPerNoise": 10,
            "threshold": 50,
            "investigate": false,
            "returnHome": false,
            "allowedRoomIds": []
          },
          "abilities": []
        },
        {
          "version": 1,
          "id": "lesson_villain_profile",
          "name": "tyrant abilities",
          "npcId": "lesson_villain",
          "enabled": true,
          "memory": [],
          "traits": {
            "loyalty": 50,
            "fear": 0,
            "suspicion": 0
          },
          "life": {
            "maxHealth": 20,
            "initial": "active",
            "essential": false,
            "defeat": "dead",
            "retreatAtHealth": 0
          },
          "inventory": {
            "objects": [],
            "equipped": [],
            "equipment": [],
            "money": 0,
            "dropOnDeath": false
          },
          "combat": {
            "assist": "off",
            "target": "first_enemy",
            "interceptPercent": 50,
            "interval": 1
          },
          "perception": {
            "enabled": false,
            "sightRange": 0,
            "hearingRange": 0,
            "suspicionPerSight": 10,
            "suspicionPerNoise": 10,
            "threshold": 50,
            "investigate": false,
            "returnHome": false,
            "allowedRoomIds": []
          },
          "abilities": []
        },
        {
          "version": 1,
          "id": "lesson_innocent_profile",
          "name": "captive abilities",
          "npcId": "lesson_innocent",
          "enabled": true,
          "memory": [],
          "traits": {
            "loyalty": 50,
            "fear": 0,
            "suspicion": 0
          },
          "life": {
            "maxHealth": 100,
            "initial": "active",
            "essential": false,
            "defeat": "dead",
            "retreatAtHealth": 0,
            "rescueRoomId": "lesson_shelter"
          },
          "inventory": {
            "objects": [],
            "equipped": [],
            "equipment": [],
            "money": 0,
            "dropOnDeath": false
          },
          "combat": {
            "assist": "off",
            "target": "first_enemy",
            "interceptPercent": 50,
            "interval": 1
          },
          "perception": {
            "enabled": false,
            "sightRange": 0,
            "hearingRange": 0,
            "suspicionPerSight": 10,
            "suspicionPerNoise": 10,
            "threshold": 50,
            "investigate": false,
            "returnHome": false,
            "allowedRoomIds": []
          },
          "abilities": []
        }
      ],
      "mechanics": [
        {
          "version": 1,
          "id": "lesson_final_combat",
          "name": "Tyrant encounter",
          "description": "Tyrant encounter",
          "category": "Creator Cookbook",
          "enabled": true,
          "autoStart": true,
          "inputs": [],
          "variables": [],
          "scope": {
            "kind": "global",
            "rooms": []
          },
          "initialPhase": "",
          "phases": [],
          "rules": [
            {
              "id": "attack",
              "name": "attack",
              "enabled": true,
              "trigger": {
                "kind": "npc",
                "target": "lesson_villain",
                "event": "attack"
              },
              "conditions": {
                "match": "all",
                "conditions": []
              },
              "actions": [
                {
                  "kind": "npc_health",
                  "target": "lesson_villain",
                  "operation": "add",
                  "value": -10
                }
              ],
              "otherwise": [],
              "initialDelay": 0,
              "interval": 1,
              "cooldown": 0,
              "maxUses": 0,
              "probability": 1,
              "priority": 0
            },
            {
              "id": "betray",
              "name": "betray",
              "enabled": true,
              "trigger": {
                "kind": "object",
                "target": "lesson_betray",
                "event": "use"
              },
              "conditions": {
                "match": "all",
                "conditions": []
              },
              "actions": [
                {
                  "kind": "state",
                  "target": "lesson_betrayed",
                  "value": true
                },
                {
                  "kind": "npc_control",
                  "target": "lesson_ally",
                  "operation": "dismiss"
                },
                {
                  "kind": "npc_control",
                  "target": "lesson_ally",
                  "operation": "stance",
                  "value": "enemy"
                },
                {
                  "kind": "message",
                  "value": "You betray your ally."
                }
              ],
              "otherwise": [],
              "initialDelay": 0,
              "interval": 1,
              "cooldown": 0,
              "maxUses": 1,
              "probability": 1,
              "priority": 0
            }
          ]
        }
      ],
      "endings": [
        {
          "id": "lesson_betrayal",
          "name": "betrayal",
          "enabled": true,
          "automatic": true,
          "priority": 100,
          "conditions": [
            {
              "kind": "room",
              "target": "lesson_finale",
              "operator": "==",
              "value": true
            },
            {
              "kind": "state",
              "target": "lesson_betrayed",
              "operator": "==",
              "value": true
            }
          ],
          "match": "all",
          "text": "Your betrayal overshadows every other success.",
          "actions": [
            {
              "kind": "state",
              "target": "lesson_finished",
              "value": true
            }
          ]
        },
        {
          "id": "lesson_perfect",
          "name": "perfect",
          "enabled": true,
          "automatic": true,
          "priority": 80,
          "conditions": [
            {
              "kind": "room",
              "target": "lesson_finale",
              "operator": "==",
              "value": true
            },
            {
              "kind": "state",
              "target": "lesson_main",
              "operator": "==",
              "value": true
            },
            {
              "kind": "npc_health",
              "target": "lesson_ally",
              "operator": ">",
              "value": 0
            },
            {
              "kind": "state",
              "target": "lesson_villain_dead",
              "operator": "==",
              "value": true
            },
            {
              "kind": "state",
              "target": "lesson_relic_found",
              "operator": "==",
              "value": true
            },
            {
              "kind": "state",
              "target": "lesson_rescued",
              "operator": "==",
              "value": true
            }
          ],
          "match": "all",
          "text": "The signal succeeds. Your ally lives, the tyrant is defeated, the relic is recovered and the captive is safe.",
          "actions": [
            {
              "kind": "state",
              "target": "lesson_finished",
              "value": true
            }
          ]
        },
        {
          "id": "lesson_ordinary",
          "name": "ordinary",
          "enabled": true,
          "automatic": true,
          "priority": 40,
          "conditions": [
            {
              "kind": "room",
              "target": "lesson_finale",
              "operator": "==",
              "value": true
            },
            {
              "kind": "state",
              "target": "lesson_main",
              "operator": "==",
              "value": true
            }
          ],
          "match": "all",
          "text": "The signal succeeds, but some hopes remain unfinished.",
          "actions": [
            {
              "kind": "state",
              "target": "lesson_finished",
              "value": true
            }
          ]
        },
        {
          "id": "lesson_failure",
          "name": "failure",
          "enabled": true,
          "automatic": true,
          "priority": 0,
          "conditions": [
            {
              "kind": "room",
              "target": "lesson_finale",
              "operator": "==",
              "value": true
            }
          ],
          "match": "all",
          "text": "Without the signal, the mission fails.",
          "actions": [
            {
              "kind": "state",
              "target": "lesson_finished",
              "value": true
            }
          ]
        }
      ]
    }
  },
  "cookbookRecipes": [
    {
      "version": 1,
      "settings": {
        "instance": "lesson",
        "recipeId": "a9-branching-ending-system-based-on-five-final-flags",
        "choices": {
          "room": {
            "existing": "",
            "name": "Final Reckoning",
            "description": "Use the signal console for the main goal. Talk to the ally and captive, defeat the tyrant, and take the secret relic. Going north ends the story. Using the betrayal seal betrays your ally."
          },
          "finale": {
            "existing": "",
            "name": "Final Judgment",
            "description": "Your completed actions decide the ending."
          },
          "shelter": {
            "existing": "",
            "name": "Rescue Shelter",
            "description": "A safe place for the rescued captive."
          },
          "signal": {
            "existing": "",
            "name": "signal console",
            "description": "Use this to complete the main goal."
          },
          "relic": {
            "existing": "",
            "name": "secret relic",
            "description": "A hidden legacy to recover."
          },
          "betray": {
            "existing": "",
            "name": "betrayal seal",
            "description": "Using this permanently betrays the ally."
          },
          "ally": {
            "existing": "",
            "name": "ally",
            "description": "Talk to recruit this ally."
          },
          "villain": {
            "existing": "",
            "name": "tyrant",
            "description": "A tyrant with twenty health. Two attacks defeat the tyrant."
          },
          "innocent": {
            "existing": "",
            "name": "captive",
            "description": "Talk to recruit the captive, lead them west to the rescue shelter, then talk again."
          }
        },
        "values": {
          "perfect": "The signal succeeds. Your ally lives, the tyrant is defeated, the relic is recovered and the captive is safe.",
          "ordinary": "The signal succeeds, but some hopes remain unfinished.",
          "failure": "Without the signal, the mission fails.",
          "betrayal": "Your betrayal overshadows every other success."
        },
        "reuseRoutes": {}
      },
      "owned": [
        {
          "path": "files",
          "key": "rooms/lesson_room.taml",
          "after": {
            "path": "rooms/lesson_room.taml",
            "name": "lesson_room.taml",
            "content": "room lesson_room\n  exit west: lesson_shelter\n  exit north: lesson_finale\n  name: \"Final Reckoning\"\n  description: \"Use the signal console for the main goal. Talk to the ally and captive, defeat the tyrant, and take the secret relic. Going north ends the story. Using the betrayal seal betrays your ally.\"\n  dark: false\nend",
            "isDirty": true
          }
        },
        {
          "path": "files",
          "key": "rooms/lesson_finale.taml",
          "after": {
            "path": "rooms/lesson_finale.taml",
            "name": "lesson_finale.taml",
            "content": "room lesson_finale\n  name: \"Final Judgment\"\n  description: \"Your completed actions decide the ending.\"\n  dark: false\nend",
            "isDirty": true
          }
        },
        {
          "path": "files",
          "key": "rooms/lesson_shelter.taml",
          "after": {
            "path": "rooms/lesson_shelter.taml",
            "name": "lesson_shelter.taml",
            "content": "room lesson_shelter\n  exit east: lesson_room\n  name: \"Rescue Shelter\"\n  description: \"A safe place for the rescued captive.\"\n  dark: false\nend",
            "isDirty": true
          }
        },
        {
          "path": "files",
          "key": "objects/lesson_signal.taml",
          "after": {
            "path": "objects/lesson_signal.taml",
            "name": "lesson_signal.taml",
            "content": "object lesson_signal\n  name: \"signal console\"\n  description: \"Use this to complete the main goal.\"\n  location: lesson_room\n  droppable: false\n  use_give: true\n  weight: 0.1\nend",
            "isDirty": true
          }
        },
        {
          "path": "files",
          "key": "objects/lesson_relic.taml",
          "after": {
            "path": "objects/lesson_relic.taml",
            "name": "lesson_relic.taml",
            "content": "object lesson_relic\n  name: \"secret relic\"\n  description: \"A hidden legacy to recover.\"\n  location: lesson_room\n  takeable: true\n  use_give: true\n  weight: 0.1\nend",
            "isDirty": true
          }
        },
        {
          "path": "files",
          "key": "objects/lesson_betray.taml",
          "after": {
            "path": "objects/lesson_betray.taml",
            "name": "lesson_betray.taml",
            "content": "object lesson_betray\n  name: \"betrayal seal\"\n  description: \"Using this permanently betrays the ally.\"\n  location: lesson_room\n  droppable: false\n  use_give: true\n  weight: 0.1\nend",
            "isDirty": true
          }
        },
        {
          "path": "files",
          "key": "npcs/lesson_ally.taml",
          "after": {
            "path": "npcs/lesson_ally.taml",
            "name": "lesson_ally.taml",
            "content": "npc lesson_ally\n  name: \"ally\"\n  description: \"Talk to recruit this ally.\"\n  location: lesson_room\n  mobile: true\n  follow: false\n  health: 100\n  combat_side: ally\n  auto_fight: false\n  attack_power: 10\n  defense: 0\n  trust: 50\n  dialogue default:\n    print \"lesson ally looks at you in silence.\"\n  end\nend",
            "isDirty": true
          }
        },
        {
          "path": "files",
          "key": "npcs/lesson_villain.taml",
          "after": {
            "path": "npcs/lesson_villain.taml",
            "name": "lesson_villain.taml",
            "content": "npc lesson_villain\n  name: \"tyrant\"\n  description: \"A tyrant with twenty health. Two attacks defeat the tyrant.\"\n  location: lesson_room\n  mobile: false\n  follow: false\n  health: 20\n  combat_side: enemy\n  auto_fight: false\n  attack_power: 0\n  defense: 0\n  trust: 50\n  dialogue default:\n    print \"lesson villain looks at you in silence.\"\n  end\nend",
            "isDirty": true
          }
        },
        {
          "path": "files",
          "key": "npcs/lesson_innocent.taml",
          "after": {
            "path": "npcs/lesson_innocent.taml",
            "name": "lesson_innocent.taml",
            "content": "npc lesson_innocent\n  name: \"captive\"\n  description: \"Talk to recruit the captive, lead them west to the rescue shelter, then talk again.\"\n  location: lesson_room\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\n  dialogue default:\n    print \"lesson innocent looks at you in silence.\"\n  end\nend",
            "isDirty": true
          }
        },
        {
          "path": "objects",
          "key": "lesson_signal",
          "after": {
            "id": "lesson_signal",
            "name": "signal console",
            "description": "Use this to complete the main goal.",
            "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_relic",
          "after": {
            "id": "lesson_relic",
            "name": "secret relic",
            "description": "A hidden legacy to recover.",
            "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_betray",
          "after": {
            "id": "lesson_betray",
            "name": "betrayal seal",
            "description": "Using this permanently betrays the ally.",
            "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": "npcs",
          "key": "lesson_ally",
          "after": {
            "id": "lesson_ally",
            "name": "ally",
            "description": "Talk to recruit this ally.",
            "location": "lesson_room",
            "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": "ally",
            "autoFight": false,
            "attackPower": 10,
            "defense": 0,
            "trustLevel": 50,
            "conversationEnabled": false,
            "convGreeting": "",
            "convFarewell": "",
            "convTopics": [],
            "dialogues": [
              {
                "id": "default",
                "trigger": "default",
                "body": "print \"lesson ally looks at you in silence.\""
              }
            ]
          }
        },
        {
          "path": "npcs",
          "key": "lesson_villain",
          "after": {
            "id": "lesson_villain",
            "name": "tyrant",
            "description": "A tyrant with twenty health. Two attacks defeat the tyrant.",
            "location": "lesson_room",
            "mobile": false,
            "aliases": [],
            "onEnter": "",
            "onExamine": "",
            "onTalk": "",
            "onAttack": "",
            "onDeath": "",
            "onFollow": "",
            "onAutoAttack": "",
            "onTrustChange": "",
            "onGive": "",
            "onBeforeTalk": "",
            "onAfterTalk": "",
            "onBeforeAttack": "",
            "onAfterAttack": "",
            "onDamage": "",
            "onHeal": "",
            "onMove": "",
            "onLeave": "",
            "followPlayer": false,
            "health": 20,
            "combatSide": "enemy",
            "autoFight": false,
            "attackPower": 0,
            "defense": 0,
            "trustLevel": 50,
            "conversationEnabled": false,
            "convGreeting": "",
            "convFarewell": "",
            "convTopics": [],
            "dialogues": [
              {
                "id": "default",
                "trigger": "default",
                "body": "print \"lesson villain looks at you in silence.\""
              }
            ]
          }
        },
        {
          "path": "npcs",
          "key": "lesson_innocent",
          "after": {
            "id": "lesson_innocent",
            "name": "captive",
            "description": "Talk to recruit the captive, lead them west to the rescue shelter, then talk again.",
            "location": "lesson_room",
            "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": [
              {
                "id": "default",
                "trigger": "default",
                "body": "print \"lesson innocent looks at you in silence.\""
              }
            ]
          }
        },
        {
          "path": "mapRooms",
          "key": "lesson_room",
          "after": {
            "id": "lesson_room",
            "name": "Final Reckoning",
            "description": "Use the signal console for the main goal. Talk to the ally and captive, defeat the tyrant, and take the secret relic. Going north ends the story. Using the betrayal seal betrays your ally.",
            "reentryEnabled": false,
            "reentryDesc": "",
            "hint": "",
            "dark": false,
            "roomType": "regular",
            "x": 100,
            "y": 100,
            "width": 160,
            "height": 64,
            "color": "#000000",
            "blockedDescriptions": {}
          }
        },
        {
          "path": "mapRooms",
          "key": "lesson_finale",
          "after": {
            "id": "lesson_finale",
            "name": "Final Judgment",
            "description": "Your completed actions decide the ending.",
            "reentryEnabled": false,
            "reentryDesc": "",
            "hint": "",
            "dark": false,
            "roomType": "regular",
            "x": 320,
            "y": 100,
            "width": 160,
            "height": 64,
            "color": "#000000"
          }
        },
        {
          "path": "mapRooms",
          "key": "lesson_shelter",
          "after": {
            "id": "lesson_shelter",
            "name": "Rescue Shelter",
            "description": "A safe place for the rescued captive.",
            "reentryEnabled": false,
            "reentryDesc": "",
            "hint": "",
            "dark": false,
            "roomType": "regular",
            "x": 540,
            "y": 100,
            "width": 160,
            "height": 64,
            "color": "#000000",
            "blockedDescriptions": {}
          }
        },
        {
          "path": "mapExits",
          "key": "lesson_route_finale",
          "after": {
            "id": "lesson_route_finale",
            "fromRoom": "lesson_room",
            "toRoom": "lesson_finale",
            "direction": "north",
            "locked": false
          }
        },
        {
          "path": "mapExits",
          "key": "lesson_route_shelter",
          "after": {
            "id": "lesson_route_shelter",
            "fromRoom": "lesson_room",
            "toRoom": "lesson_shelter",
            "direction": "west",
            "locked": false
          }
        },
        {
          "path": "mapExits",
          "key": "lesson_route_back",
          "after": {
            "id": "lesson_route_back",
            "fromRoom": "lesson_shelter",
            "toRoom": "lesson_room",
            "direction": "east",
            "locked": false
          }
        },
        {
          "path": "manifest.story.states",
          "key": "lesson_main",
          "after": {
            "id": "lesson_main",
            "name": "main",
            "description": "Progress remembered by this recipe.",
            "type": "boolean",
            "initial": false
          }
        },
        {
          "path": "manifest.story.states",
          "key": "lesson_villain_dead",
          "after": {
            "id": "lesson_villain_dead",
            "name": "villain dead",
            "description": "Progress remembered by this recipe.",
            "type": "boolean",
            "initial": false
          }
        },
        {
          "path": "manifest.story.states",
          "key": "lesson_relic_found",
          "after": {
            "id": "lesson_relic_found",
            "name": "relic found",
            "description": "Progress remembered by this recipe.",
            "type": "boolean",
            "initial": false
          }
        },
        {
          "path": "manifest.story.states",
          "key": "lesson_rescued",
          "after": {
            "id": "lesson_rescued",
            "name": "rescued",
            "description": "Progress remembered by this recipe.",
            "type": "boolean",
            "initial": false
          }
        },
        {
          "path": "manifest.story.states",
          "key": "lesson_betrayed",
          "after": {
            "id": "lesson_betrayed",
            "name": "betrayed",
            "description": "Progress remembered by this recipe.",
            "type": "boolean",
            "initial": false
          }
        },
        {
          "path": "manifest.story.states",
          "key": "lesson_finished",
          "after": {
            "id": "lesson_finished",
            "name": "finished",
            "description": "Progress remembered by this recipe.",
            "type": "boolean",
            "initial": false
          }
        },
        {
          "path": "manifest.story.rules",
          "key": "lesson_signal",
          "after": {
            "id": "lesson_signal",
            "name": "signal",
            "enabled": true,
            "trigger": {
              "kind": "object",
              "target": "lesson_signal",
              "event": "use"
            },
            "match": "all",
            "conditions": [],
            "actions": [
              {
                "kind": "state",
                "target": "lesson_main",
                "value": true
              },
              {
                "kind": "message",
                "value": "The signal is sent."
              }
            ],
            "otherwise": "",
            "once": true
          }
        },
        {
          "path": "manifest.story.rules",
          "key": "lesson_relic",
          "after": {
            "id": "lesson_relic",
            "name": "relic",
            "enabled": true,
            "trigger": {
              "kind": "object",
              "target": "lesson_relic",
              "event": "take"
            },
            "match": "all",
            "conditions": [],
            "actions": [
              {
                "kind": "state",
                "target": "lesson_relic_found",
                "value": true
              }
            ],
            "otherwise": "",
            "once": true
          }
        },
        {
          "path": "manifest.story.rules",
          "key": "lesson_death",
          "after": {
            "id": "lesson_death",
            "name": "death",
            "enabled": true,
            "trigger": {
              "kind": "npc",
              "target": "lesson_villain",
              "event": "death"
            },
            "match": "all",
            "conditions": [],
            "actions": [
              {
                "kind": "state",
                "target": "lesson_villain_dead",
                "value": true
              }
            ],
            "otherwise": "",
            "once": true
          }
        },
        {
          "path": "manifest.story.rules",
          "key": "lesson_ally",
          "after": {
            "id": "lesson_ally",
            "name": "ally",
            "enabled": true,
            "trigger": {
              "kind": "npc",
              "target": "lesson_ally",
              "event": "talk"
            },
            "match": "all",
            "conditions": [
              {
                "kind": "state",
                "target": "lesson_betrayed",
                "operator": "==",
                "value": false
              }
            ],
            "actions": [
              {
                "kind": "npc_control",
                "target": "lesson_ally",
                "operation": "recruit"
              }
            ],
            "otherwise": "",
            "once": true
          }
        },
        {
          "path": "manifest.story.rules",
          "key": "lesson_escort",
          "after": {
            "id": "lesson_escort",
            "name": "escort",
            "enabled": true,
            "trigger": {
              "kind": "npc",
              "target": "lesson_innocent",
              "event": "talk"
            },
            "match": "all",
            "conditions": [
              {
                "kind": "room",
                "target": "lesson_room",
                "operator": "==",
                "value": true
              }
            ],
            "actions": [
              {
                "kind": "npc_control",
                "target": "lesson_innocent",
                "operation": "recruit"
              },
              {
                "kind": "message",
                "value": "The captive follows. Lead them west to the rescue shelter, then talk again."
              }
            ],
            "otherwise": "",
            "once": true
          }
        },
        {
          "path": "manifest.story.rules",
          "key": "lesson_rescue",
          "after": {
            "id": "lesson_rescue",
            "name": "rescue",
            "enabled": true,
            "trigger": {
              "kind": "npc",
              "target": "lesson_innocent",
              "event": "talk"
            },
            "match": "all",
            "conditions": [
              {
                "kind": "room",
                "target": "lesson_shelter",
                "operator": "==",
                "value": true
              }
            ],
            "actions": [
              {
                "kind": "npc_control",
                "target": "lesson_innocent",
                "operation": "rescue",
                "roomId": "lesson_shelter"
              },
              {
                "kind": "state",
                "target": "lesson_rescued",
                "value": true
              },
              {
                "kind": "message",
                "value": "The captive reaches the rescue shelter."
              }
            ],
            "otherwise": "",
            "once": true
          }
        },
        {
          "path": "manifest.story.features.npcProfiles",
          "key": "lesson_ally_profile",
          "after": {
            "version": 1,
            "id": "lesson_ally_profile",
            "name": "ally abilities",
            "npcId": "lesson_ally",
            "enabled": true,
            "memory": [],
            "traits": {
              "loyalty": 50,
              "fear": 0,
              "suspicion": 0
            },
            "life": {
              "maxHealth": 100,
              "initial": "active",
              "essential": false,
              "defeat": "dead",
              "retreatAtHealth": 0
            },
            "inventory": {
              "objects": [],
              "equipped": [],
              "equipment": [],
              "money": 0,
              "dropOnDeath": false
            },
            "combat": {
              "assist": "off",
              "target": "first_enemy",
              "interceptPercent": 50,
              "interval": 1
            },
            "perception": {
              "enabled": false,
              "sightRange": 0,
              "hearingRange": 0,
              "suspicionPerSight": 10,
              "suspicionPerNoise": 10,
              "threshold": 50,
              "investigate": false,
              "returnHome": false,
              "allowedRoomIds": []
            },
            "abilities": []
          }
        },
        {
          "path": "manifest.story.features.npcProfiles",
          "key": "lesson_villain_profile",
          "after": {
            "version": 1,
            "id": "lesson_villain_profile",
            "name": "tyrant abilities",
            "npcId": "lesson_villain",
            "enabled": true,
            "memory": [],
            "traits": {
              "loyalty": 50,
              "fear": 0,
              "suspicion": 0
            },
            "life": {
              "maxHealth": 20,
              "initial": "active",
              "essential": false,
              "defeat": "dead",
              "retreatAtHealth": 0
            },
            "inventory": {
              "objects": [],
              "equipped": [],
              "equipment": [],
              "money": 0,
              "dropOnDeath": false
            },
            "combat": {
              "assist": "off",
              "target": "first_enemy",
              "interceptPercent": 50,
              "interval": 1
            },
            "perception": {
              "enabled": false,
              "sightRange": 0,
              "hearingRange": 0,
              "suspicionPerSight": 10,
              "suspicionPerNoise": 10,
              "threshold": 50,
              "investigate": false,
              "returnHome": false,
              "allowedRoomIds": []
            },
            "abilities": []
          }
        },
        {
          "path": "manifest.story.features.npcProfiles",
          "key": "lesson_innocent_profile",
          "after": {
            "version": 1,
            "id": "lesson_innocent_profile",
            "name": "captive abilities",
            "npcId": "lesson_innocent",
            "enabled": true,
            "memory": [],
            "traits": {
              "loyalty": 50,
              "fear": 0,
              "suspicion": 0
            },
            "life": {
              "maxHealth": 100,
              "initial": "active",
              "essential": false,
              "defeat": "dead",
              "retreatAtHealth": 0,
              "rescueRoomId": "lesson_shelter"
            },
            "inventory": {
              "objects": [],
              "equipped": [],
              "equipment": [],
              "money": 0,
              "dropOnDeath": false
            },
            "combat": {
              "assist": "off",
              "target": "first_enemy",
              "interceptPercent": 50,
              "interval": 1
            },
            "perception": {
              "enabled": false,
              "sightRange": 0,
              "hearingRange": 0,
              "suspicionPerSight": 10,
              "suspicionPerNoise": 10,
              "threshold": 50,
              "investigate": false,
              "returnHome": false,
              "allowedRoomIds": []
            },
            "abilities": []
          }
        },
        {
          "path": "manifest.story.features.mechanics",
          "key": "lesson_final_combat",
          "after": {
            "version": 1,
            "id": "lesson_final_combat",
            "name": "Tyrant encounter",
            "description": "Tyrant encounter",
            "category": "Creator Cookbook",
            "enabled": true,
            "autoStart": true,
            "inputs": [],
            "variables": [],
            "scope": {
              "kind": "global",
              "rooms": []
            },
            "initialPhase": "",
            "phases": [],
            "rules": [
              {
                "id": "attack",
                "name": "attack",
                "enabled": true,
                "trigger": {
                  "kind": "npc",
                  "target": "lesson_villain",
                  "event": "attack"
                },
                "conditions": {
                  "match": "all",
                  "conditions": []
                },
                "actions": [
                  {
                    "kind": "npc_health",
                    "target": "lesson_villain",
                    "operation": "add",
                    "value": -10
                  }
                ],
                "otherwise": [],
                "initialDelay": 0,
                "interval": 1,
                "cooldown": 0,
                "maxUses": 0,
                "probability": 1,
                "priority": 0
              },
              {
                "id": "betray",
                "name": "betray",
                "enabled": true,
                "trigger": {
                  "kind": "object",
                  "target": "lesson_betray",
                  "event": "use"
                },
                "conditions": {
                  "match": "all",
                  "conditions": []
                },
                "actions": [
                  {
                    "kind": "state",
                    "target": "lesson_betrayed",
                    "value": true
                  },
                  {
                    "kind": "npc_control",
                    "target": "lesson_ally",
                    "operation": "dismiss"
                  },
                  {
                    "kind": "npc_control",
                    "target": "lesson_ally",
                    "operation": "stance",
                    "value": "enemy"
                  },
                  {
                    "kind": "message",
                    "value": "You betray your ally."
                  }
                ],
                "otherwise": [],
                "initialDelay": 0,
                "interval": 1,
                "cooldown": 0,
                "maxUses": 1,
                "probability": 1,
                "priority": 0
              }
            ]
          }
        },
        {
          "path": "manifest.story.features.endings",
          "key": "lesson_betrayal",
          "after": {
            "id": "lesson_betrayal",
            "name": "betrayal",
            "enabled": true,
            "automatic": true,
            "priority": 100,
            "conditions": [
              {
                "kind": "room",
                "target": "lesson_finale",
                "operator": "==",
                "value": true
              },
              {
                "kind": "state",
                "target": "lesson_betrayed",
                "operator": "==",
                "value": true
              }
            ],
            "match": "all",
            "text": "Your betrayal overshadows every other success.",
            "actions": [
              {
                "kind": "state",
                "target": "lesson_finished",
                "value": true
              }
            ]
          }
        },
        {
          "path": "manifest.story.features.endings",
          "key": "lesson_perfect",
          "after": {
            "id": "lesson_perfect",
            "name": "perfect",
            "enabled": true,
            "automatic": true,
            "priority": 80,
            "conditions": [
              {
                "kind": "room",
                "target": "lesson_finale",
                "operator": "==",
                "value": true
              },
              {
                "kind": "state",
                "target": "lesson_main",
                "operator": "==",
                "value": true
              },
              {
                "kind": "npc_health",
                "target": "lesson_ally",
                "operator": ">",
                "value": 0
              },
              {
                "kind": "state",
                "target": "lesson_villain_dead",
                "operator": "==",
                "value": true
              },
              {
                "kind": "state",
                "target": "lesson_relic_found",
                "operator": "==",
                "value": true
              },
              {
                "kind": "state",
                "target": "lesson_rescued",
                "operator": "==",
                "value": true
              }
            ],
            "match": "all",
            "text": "The signal succeeds. Your ally lives, the tyrant is defeated, the relic is recovered and the captive is safe.",
            "actions": [
              {
                "kind": "state",
                "target": "lesson_finished",
                "value": true
              }
            ]
          }
        },
        {
          "path": "manifest.story.features.endings",
          "key": "lesson_ordinary",
          "after": {
            "id": "lesson_ordinary",
            "name": "ordinary",
            "enabled": true,
            "automatic": true,
            "priority": 40,
            "conditions": [
              {
                "kind": "room",
                "target": "lesson_finale",
                "operator": "==",
                "value": true
              },
              {
                "kind": "state",
                "target": "lesson_main",
                "operator": "==",
                "value": true
              }
            ],
            "match": "all",
            "text": "The signal succeeds, but some hopes remain unfinished.",
            "actions": [
              {
                "kind": "state",
                "target": "lesson_finished",
                "value": true
              }
            ]
          }
        },
        {
          "path": "manifest.story.features.endings",
          "key": "lesson_failure",
          "after": {
            "id": "lesson_failure",
            "name": "failure",
            "enabled": true,
            "automatic": true,
            "priority": 0,
            "conditions": [
              {
                "kind": "room",
                "target": "lesson_finale",
                "operator": "==",
                "value": true
              }
            ],
            "match": "all",
            "text": "Without the signal, the mission fails.",
            "actions": [
              {
                "kind": "state",
                "target": "lesson_finished",
                "value": true
              }
            ]
          }
        }
      ]
    }
  ],
  "creatorNotes": "The finale checks five accomplishments and a betrayal override. Real ally survival, enemy defeat, a found relic and a rescued innocent combine with the main goal. Endings are checked only at the final room, with betrayal taking priority. Open this recipe in Help to inspect its saved settings.",
  "mapRooms": [
    {
      "id": "lesson_room",
      "name": "Final Reckoning",
      "description": "Use the signal console for the main goal. Talk to the ally and captive, defeat the tyrant, and take the secret relic. Going north ends the story. Using the betrayal seal betrays your ally.",
      "reentryEnabled": false,
      "reentryDesc": "",
      "hint": "",
      "dark": false,
      "roomType": "regular",
      "x": 100,
      "y": 100,
      "width": 160,
      "height": 64,
      "color": "#000000",
      "blockedDescriptions": {}
    },
    {
      "id": "lesson_finale",
      "name": "Final Judgment",
      "description": "Your completed actions decide the ending.",
      "reentryEnabled": false,
      "reentryDesc": "",
      "hint": "",
      "dark": false,
      "roomType": "regular",
      "x": 320,
      "y": 100,
      "width": 160,
      "height": 64,
      "color": "#000000"
    },
    {
      "id": "lesson_shelter",
      "name": "Rescue Shelter",
      "description": "A safe place for the rescued captive.",
      "reentryEnabled": false,
      "reentryDesc": "",
      "hint": "",
      "dark": false,
      "roomType": "regular",
      "x": 540,
      "y": 100,
      "width": 160,
      "height": 64,
      "color": "#000000",
      "blockedDescriptions": {}
    }
  ],
  "mapExits": [
    {
      "id": "lesson_route_finale",
      "fromRoom": "lesson_room",
      "toRoom": "lesson_finale",
      "direction": "north",
      "locked": false
    },
    {
      "id": "lesson_route_shelter",
      "fromRoom": "lesson_room",
      "toRoom": "lesson_shelter",
      "direction": "west",
      "locked": false
    },
    {
      "id": "lesson_route_back",
      "fromRoom": "lesson_shelter",
      "toRoom": "lesson_room",
      "direction": "east",
      "locked": false
    }
  ],
  "objects": [
    {
      "id": "lesson_signal",
      "name": "signal console",
      "description": "Use this to complete the main goal.",
      "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_relic",
      "name": "secret relic",
      "description": "A hidden legacy to recover.",
      "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_betray",
      "name": "betrayal seal",
      "description": "Using this permanently betrays the ally.",
      "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": []
    }
  ],
  "npcs": [
    {
      "id": "lesson_ally",
      "name": "ally",
      "description": "Talk to recruit this ally.",
      "location": "lesson_room",
      "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": "ally",
      "autoFight": false,
      "attackPower": 10,
      "defense": 0,
      "trustLevel": 50,
      "conversationEnabled": false,
      "convGreeting": "",
      "convFarewell": "",
      "convTopics": [],
      "dialogues": [
        {
          "id": "default",
          "trigger": "default",
          "body": "print \"lesson ally looks at you in silence.\""
        }
      ]
    },
    {
      "id": "lesson_villain",
      "name": "tyrant",
      "description": "A tyrant with twenty health. Two attacks defeat the tyrant.",
      "location": "lesson_room",
      "mobile": false,
      "aliases": [],
      "onEnter": "",
      "onExamine": "",
      "onTalk": "",
      "onAttack": "",
      "onDeath": "",
      "onFollow": "",
      "onAutoAttack": "",
      "onTrustChange": "",
      "onGive": "",
      "onBeforeTalk": "",
      "onAfterTalk": "",
      "onBeforeAttack": "",
      "onAfterAttack": "",
      "onDamage": "",
      "onHeal": "",
      "onMove": "",
      "onLeave": "",
      "followPlayer": false,
      "health": 20,
      "combatSide": "enemy",
      "autoFight": false,
      "attackPower": 0,
      "defense": 0,
      "trustLevel": 50,
      "conversationEnabled": false,
      "convGreeting": "",
      "convFarewell": "",
      "convTopics": [],
      "dialogues": [
        {
          "id": "default",
          "trigger": "default",
          "body": "print \"lesson villain looks at you in silence.\""
        }
      ]
    },
    {
      "id": "lesson_innocent",
      "name": "captive",
      "description": "Talk to recruit the captive, lead them west to the rescue shelter, then talk again.",
      "location": "lesson_room",
      "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": [
        {
          "id": "default",
          "trigger": "default",
          "body": "print \"lesson innocent looks at you in silence.\""
        }
      ]
    }
  ],
  "activeMechanics": [],
  "verbAliases": [],
  "scripts": [],
  "worldEvents": [],
  "customMechanicDefs": [],
  "savedMechanicTemplates": [],
  "objectiveSets": [],
  "gameOutliner": {},
  "customRoomTemplates": [],
  "customObjectTemplates": [],
  "customNpcTemplates": [],
  "customSavedScripts": [],
  "requiredCapabilities": [
    "npc-capabilities-v1",
    "story-rules-v1",
    "creator-features-v1",
    "mechanics-builder-v1"
  ]
}
