{
  "version": "1.1",
  "name": "Portal",
  "startRoom": "lesson_hall",
  "author": "TAGMaker",
  "description": "Three object portals use different actions: USE the mirror, READ the book and PUSH the button. Each moves the player to its chosen room. Ordinary examining leaves the player where they are.",
  "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_hall.taml",
      "content": "room lesson_hall\n  name: \"Mirror Hall\"\n  description: \"USE MIRROR travels to the archive.\"\n  dark: false\nend"
    },
    {
      "path": "rooms/lesson_archive.taml",
      "content": "room lesson_archive\n  name: \"Story Archive\"\n  description: \"READ BOOK travels to the tower.\"\n  dark: false\nend"
    },
    {
      "path": "rooms/lesson_tower.taml",
      "content": "room lesson_tower\n  name: \"Button Tower\"\n  description: \"PUSH BUTTON returns to the hall.\"\n  dark: false\nend"
    },
    {
      "path": "objects/lesson_mirror.taml",
      "content": "object lesson_mirror\n  name: \"mirror\"\n  description: \"Use to travel to the archive.\"\n  location: lesson_hall\n  droppable: false\n  use_give: true\n  weight: 0.1\nend"
    },
    {
      "path": "objects/lesson_book.taml",
      "content": "object lesson_book\n  name: \"book\"\n  description: \"Read to travel to the tower.\"\n  location: lesson_archive\n  droppable: false\n  use_give: true\n  weight: 0.1\nend"
    },
    {
      "path": "objects/lesson_button.taml",
      "content": "object lesson_button\n  name: \"button\"\n  description: \"Push to return to the hall.\"\n  location: lesson_tower\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_mirror_used",
        "name": "mirror used",
        "description": "Progress remembered by this recipe.",
        "type": "boolean",
        "initial": false
      },
      {
        "id": "lesson_book_used",
        "name": "book used",
        "description": "Progress remembered by this recipe.",
        "type": "boolean",
        "initial": false
      },
      {
        "id": "lesson_done",
        "name": "done",
        "description": "Progress remembered by this recipe.",
        "type": "boolean",
        "initial": false
      }
    ],
    "rules": [
      {
        "id": "lesson_mirror",
        "name": "mirror",
        "enabled": true,
        "trigger": {
          "kind": "object",
          "target": "lesson_mirror",
          "event": "use"
        },
        "match": "all",
        "conditions": [],
        "actions": [
          {
            "kind": "message",
            "value": "You step through the mirror."
          },
          {
            "kind": "state",
            "target": "lesson_mirror_used",
            "value": true
          },
          {
            "kind": "goto",
            "target": "lesson_archive"
          }
        ],
        "otherwise": "",
        "once": false
      },
      {
        "id": "lesson_book",
        "name": "book",
        "enabled": true,
        "trigger": {
          "kind": "object",
          "target": "lesson_book",
          "event": "custom:read"
        },
        "match": "all",
        "conditions": [],
        "actions": [
          {
            "kind": "message",
            "value": "The story carries you to its tower."
          },
          {
            "kind": "state",
            "target": "lesson_book_used",
            "value": true
          },
          {
            "kind": "goto",
            "target": "lesson_tower"
          }
        ],
        "otherwise": "",
        "once": false
      },
      {
        "id": "lesson_button",
        "name": "button",
        "enabled": true,
        "trigger": {
          "kind": "object",
          "target": "lesson_button",
          "event": "custom:push"
        },
        "match": "all",
        "conditions": [],
        "actions": [
          {
            "kind": "message",
            "value": "The button returns you to the hall."
          },
          {
            "kind": "state",
            "target": "lesson_done",
            "value": true
          },
          {
            "kind": "goto",
            "target": "lesson_hall"
          }
        ],
        "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_done",
            "operator": "==",
            "value": true
          }
        ],
        "actions": [
          {
            "kind": "message",
            "value": "All three action portals work and the return route remains usable. 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": "reference-portal",
        "choices": {
          "hall": {
            "existing": "",
            "name": "Mirror Hall",
            "description": "USE MIRROR travels to the archive."
          },
          "archive": {
            "existing": "",
            "name": "Story Archive",
            "description": "READ BOOK travels to the tower."
          },
          "tower": {
            "existing": "",
            "name": "Button Tower",
            "description": "PUSH BUTTON returns to the hall."
          },
          "mirror": {
            "existing": "",
            "name": "mirror",
            "description": "Use to travel to the archive."
          },
          "book": {
            "existing": "",
            "name": "book",
            "description": "Read to travel to the tower."
          },
          "button": {
            "existing": "",
            "name": "button",
            "description": "Push to return to the hall."
          }
        },
        "values": {
          "mirror": "You step through the mirror.",
          "book": "The story carries you to its tower.",
          "button": "The button returns you to the hall."
        },
        "reuseRoutes": {}
      },
      "owned": [
        {
          "path": "files",
          "key": "rooms/lesson_hall.taml",
          "after": {
            "path": "rooms/lesson_hall.taml",
            "name": "lesson_hall.taml",
            "content": "room lesson_hall\n  name: \"Mirror Hall\"\n  description: \"USE MIRROR travels to the archive.\"\n  dark: false\nend",
            "isDirty": true
          }
        },
        {
          "path": "files",
          "key": "rooms/lesson_archive.taml",
          "after": {
            "path": "rooms/lesson_archive.taml",
            "name": "lesson_archive.taml",
            "content": "room lesson_archive\n  name: \"Story Archive\"\n  description: \"READ BOOK travels to the tower.\"\n  dark: false\nend",
            "isDirty": true
          }
        },
        {
          "path": "files",
          "key": "rooms/lesson_tower.taml",
          "after": {
            "path": "rooms/lesson_tower.taml",
            "name": "lesson_tower.taml",
            "content": "room lesson_tower\n  name: \"Button Tower\"\n  description: \"PUSH BUTTON returns to the hall.\"\n  dark: false\nend",
            "isDirty": true
          }
        },
        {
          "path": "files",
          "key": "objects/lesson_mirror.taml",
          "after": {
            "path": "objects/lesson_mirror.taml",
            "name": "lesson_mirror.taml",
            "content": "object lesson_mirror\n  name: \"mirror\"\n  description: \"Use to travel to the archive.\"\n  location: lesson_hall\n  droppable: false\n  use_give: true\n  weight: 0.1\nend",
            "isDirty": true
          }
        },
        {
          "path": "files",
          "key": "objects/lesson_book.taml",
          "after": {
            "path": "objects/lesson_book.taml",
            "name": "lesson_book.taml",
            "content": "object lesson_book\n  name: \"book\"\n  description: \"Read to travel to the tower.\"\n  location: lesson_archive\n  droppable: false\n  use_give: true\n  weight: 0.1\nend",
            "isDirty": true
          }
        },
        {
          "path": "files",
          "key": "objects/lesson_button.taml",
          "after": {
            "path": "objects/lesson_button.taml",
            "name": "lesson_button.taml",
            "content": "object lesson_button\n  name: \"button\"\n  description: \"Push to return to the hall.\"\n  location: lesson_tower\n  droppable: false\n  use_give: true\n  weight: 0.1\nend",
            "isDirty": true
          }
        },
        {
          "path": "objects",
          "key": "lesson_mirror",
          "after": {
            "id": "lesson_mirror",
            "name": "mirror",
            "description": "Use to travel to the archive.",
            "article": "",
            "location": "lesson_hall",
            "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_book",
          "after": {
            "id": "lesson_book",
            "name": "book",
            "description": "Read to travel to the tower.",
            "article": "",
            "location": "lesson_archive",
            "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_button",
          "after": {
            "id": "lesson_button",
            "name": "button",
            "description": "Push to return to the hall.",
            "article": "",
            "location": "lesson_tower",
            "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_hall",
          "after": {
            "id": "lesson_hall",
            "name": "Mirror Hall",
            "description": "USE MIRROR travels to the archive.",
            "reentryEnabled": false,
            "reentryDesc": "",
            "hint": "",
            "dark": false,
            "roomType": "regular",
            "x": 100,
            "y": 100,
            "width": 160,
            "height": 64,
            "color": "#000000"
          }
        },
        {
          "path": "mapRooms",
          "key": "lesson_archive",
          "after": {
            "id": "lesson_archive",
            "name": "Story Archive",
            "description": "READ BOOK travels to the tower.",
            "reentryEnabled": false,
            "reentryDesc": "",
            "hint": "",
            "dark": false,
            "roomType": "regular",
            "x": 320,
            "y": 100,
            "width": 160,
            "height": 64,
            "color": "#000000"
          }
        },
        {
          "path": "mapRooms",
          "key": "lesson_tower",
          "after": {
            "id": "lesson_tower",
            "name": "Button Tower",
            "description": "PUSH BUTTON returns to the hall.",
            "reentryEnabled": false,
            "reentryDesc": "",
            "hint": "",
            "dark": false,
            "roomType": "regular",
            "x": 540,
            "y": 100,
            "width": 160,
            "height": 64,
            "color": "#000000"
          }
        },
        {
          "path": "manifest.story.states",
          "key": "lesson_mirror_used",
          "after": {
            "id": "lesson_mirror_used",
            "name": "mirror used",
            "description": "Progress remembered by this recipe.",
            "type": "boolean",
            "initial": false
          }
        },
        {
          "path": "manifest.story.states",
          "key": "lesson_book_used",
          "after": {
            "id": "lesson_book_used",
            "name": "book used",
            "description": "Progress remembered by this recipe.",
            "type": "boolean",
            "initial": false
          }
        },
        {
          "path": "manifest.story.states",
          "key": "lesson_done",
          "after": {
            "id": "lesson_done",
            "name": "done",
            "description": "Progress remembered by this recipe.",
            "type": "boolean",
            "initial": false
          }
        },
        {
          "path": "manifest.story.rules",
          "key": "lesson_mirror",
          "after": {
            "id": "lesson_mirror",
            "name": "mirror",
            "enabled": true,
            "trigger": {
              "kind": "object",
              "target": "lesson_mirror",
              "event": "use"
            },
            "match": "all",
            "conditions": [],
            "actions": [
              {
                "kind": "message",
                "value": "You step through the mirror."
              },
              {
                "kind": "state",
                "target": "lesson_mirror_used",
                "value": true
              },
              {
                "kind": "goto",
                "target": "lesson_archive"
              }
            ],
            "otherwise": "",
            "once": false
          }
        },
        {
          "path": "manifest.story.rules",
          "key": "lesson_book",
          "after": {
            "id": "lesson_book",
            "name": "book",
            "enabled": true,
            "trigger": {
              "kind": "object",
              "target": "lesson_book",
              "event": "custom:read"
            },
            "match": "all",
            "conditions": [],
            "actions": [
              {
                "kind": "message",
                "value": "The story carries you to its tower."
              },
              {
                "kind": "state",
                "target": "lesson_book_used",
                "value": true
              },
              {
                "kind": "goto",
                "target": "lesson_tower"
              }
            ],
            "otherwise": "",
            "once": false
          }
        },
        {
          "path": "manifest.story.rules",
          "key": "lesson_button",
          "after": {
            "id": "lesson_button",
            "name": "button",
            "enabled": true,
            "trigger": {
              "kind": "object",
              "target": "lesson_button",
              "event": "custom:push"
            },
            "match": "all",
            "conditions": [],
            "actions": [
              {
                "kind": "message",
                "value": "The button returns you to the hall."
              },
              {
                "kind": "state",
                "target": "lesson_done",
                "value": true
              },
              {
                "kind": "goto",
                "target": "lesson_hall"
              }
            ],
            "otherwise": "",
            "once": false
          }
        }
      ]
    }
  ],
  "creatorNotes": "Three object portals use different actions: USE the mirror, READ the book and PUSH the button. Each moves the player to its chosen room. Ordinary examining leaves the player where they are.\nOpen Help → Cookbook → Portal → Start this recipe to inspect its saved settings. The field journal and 100-point ending belong only to the sample game.\nCommands: examine mirror; use mirror; examine book; read book; push button; use mirror; read book; push button; use field journal",
  "mapRooms": [
    {
      "id": "lesson_hall",
      "name": "Mirror Hall",
      "description": "USE MIRROR travels to the archive.",
      "reentryEnabled": false,
      "reentryDesc": "",
      "hint": "",
      "dark": false,
      "roomType": "regular",
      "x": 100,
      "y": 100,
      "width": 160,
      "height": 64,
      "color": "#000000"
    },
    {
      "id": "lesson_archive",
      "name": "Story Archive",
      "description": "READ BOOK travels to the tower.",
      "reentryEnabled": false,
      "reentryDesc": "",
      "hint": "",
      "dark": false,
      "roomType": "regular",
      "x": 320,
      "y": 100,
      "width": 160,
      "height": 64,
      "color": "#000000"
    },
    {
      "id": "lesson_tower",
      "name": "Button Tower",
      "description": "PUSH BUTTON returns to the hall.",
      "reentryEnabled": false,
      "reentryDesc": "",
      "hint": "",
      "dark": false,
      "roomType": "regular",
      "x": 540,
      "y": 100,
      "width": 160,
      "height": 64,
      "color": "#000000"
    }
  ],
  "mapExits": [],
  "objects": [
    {
      "id": "lesson_mirror",
      "name": "mirror",
      "description": "Use to travel to the archive.",
      "article": "",
      "location": "lesson_hall",
      "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_book",
      "name": "book",
      "description": "Read to travel to the tower.",
      "article": "",
      "location": "lesson_archive",
      "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_button",
      "name": "button",
      "description": "Push to return to the hall.",
      "article": "",
      "location": "lesson_tower",
      "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": [],
  "gameOutliner": {},
  "customRoomTemplates": [],
  "customObjectTemplates": [],
  "customNpcTemplates": [],
  "customSavedScripts": [],
  "requiredCapabilities": [
    "story-rules-v1"
  ]
}
