{
  "version": "1.1",
  "name": "Quest Completes After Three Flags",
  "startRoom": "lesson_room",
  "author": "TAGMaker",
  "description": "Use three separate seals to record three tasks. The objective requires all three remembered tasks and completes once, whichever order you choose.",
  "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  name: \"Three Seal Hall\"\n  description: \"Use the red seal, blue seal and green seal. OBJECTIVES shows the overall task.\"\n  dark: false\nend"
    },
    {
      "path": "objects/lesson_red.taml",
      "content": "object lesson_red\n  name: \"red seal\"\n  description: \"Use this seal to record its part of the task.\"\n  location: lesson_room\n  droppable: false\n  use_give: true\n  weight: 0.1\nend"
    },
    {
      "path": "objects/lesson_blue.taml",
      "content": "object lesson_blue\n  name: \"blue seal\"\n  description: \"Use this seal to record its part of the task.\"\n  location: lesson_room\n  droppable: false\n  use_give: true\n  weight: 0.1\nend"
    },
    {
      "path": "objects/lesson_green.taml",
      "content": "object lesson_green\n  name: \"green seal\"\n  description: \"Use this seal to record its part of the task.\"\n  location: lesson_room\n  droppable: false\n  use_give: true\n  weight: 0.1\nend"
    },
    {
      "path": "objects/sample_field_journal.taml",
      "content": "object sample_field_journal\n  name: \"field journal\"\n  description: \"Use this journal when you have completed the recipe to record your success. You can also keep exploring before you finish.\"\n  location: inventory\n  aliases: [\"journal\"]\n  takeable: true\n  droppable: false\n  use_give: true\n  weight: 0.1\nend"
    }
  ],
  "story": {
    "version": 1,
    "states": [
      {
        "id": "lesson_red_done",
        "name": "red done",
        "description": "Progress remembered by this recipe.",
        "type": "boolean",
        "initial": false
      },
      {
        "id": "lesson_blue_done",
        "name": "blue done",
        "description": "Progress remembered by this recipe.",
        "type": "boolean",
        "initial": false
      },
      {
        "id": "lesson_green_done",
        "name": "green done",
        "description": "Progress remembered by this recipe.",
        "type": "boolean",
        "initial": false
      },
      {
        "id": "lesson_completed",
        "name": "completed",
        "description": "Progress remembered by this recipe.",
        "type": "boolean",
        "initial": false
      }
    ],
    "rules": [
      {
        "id": "lesson_red",
        "name": "red",
        "enabled": true,
        "trigger": {
          "kind": "object",
          "target": "lesson_red",
          "event": "use"
        },
        "match": "all",
        "conditions": [],
        "actions": [
          {
            "kind": "state",
            "target": "lesson_red_done",
            "value": true
          },
          {
            "kind": "message",
            "value": "red seal is activated."
          }
        ],
        "otherwise": "",
        "once": true,
        "repeatText": "This seal is already activated."
      },
      {
        "id": "lesson_blue",
        "name": "blue",
        "enabled": true,
        "trigger": {
          "kind": "object",
          "target": "lesson_blue",
          "event": "use"
        },
        "match": "all",
        "conditions": [],
        "actions": [
          {
            "kind": "state",
            "target": "lesson_blue_done",
            "value": true
          },
          {
            "kind": "message",
            "value": "blue seal is activated."
          }
        ],
        "otherwise": "",
        "once": true,
        "repeatText": "This seal is already activated."
      },
      {
        "id": "lesson_green",
        "name": "green",
        "enabled": true,
        "trigger": {
          "kind": "object",
          "target": "lesson_green",
          "event": "use"
        },
        "match": "all",
        "conditions": [],
        "actions": [
          {
            "kind": "state",
            "target": "lesson_green_done",
            "value": true
          },
          {
            "kind": "message",
            "value": "green seal is activated."
          }
        ],
        "otherwise": "",
        "once": true,
        "repeatText": "This seal is already activated."
      },
      {
        "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_completed",
            "operator": "==",
            "value": true
          }
        ],
        "actions": [
          {
            "kind": "message",
            "value": "All three distinct remembered tasks completed the objective. You record the result in your field journal. Your expedition is complete."
          },
          {
            "kind": "score",
            "value": 100
          },
          {
            "kind": "end",
            "value": "Your expedition is complete."
          }
        ],
        "otherwise": "Your expedition is not complete yet. Follow the room clues, then use the field journal to record your success.",
        "once": true
      }
    ]
  },
  "cookbookRecipes": [
    {
      "version": 1,
      "settings": {
        "instance": "lesson",
        "recipeId": "63-quest-completes-after-three-flags",
        "choices": {
          "room": {
            "existing": "",
            "name": "Three Seal Hall",
            "description": "Use the red seal, blue seal and green seal. OBJECTIVES shows the overall task."
          },
          "red": {
            "existing": "",
            "name": "red seal",
            "description": "Use this seal to record its part of the task."
          },
          "blue": {
            "existing": "",
            "name": "blue seal",
            "description": "Use this seal to record its part of the task."
          },
          "green": {
            "existing": "",
            "name": "green seal",
            "description": "Use this seal to record its part of the task."
          }
        },
        "values": {
          "goal": "Activate all three seals",
          "complete": "All three seals answer. The quest is complete.",
          "repeat": "This seal is already activated."
        },
        "reuseRoutes": {}
      },
      "owned": [
        {
          "path": "files",
          "key": "rooms/lesson_room.taml",
          "after": {
            "path": "rooms/lesson_room.taml",
            "name": "lesson_room.taml",
            "content": "room lesson_room\n  name: \"Three Seal Hall\"\n  description: \"Use the red seal, blue seal and green seal. OBJECTIVES shows the overall task.\"\n  dark: false\nend",
            "isDirty": true
          }
        },
        {
          "path": "files",
          "key": "objects/lesson_red.taml",
          "after": {
            "path": "objects/lesson_red.taml",
            "name": "lesson_red.taml",
            "content": "object lesson_red\n  name: \"red seal\"\n  description: \"Use this seal to record its part of the task.\"\n  location: lesson_room\n  droppable: false\n  use_give: true\n  weight: 0.1\nend",
            "isDirty": true
          }
        },
        {
          "path": "files",
          "key": "objects/lesson_blue.taml",
          "after": {
            "path": "objects/lesson_blue.taml",
            "name": "lesson_blue.taml",
            "content": "object lesson_blue\n  name: \"blue seal\"\n  description: \"Use this seal to record its part of the task.\"\n  location: lesson_room\n  droppable: false\n  use_give: true\n  weight: 0.1\nend",
            "isDirty": true
          }
        },
        {
          "path": "files",
          "key": "objects/lesson_green.taml",
          "after": {
            "path": "objects/lesson_green.taml",
            "name": "lesson_green.taml",
            "content": "object lesson_green\n  name: \"green seal\"\n  description: \"Use this seal to record its part of the task.\"\n  location: lesson_room\n  droppable: false\n  use_give: true\n  weight: 0.1\nend",
            "isDirty": true
          }
        },
        {
          "path": "objects",
          "key": "lesson_red",
          "after": {
            "id": "lesson_red",
            "name": "red seal",
            "description": "Use this seal to record its part of the task.",
            "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_blue",
          "after": {
            "id": "lesson_blue",
            "name": "blue seal",
            "description": "Use this seal to record its part of the task.",
            "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_green",
          "after": {
            "id": "lesson_green",
            "name": "green seal",
            "description": "Use this seal to record its part of the task.",
            "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": "mapRooms",
          "key": "lesson_room",
          "after": {
            "id": "lesson_room",
            "name": "Three Seal Hall",
            "description": "Use the red seal, blue seal and green seal. OBJECTIVES shows the overall task.",
            "reentryEnabled": false,
            "reentryDesc": "",
            "hint": "",
            "dark": false,
            "roomType": "regular",
            "x": 100,
            "y": 100,
            "width": 160,
            "height": 64,
            "color": "#000000"
          }
        },
        {
          "path": "objectiveSets",
          "key": "lesson_seals",
          "after": {
            "id": "lesson_seals",
            "name": "Three Seal Quest",
            "playerLabel": "Three Seal Quest",
            "commands": "objectives",
            "showInExport": true,
            "goals": [
              {
                "id": "lesson_all",
                "label": "Activate all three seals",
                "type": "flag",
                "flagName": "",
                "flagValue": "true",
                "roomId": "",
                "roomName": "",
                "scoreTarget": 100,
                "countFlags": "",
                "prereqGoalId": "",
                "hidden": false,
                "tracking": {
                  "category": "advanced",
                  "group": "main",
                  "description": "",
                  "criteria": [
                    {
                      "kind": "flag",
                      "target": "lesson_red_done",
                      "operator": "==",
                      "value": true
                    },
                    {
                      "kind": "flag",
                      "target": "lesson_blue_done",
                      "operator": "==",
                      "value": true
                    },
                    {
                      "kind": "flag",
                      "target": "lesson_green_done",
                      "operator": "==",
                      "value": true
                    }
                  ],
                  "match": "all",
                  "requiredCount": 1,
                  "prerequisites": [],
                  "optional": false,
                  "exclusiveGroup": "",
                  "availabilityConditions": [],
                  "revealConditions": [],
                  "mode": "achievement",
                  "retroactive": true,
                  "targetTurns": 5,
                  "interruption": "reset",
                  "deadlineTurns": 0,
                  "failureConditions": [],
                  "rewards": [],
                  "failureActions": [],
                  "completionText": "All three seals answer. The quest is complete.",
                  "failureText": "",
                  "linkedQuestId": "",
                  "linkedStageId": "",
                  "hintId": ""
                }
              }
            ],
            "onCompleteBody": "",
            "settings": {
              "description": "",
              "pauseJournal": true,
              "notifications": true,
              "panelCollapsed": false,
              "completionConditions": [],
              "rewards": [
                {
                  "kind": "state",
                  "target": "lesson_completed",
                  "value": true
                }
              ],
              "failureConditions": [],
              "failureActions": [],
              "failureText": ""
            }
          }
        },
        {
          "path": "manifest.story.states",
          "key": "lesson_red_done",
          "after": {
            "id": "lesson_red_done",
            "name": "red done",
            "description": "Progress remembered by this recipe.",
            "type": "boolean",
            "initial": false
          }
        },
        {
          "path": "manifest.story.states",
          "key": "lesson_blue_done",
          "after": {
            "id": "lesson_blue_done",
            "name": "blue done",
            "description": "Progress remembered by this recipe.",
            "type": "boolean",
            "initial": false
          }
        },
        {
          "path": "manifest.story.states",
          "key": "lesson_green_done",
          "after": {
            "id": "lesson_green_done",
            "name": "green done",
            "description": "Progress remembered by this recipe.",
            "type": "boolean",
            "initial": false
          }
        },
        {
          "path": "manifest.story.states",
          "key": "lesson_completed",
          "after": {
            "id": "lesson_completed",
            "name": "completed",
            "description": "Progress remembered by this recipe.",
            "type": "boolean",
            "initial": false
          }
        },
        {
          "path": "manifest.story.rules",
          "key": "lesson_red",
          "after": {
            "id": "lesson_red",
            "name": "red",
            "enabled": true,
            "trigger": {
              "kind": "object",
              "target": "lesson_red",
              "event": "use"
            },
            "match": "all",
            "conditions": [],
            "actions": [
              {
                "kind": "state",
                "target": "lesson_red_done",
                "value": true
              },
              {
                "kind": "message",
                "value": "red seal is activated."
              }
            ],
            "otherwise": "",
            "once": true,
            "repeatText": "This seal is already activated."
          }
        },
        {
          "path": "manifest.story.rules",
          "key": "lesson_blue",
          "after": {
            "id": "lesson_blue",
            "name": "blue",
            "enabled": true,
            "trigger": {
              "kind": "object",
              "target": "lesson_blue",
              "event": "use"
            },
            "match": "all",
            "conditions": [],
            "actions": [
              {
                "kind": "state",
                "target": "lesson_blue_done",
                "value": true
              },
              {
                "kind": "message",
                "value": "blue seal is activated."
              }
            ],
            "otherwise": "",
            "once": true,
            "repeatText": "This seal is already activated."
          }
        },
        {
          "path": "manifest.story.rules",
          "key": "lesson_green",
          "after": {
            "id": "lesson_green",
            "name": "green",
            "enabled": true,
            "trigger": {
              "kind": "object",
              "target": "lesson_green",
              "event": "use"
            },
            "match": "all",
            "conditions": [],
            "actions": [
              {
                "kind": "state",
                "target": "lesson_green_done",
                "value": true
              },
              {
                "kind": "message",
                "value": "green seal is activated."
              }
            ],
            "otherwise": "",
            "once": true,
            "repeatText": "This seal is already activated."
          }
        }
      ]
    }
  ],
  "creatorNotes": "Use three separate seals to record three tasks. The objective requires all three remembered tasks and completes once, whichever order you choose.\nOpen Help → Cookbook → Quest Completes After Three Flags → Start this recipe to inspect its saved settings. The field journal and 100-point ending belong only to the sample game.\nCommands: use blue seal; use blue seal; use red seal; use green seal; use green seal; use field journal",
  "mapRooms": [
    {
      "id": "lesson_room",
      "name": "Three Seal Hall",
      "description": "Use the red seal, blue seal and green seal. OBJECTIVES shows the overall task.",
      "reentryEnabled": false,
      "reentryDesc": "",
      "hint": "",
      "dark": false,
      "roomType": "regular",
      "x": 100,
      "y": 100,
      "width": 160,
      "height": 64,
      "color": "#000000"
    }
  ],
  "mapExits": [],
  "objects": [
    {
      "id": "lesson_red",
      "name": "red seal",
      "description": "Use this seal to record its part of the task.",
      "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_blue",
      "name": "blue seal",
      "description": "Use this seal to record its part of the task.",
      "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_green",
      "name": "green seal",
      "description": "Use this seal to record its part of the task.",
      "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": "sample_field_journal",
      "name": "field journal",
      "description": "Use this journal when you have completed the recipe to record your success. You can also keep exploring before you finish.",
      "article": "",
      "location": "inventory",
      "aliases": [
        "journal"
      ],
      "visible": true,
      "takeable": true,
      "droppable": false,
      "useGive": true,
      "container": false,
      "switchable": false,
      "edible": false,
      "drinkable": false,
      "wearable": false,
      "weapon": false,
      "weight": 0.1,
      "locked": false,
      "lockKey": "",
      "events": []
    }
  ],
  "npcs": [],
  "activeMechanics": [],
  "verbAliases": [],
  "scripts": [],
  "worldEvents": [],
  "customMechanicDefs": [],
  "savedMechanicTemplates": [],
  "objectiveSets": [
    {
      "id": "lesson_seals",
      "name": "Three Seal Quest",
      "playerLabel": "Three Seal Quest",
      "commands": "objectives",
      "showInExport": true,
      "goals": [
        {
          "id": "lesson_all",
          "label": "Activate all three seals",
          "type": "flag",
          "flagName": "",
          "flagValue": "true",
          "roomId": "",
          "roomName": "",
          "scoreTarget": 100,
          "countFlags": "",
          "prereqGoalId": "",
          "hidden": false,
          "tracking": {
            "category": "advanced",
            "group": "main",
            "description": "",
            "criteria": [
              {
                "kind": "flag",
                "target": "lesson_red_done",
                "operator": "==",
                "value": true
              },
              {
                "kind": "flag",
                "target": "lesson_blue_done",
                "operator": "==",
                "value": true
              },
              {
                "kind": "flag",
                "target": "lesson_green_done",
                "operator": "==",
                "value": true
              }
            ],
            "match": "all",
            "requiredCount": 1,
            "prerequisites": [],
            "optional": false,
            "exclusiveGroup": "",
            "availabilityConditions": [],
            "revealConditions": [],
            "mode": "achievement",
            "retroactive": true,
            "targetTurns": 5,
            "interruption": "reset",
            "deadlineTurns": 0,
            "failureConditions": [],
            "rewards": [],
            "failureActions": [],
            "completionText": "All three seals answer. The quest is complete.",
            "failureText": "",
            "linkedQuestId": "",
            "linkedStageId": "",
            "hintId": ""
          }
        }
      ],
      "onCompleteBody": "",
      "settings": {
        "description": "",
        "pauseJournal": true,
        "notifications": true,
        "panelCollapsed": false,
        "completionConditions": [],
        "rewards": [
          {
            "kind": "state",
            "target": "lesson_completed",
            "value": true
          }
        ],
        "failureConditions": [],
        "failureActions": [],
        "failureText": ""
      }
    }
  ],
  "gameOutliner": {},
  "customRoomTemplates": [],
  "customObjectTemplates": [],
  "customNpcTemplates": [],
  "customSavedScripts": [],
  "requiredCapabilities": [
    "story-rules-v1",
    "objective-journal-v1"
  ]
}
