{
  "version": "1.1",
  "name": "Readable Journal Unlocks New Dialogue",
  "startRoom": "lesson_room",
  "author": "TAGMaker",
  "description": "Reading a captain’s journal makes a new conversation topic available. Carrying or examining the journal alone does not unlock the topic.",
  "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: \"Harbor Office\"\n  description: \"A harbor keeper waits beside the captain journal. Read the journal and ask the keeper about its missing ship.\"\n  dark: false\nend"
    },
    {
      "path": "objects/lesson_journal.taml",
      "content": "object lesson_journal\n  name: \"captain journal\"\n  description: \"The cover reads: Captain’s Journal. Read it to study the entries.\"\n  location: lesson_room\n  takeable: true\n  use_give: true\n  weight: 0.1\nend"
    },
    {
      "path": "npcs/lesson_keeper.taml",
      "content": "npc lesson_keeper\n  name: \"harbor keeper\"\n  description: \"The keeper can explain a ship mentioned in the journal.\"\n  location: lesson_room\n  mobile: false\n  follow: false\n  health: 100\n  combat_side: neutral\n  auto_fight: false\n  attack_power: 10\n  defense: 0\n  trust: 50\nend"
    },
    {
      "path": "objects/sample_field_journal.taml",
      "content": "object sample_field_journal\n  name: \"field journal\"\n  description: \"Use this journal when you have completed the recipe to record your success. You can also keep exploring before you finish.\"\n  location: inventory\n  aliases: [\"journal\"]\n  takeable: true\n  droppable: false\n  use_give: true\n  weight: 0.1\nend"
    }
  ],
  "story": {
    "version": 1,
    "states": [
      {
        "id": "lesson_read",
        "name": "read",
        "description": "Progress remembered by this recipe.",
        "type": "boolean",
        "initial": false
      },
      {
        "id": "lesson_learned",
        "name": "learned",
        "description": "Progress remembered by this recipe.",
        "type": "boolean",
        "initial": false
      }
    ],
    "rules": [
      {
        "id": "lesson_read_journal",
        "name": "read journal",
        "enabled": true,
        "trigger": {
          "kind": "object",
          "target": "lesson_journal",
          "event": "custom:read"
        },
        "match": "all",
        "conditions": [],
        "actions": [
          {
            "kind": "state",
            "target": "lesson_read",
            "value": true
          },
          {
            "kind": "message",
            "value": "The last entry names the lost ship Sea Lantern."
          }
        ],
        "otherwise": "",
        "once": false
      },
      {
        "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_learned",
            "operator": "==",
            "value": true
          }
        ],
        "actions": [
          {
            "kind": "message",
            "value": "Reading unlocked the keeper’s useful testimony. You record the result in your field journal. Your expedition is complete."
          },
          {
            "kind": "score",
            "value": 100
          },
          {
            "kind": "end",
            "value": "Your expedition is complete."
          }
        ],
        "otherwise": "Your expedition is not complete yet. Follow the room clues, then use the field journal to record your success.",
        "once": true
      }
    ],
    "features": {
      "version": 1,
      "conversations": [
        {
          "id": "lesson_conversation",
          "name": "Journal discovery conversation",
          "enabled": true,
          "npcId": "lesson_keeper",
          "startNodeId": "start",
          "nodes": [
            {
              "id": "start",
              "text": "The keeper waits for your question.",
              "actions": [],
              "choices": [
                {
                  "id": "ship",
                  "label": "Ask about the Sea Lantern",
                  "conditions": [
                    {
                      "kind": "state",
                      "target": "lesson_read",
                      "operator": "==",
                      "value": true
                    }
                  ],
                  "match": "all",
                  "actions": [
                    {
                      "kind": "state",
                      "target": "lesson_learned",
                      "value": true
                    },
                    {
                      "kind": "message",
                      "value": "The Sea Lantern reached the northern cove. Search there next."
                    }
                  ],
                  "once": true,
                  "unavailable": "disabled",
                  "next": "$end"
                }
              ]
            }
          ]
        }
      ]
    }
  },
  "cookbookRecipes": [
    {
      "version": 1,
      "settings": {
        "instance": "lesson",
        "recipeId": "20-readable-journal-unlocks-new-dialogue",
        "choices": {
          "room": {
            "existing": "",
            "name": "Harbor Office",
            "description": "A harbor keeper waits beside the captain journal. Read the journal and ask the keeper about its missing ship."
          },
          "journal": {
            "existing": "",
            "name": "captain journal",
            "description": "The cover reads: Captain’s Journal. Read it to study the entries."
          },
          "keeper": {
            "existing": "",
            "name": "harbor keeper",
            "description": "The keeper can explain a ship mentioned in the journal."
          }
        },
        "values": {
          "entry": "The last entry names the lost ship Sea Lantern.",
          "greeting": "The keeper waits for your question.",
          "topic": "Ask about the Sea Lantern",
          "answer": "The Sea Lantern reached the northern cove. Search there next."
        },
        "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: \"Harbor Office\"\n  description: \"A harbor keeper waits beside the captain journal. Read the journal and ask the keeper about its missing ship.\"\n  dark: false\nend",
            "isDirty": true
          }
        },
        {
          "path": "files",
          "key": "objects/lesson_journal.taml",
          "after": {
            "path": "objects/lesson_journal.taml",
            "name": "lesson_journal.taml",
            "content": "object lesson_journal\n  name: \"captain journal\"\n  description: \"The cover reads: Captain’s Journal. Read it to study the entries.\"\n  location: lesson_room\n  takeable: true\n  use_give: true\n  weight: 0.1\nend",
            "isDirty": true
          }
        },
        {
          "path": "files",
          "key": "npcs/lesson_keeper.taml",
          "after": {
            "path": "npcs/lesson_keeper.taml",
            "name": "lesson_keeper.taml",
            "content": "npc lesson_keeper\n  name: \"harbor keeper\"\n  description: \"The keeper can explain a ship mentioned in the journal.\"\n  location: lesson_room\n  mobile: false\n  follow: false\n  health: 100\n  combat_side: neutral\n  auto_fight: false\n  attack_power: 10\n  defense: 0\n  trust: 50\nend",
            "isDirty": true
          }
        },
        {
          "path": "objects",
          "key": "lesson_journal",
          "after": {
            "id": "lesson_journal",
            "name": "captain journal",
            "description": "The cover reads: Captain’s Journal. Read it to study the entries.",
            "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": "npcs",
          "key": "lesson_keeper",
          "after": {
            "id": "lesson_keeper",
            "name": "harbor keeper",
            "description": "The keeper can explain a ship mentioned in the journal.",
            "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": 100,
            "combatSide": "neutral",
            "autoFight": false,
            "attackPower": 10,
            "defense": 0,
            "trustLevel": 50,
            "conversationEnabled": false,
            "convGreeting": "",
            "convFarewell": "",
            "convTopics": [],
            "dialogues": []
          }
        },
        {
          "path": "mapRooms",
          "key": "lesson_room",
          "after": {
            "id": "lesson_room",
            "name": "Harbor Office",
            "description": "A harbor keeper waits beside the captain journal. Read the journal and ask the keeper about its missing ship.",
            "reentryEnabled": false,
            "reentryDesc": "",
            "hint": "",
            "dark": false,
            "roomType": "regular",
            "x": 100,
            "y": 100,
            "width": 160,
            "height": 64,
            "color": "#000000"
          }
        },
        {
          "path": "manifest.story.states",
          "key": "lesson_read",
          "after": {
            "id": "lesson_read",
            "name": "read",
            "description": "Progress remembered by this recipe.",
            "type": "boolean",
            "initial": false
          }
        },
        {
          "path": "manifest.story.states",
          "key": "lesson_learned",
          "after": {
            "id": "lesson_learned",
            "name": "learned",
            "description": "Progress remembered by this recipe.",
            "type": "boolean",
            "initial": false
          }
        },
        {
          "path": "manifest.story.rules",
          "key": "lesson_read_journal",
          "after": {
            "id": "lesson_read_journal",
            "name": "read journal",
            "enabled": true,
            "trigger": {
              "kind": "object",
              "target": "lesson_journal",
              "event": "custom:read"
            },
            "match": "all",
            "conditions": [],
            "actions": [
              {
                "kind": "state",
                "target": "lesson_read",
                "value": true
              },
              {
                "kind": "message",
                "value": "The last entry names the lost ship Sea Lantern."
              }
            ],
            "otherwise": "",
            "once": false
          }
        },
        {
          "path": "manifest.story.features.conversations",
          "key": "lesson_conversation",
          "after": {
            "id": "lesson_conversation",
            "name": "Journal discovery conversation",
            "enabled": true,
            "npcId": "lesson_keeper",
            "startNodeId": "start",
            "nodes": [
              {
                "id": "start",
                "text": "The keeper waits for your question.",
                "actions": [],
                "choices": [
                  {
                    "id": "ship",
                    "label": "Ask about the Sea Lantern",
                    "conditions": [
                      {
                        "kind": "state",
                        "target": "lesson_read",
                        "operator": "==",
                        "value": true
                      }
                    ],
                    "match": "all",
                    "actions": [
                      {
                        "kind": "state",
                        "target": "lesson_learned",
                        "value": true
                      },
                      {
                        "kind": "message",
                        "value": "The Sea Lantern reached the northern cove. Search there next."
                      }
                    ],
                    "once": true,
                    "unavailable": "disabled",
                    "next": "$end"
                  }
                ]
              }
            ]
          }
        }
      ]
    }
  ],
  "creatorNotes": "Reading a captain’s journal makes a new conversation topic available. Carrying or examining the journal alone does not unlock the topic.\nOpen Help → Cookbook → Readable Journal Unlocks New Dialogue → Start this recipe to inspect its saved settings. The field journal and 100-point ending belong only to the sample game.\nCommands: talk harbor keeper; 1; 0; take captain journal; examine captain journal; read captain journal; talk harbor keeper; 1; talk harbor keeper; 0; use field journal",
  "mapRooms": [
    {
      "id": "lesson_room",
      "name": "Harbor Office",
      "description": "A harbor keeper waits beside the captain journal. Read the journal and ask the keeper about its missing ship.",
      "reentryEnabled": false,
      "reentryDesc": "",
      "hint": "",
      "dark": false,
      "roomType": "regular",
      "x": 100,
      "y": 100,
      "width": 160,
      "height": 64,
      "color": "#000000"
    }
  ],
  "mapExits": [],
  "objects": [
    {
      "id": "lesson_journal",
      "name": "captain journal",
      "description": "The cover reads: Captain’s Journal. Read it to study the entries.",
      "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": [
    {
      "id": "lesson_keeper",
      "name": "harbor keeper",
      "description": "The keeper can explain a ship mentioned in the journal.",
      "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": 100,
      "combatSide": "neutral",
      "autoFight": false,
      "attackPower": 10,
      "defense": 0,
      "trustLevel": 50,
      "conversationEnabled": false,
      "convGreeting": "",
      "convFarewell": "",
      "convTopics": [],
      "dialogues": []
    }
  ],
  "activeMechanics": [],
  "verbAliases": [],
  "scripts": [],
  "worldEvents": [],
  "customMechanicDefs": [],
  "savedMechanicTemplates": [],
  "objectiveSets": [],
  "gameOutliner": {},
  "customRoomTemplates": [],
  "customObjectTemplates": [],
  "customNpcTemplates": [],
  "customSavedScripts": [],
  "requiredCapabilities": [
    "story-rules-v1",
    "creator-features-v1"
  ]
}
