{
  "version": "1.1",
  "name": "Score Awarded for Finding Treasure",
  "startRoom": "lesson_room",
  "author": "TAGMaker",
  "description": "Collecting the golden idol completes an achievement and awards points once. Dropping and taking it again cannot repeat the reward.",
  "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: \"Treasure Alcove\"\n  description: \"Take the golden idol and check OBJECTIVES or SCORE. Dropping and taking it again does not award more points.\"\n  dark: false\nend"
    },
    {
      "path": "objects/lesson_treasure.taml",
      "content": "object lesson_treasure\n  name: \"golden idol\"\n  description: \"A valuable idol worth a one-time reward.\"\n  location: lesson_room\n  takeable: true\n  use_give: true\n  weight: 0.1\nend"
    },
    {
      "path": "objects/sample_field_journal.taml",
      "content": "object sample_field_journal\n  name: \"field journal\"\n  description: \"Use this journal when you have completed the recipe to record your success. You can also keep exploring before you finish.\"\n  location: inventory\n  aliases: [\"journal\"]\n  takeable: true\n  droppable: false\n  use_give: true\n  weight: 0.1\nend"
    }
  ],
  "story": {
    "version": 1,
    "states": [
      {
        "id": "lesson_collected",
        "name": "collected",
        "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_collected",
            "operator": "==",
            "value": true
          }
        ],
        "actions": [
          {
            "kind": "message",
            "value": "The treasure’s one collection reward is recorded. 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": "61-score-awarded-for-finding-treasure",
        "choices": {
          "room": {
            "existing": "",
            "name": "Treasure Alcove",
            "description": "Take the golden idol and check OBJECTIVES or SCORE. Dropping and taking it again does not award more points."
          },
          "treasure": {
            "existing": "",
            "name": "golden idol",
            "description": "A valuable idol worth a one-time reward."
          }
        },
        "values": {
          "reward": 100,
          "goal": "Collect the golden idol",
          "complete": "The golden idol is recorded. Its points are awarded once."
        },
        "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: \"Treasure Alcove\"\n  description: \"Take the golden idol and check OBJECTIVES or SCORE. Dropping and taking it again does not award more points.\"\n  dark: false\nend",
            "isDirty": true
          }
        },
        {
          "path": "files",
          "key": "objects/lesson_treasure.taml",
          "after": {
            "path": "objects/lesson_treasure.taml",
            "name": "lesson_treasure.taml",
            "content": "object lesson_treasure\n  name: \"golden idol\"\n  description: \"A valuable idol worth a one-time reward.\"\n  location: lesson_room\n  takeable: true\n  use_give: true\n  weight: 0.1\nend",
            "isDirty": true
          }
        },
        {
          "path": "objects",
          "key": "lesson_treasure",
          "after": {
            "id": "lesson_treasure",
            "name": "golden idol",
            "description": "A valuable idol worth a one-time reward.",
            "article": "",
            "location": "lesson_room",
            "aliases": [],
            "visible": true,
            "takeable": true,
            "droppable": true,
            "useGive": true,
            "container": false,
            "switchable": false,
            "edible": false,
            "drinkable": false,
            "wearable": false,
            "weapon": false,
            "weight": 0.1,
            "locked": false,
            "lockKey": "",
            "events": []
          }
        },
        {
          "path": "mapRooms",
          "key": "lesson_room",
          "after": {
            "id": "lesson_room",
            "name": "Treasure Alcove",
            "description": "Take the golden idol and check OBJECTIVES or SCORE. Dropping and taking it again does not award more points.",
            "reentryEnabled": false,
            "reentryDesc": "",
            "hint": "",
            "dark": false,
            "roomType": "regular",
            "x": 100,
            "y": 100,
            "width": 160,
            "height": 64,
            "color": "#000000"
          }
        },
        {
          "path": "objectiveSets",
          "key": "lesson_treasure_goal",
          "after": {
            "id": "lesson_treasure_goal",
            "name": "Treasure",
            "playerLabel": "Treasure",
            "commands": "objectives",
            "showInExport": true,
            "goals": [
              {
                "id": "lesson_collect",
                "label": "Collect the golden idol",
                "type": "flag",
                "flagName": "",
                "flagValue": "true",
                "roomId": "",
                "roomName": "",
                "scoreTarget": 100,
                "countFlags": "",
                "prereqGoalId": "",
                "hidden": false,
                "tracking": {
                  "category": "collect",
                  "group": "main",
                  "description": "",
                  "criteria": [
                    {
                      "kind": "object_possessed",
                      "target": "lesson_treasure"
                    }
                  ],
                  "match": "all",
                  "requiredCount": 1,
                  "prerequisites": [],
                  "optional": false,
                  "exclusiveGroup": "",
                  "availabilityConditions": [],
                  "revealConditions": [],
                  "mode": "achievement",
                  "retroactive": true,
                  "targetTurns": 5,
                  "interruption": "reset",
                  "deadlineTurns": 0,
                  "failureConditions": [],
                  "rewards": [
                    {
                      "kind": "score",
                      "value": 100
                    },
                    {
                      "kind": "state",
                      "target": "lesson_collected",
                      "value": true
                    }
                  ],
                  "failureActions": [],
                  "completionText": "The golden idol is recorded. Its points are awarded once.",
                  "failureText": "",
                  "linkedQuestId": "",
                  "linkedStageId": "",
                  "hintId": ""
                }
              }
            ],
            "onCompleteBody": "",
            "settings": {
              "description": "",
              "pauseJournal": true,
              "notifications": true,
              "panelCollapsed": false,
              "completionConditions": [],
              "rewards": [],
              "failureConditions": [],
              "failureActions": [],
              "failureText": ""
            }
          }
        },
        {
          "path": "manifest.story.states",
          "key": "lesson_collected",
          "after": {
            "id": "lesson_collected",
            "name": "collected",
            "description": "Progress remembered by this recipe.",
            "type": "boolean",
            "initial": false
          }
        }
      ]
    }
  ],
  "creatorNotes": "Collecting the golden idol completes an achievement and awards points once. Dropping and taking it again cannot repeat the reward.\nOpen Help → Cookbook → Score Awarded for Finding Treasure → Start this recipe to inspect its saved settings. The field journal and 100-point ending belong only to the sample game.\nCommands: examine golden idol; take golden idol; drop golden idol; take golden idol; objectives; use field journal",
  "mapRooms": [
    {
      "id": "lesson_room",
      "name": "Treasure Alcove",
      "description": "Take the golden idol and check OBJECTIVES or SCORE. Dropping and taking it again does not award more points.",
      "reentryEnabled": false,
      "reentryDesc": "",
      "hint": "",
      "dark": false,
      "roomType": "regular",
      "x": 100,
      "y": 100,
      "width": 160,
      "height": 64,
      "color": "#000000"
    }
  ],
  "mapExits": [],
  "objects": [
    {
      "id": "lesson_treasure",
      "name": "golden idol",
      "description": "A valuable idol worth a one-time reward.",
      "article": "",
      "location": "lesson_room",
      "aliases": [],
      "visible": true,
      "takeable": true,
      "droppable": true,
      "useGive": true,
      "container": false,
      "switchable": false,
      "edible": false,
      "drinkable": false,
      "wearable": false,
      "weapon": false,
      "weight": 0.1,
      "locked": false,
      "lockKey": "",
      "events": []
    },
    {
      "id": "sample_field_journal",
      "name": "field journal",
      "description": "Use this journal when you have completed the recipe to record your success. You can also keep exploring before you finish.",
      "article": "",
      "location": "inventory",
      "aliases": [
        "journal"
      ],
      "visible": true,
      "takeable": true,
      "droppable": false,
      "useGive": true,
      "container": false,
      "switchable": false,
      "edible": false,
      "drinkable": false,
      "wearable": false,
      "weapon": false,
      "weight": 0.1,
      "locked": false,
      "lockKey": "",
      "events": []
    }
  ],
  "npcs": [],
  "activeMechanics": [],
  "verbAliases": [],
  "scripts": [],
  "worldEvents": [],
  "customMechanicDefs": [],
  "savedMechanicTemplates": [],
  "objectiveSets": [
    {
      "id": "lesson_treasure_goal",
      "name": "Treasure",
      "playerLabel": "Treasure",
      "commands": "objectives",
      "showInExport": true,
      "goals": [
        {
          "id": "lesson_collect",
          "label": "Collect the golden idol",
          "type": "flag",
          "flagName": "",
          "flagValue": "true",
          "roomId": "",
          "roomName": "",
          "scoreTarget": 100,
          "countFlags": "",
          "prereqGoalId": "",
          "hidden": false,
          "tracking": {
            "category": "collect",
            "group": "main",
            "description": "",
            "criteria": [
              {
                "kind": "object_possessed",
                "target": "lesson_treasure"
              }
            ],
            "match": "all",
            "requiredCount": 1,
            "prerequisites": [],
            "optional": false,
            "exclusiveGroup": "",
            "availabilityConditions": [],
            "revealConditions": [],
            "mode": "achievement",
            "retroactive": true,
            "targetTurns": 5,
            "interruption": "reset",
            "deadlineTurns": 0,
            "failureConditions": [],
            "rewards": [
              {
                "kind": "score",
                "value": 100
              },
              {
                "kind": "state",
                "target": "lesson_collected",
                "value": true
              }
            ],
            "failureActions": [],
            "completionText": "The golden idol is recorded. Its points are awarded once.",
            "failureText": "",
            "linkedQuestId": "",
            "linkedStageId": "",
            "hintId": ""
          }
        }
      ],
      "onCompleteBody": "",
      "settings": {
        "description": "",
        "pauseJournal": true,
        "notifications": true,
        "panelCollapsed": false,
        "completionConditions": [],
        "rewards": [],
        "failureConditions": [],
        "failureActions": [],
        "failureText": ""
      }
    }
  ],
  "gameOutliner": {},
  "customRoomTemplates": [],
  "customObjectTemplates": [],
  "customNpcTemplates": [],
  "customSavedScripts": [],
  "requiredCapabilities": [
    "story-rules-v1",
    "objective-journal-v1"
  ]
}
