{
  "version": "1.1",
  "requiredCapabilities": [
    "npc-capabilities-v1",
    "story-rules-v1",
    "object-contents-v1",
    "creator-features-v1",
    "script-functions-v1"
  ],
  "name": "Harbor Helpers NPC Workshop",
  "author": "TAGMaker",
  "description": "A safe five-room workshop using eight editable NPC role factories: hints, finite physical trade, bounded healing, native repair, checked passage, real rescue, accepted Quest handover and connected patrol. Complete it for 100 points and five reward coins.",
  "created": "2026-10-24T00:00:00.000Z",
  "modified": "2026-10-24T00:00:00.000Z",
  "startRoom": "square",
  "story": {
    "version": 1,
    "states": [
      {
        "id": "nr_technician_repaired",
        "name": "technician (technician) repaired",
        "description": "Owned by NPC role technician.",
        "type": "boolean",
        "initial": false
      },
      {
        "id": "nr_civilian_rescued",
        "name": "civilian (civilian) rescued",
        "description": "Owned by NPC role civilian.",
        "type": "boolean",
        "initial": false
      },
      {
        "id": "nr_harbor_master_accepted",
        "name": "harbor master (harbor_master) accepted",
        "description": "Owned by NPC role harbor_master.",
        "type": "boolean",
        "initial": false
      },
      {
        "id": "nr_harbor_master_delivered",
        "name": "harbor master (harbor_master) delivered",
        "description": "Owned by NPC role harbor_master.",
        "type": "boolean",
        "initial": false
      },
      {
        "id": "harbor_gate_open",
        "name": "Harbor gate opened",
        "description": "The gatekeeper admitted a player carrying the real pass.",
        "type": "boolean",
        "initial": false
      }
    ],
    "rules": [],
    "features": {
      "version": 1,
      "commandContext": true,
      "npcProfiles": [
        {
          "version": 1,
          "id": "nr_guide_profile",
          "name": "guide",
          "npcId": "guide",
          "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": "nr_merchant_profile",
          "name": "merchant",
          "npcId": "merchant",
          "enabled": true,
          "memory": [],
          "traits": {
            "loyalty": 50,
            "fear": 0,
            "suspicion": 0
          },
          "life": {
            "maxHealth": 100,
            "initial": "active",
            "essential": false,
            "defeat": "dead",
            "retreatAtHealth": 0
          },
          "inventory": {
            "objects": [
              "fuse"
            ],
            "equipped": [],
            "equipment": [],
            "money": 100,
            "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": "nr_medic_profile",
          "name": "medic",
          "npcId": "medic",
          "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": [
            {
              "id": "treat",
              "name": "Treatment",
              "enabled": true,
              "event": "manual",
              "scope": "nearby",
              "match": "all",
              "conditions": [],
              "actions": [
                {
                  "kind": "npc_control",
                  "target": "medic",
                  "operation": "heal",
                  "value": 40,
                  "cost": 2
                }
              ],
              "otherwise": [
                {
                  "kind": "message",
                  "value": "The requirements are not met yet."
                }
              ],
              "cooldown": 3,
              "maxUses": 0
            }
          ]
        },
        {
          "version": 1,
          "id": "nr_technician_profile",
          "name": "technician",
          "npcId": "technician",
          "enabled": true,
          "memory": [
            {
              "id": "repaired",
              "name": "Repair completed",
              "type": "boolean",
              "initial": false
            }
          ],
          "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": "nr_gatekeeper_profile",
          "name": "gatekeeper",
          "npcId": "gatekeeper",
          "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": [
            {
              "id": "passage",
              "name": "Grant passage",
              "enabled": true,
              "event": "manual",
              "scope": "nearby",
              "match": "any",
              "conditions": [
                {
                  "kind": "inventory",
                  "target": "harbor_pass",
                  "value": true,
                  "operator": "=="
                },
                {
                  "kind": "npc_trust",
                  "target": "gatekeeper",
                  "value": 100,
                  "operator": ">="
                }
              ],
              "actions": [
                {
                  "kind": "state",
                  "target": "harbor_gate_open",
                  "value": true
                },
                {
                  "kind": "message",
                  "value": "You may pass."
                },
                {
                  "kind": "goto",
                  "target": "shelter"
                }
              ],
              "otherwise": [
                {
                  "kind": "message",
                  "value": "The requirements are not met yet."
                }
              ],
              "cooldown": 0,
              "maxUses": 0
            }
          ]
        },
        {
          "version": 1,
          "id": "nr_civilian_profile",
          "name": "civilian",
          "npcId": "civilian",
          "enabled": true,
          "memory": [
            {
              "id": "rescued",
              "name": "Reached extraction",
              "type": "boolean",
              "initial": false
            }
          ],
          "traits": {
            "loyalty": 50,
            "fear": 0,
            "suspicion": 0
          },
          "life": {
            "maxHealth": 60,
            "initial": "active",
            "essential": false,
            "defeat": "downed",
            "retreatAtHealth": 0,
            "rescueRoomId": "pier"
          },
          "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": [
            {
              "id": "arrival",
              "name": "Record a living rescue",
              "enabled": true,
              "event": "rescue",
              "scope": "anywhere",
              "match": "all",
              "conditions": [],
              "actions": [
                {
                  "kind": "state",
                  "target": "nr_civilian_rescued",
                  "value": true
                },
                {
                  "kind": "npc_control",
                  "target": "civilian",
                  "operation": "remember",
                  "key": "rescued",
                  "value": true
                },
                {
                  "kind": "message",
                  "value": "The rescue is complete. We reached safety."
                }
              ],
              "otherwise": [
                {
                  "kind": "message",
                  "value": "The requirements are not met yet."
                }
              ],
              "cooldown": 0,
              "maxUses": 1
            }
          ]
        },
        {
          "version": 1,
          "id": "nr_harbor_master_profile",
          "name": "harbor master",
          "npcId": "harbor_master",
          "enabled": true,
          "memory": [
            {
              "id": "offered",
              "name": "Task offered",
              "type": "boolean",
              "initial": false
            },
            {
              "id": "delivered",
              "name": "Delivery accepted",
              "type": "boolean",
              "initial": false
            }
          ],
          "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": [
            {
              "id": "offer",
              "name": "Offer the delivery",
              "enabled": true,
              "event": "manual",
              "scope": "nearby",
              "match": "all",
              "conditions": [],
              "actions": [
                {
                  "kind": "state",
                  "target": "nr_harbor_master_accepted",
                  "value": true
                },
                {
                  "kind": "npc_control",
                  "target": "harbor_master",
                  "operation": "remember",
                  "key": "offered",
                  "value": true
                },
                {
                  "kind": "message",
                  "value": "Please bring me the requested item."
                }
              ],
              "otherwise": [
                {
                  "kind": "message",
                  "value": "The requirements are not met yet."
                }
              ],
              "cooldown": 0,
              "maxUses": 0
            }
          ]
        },
        {
          "version": 1,
          "id": "nr_sentinel_profile",
          "name": "sentinel",
          "npcId": "sentinel",
          "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": true,
            "sightRange": 0,
            "hearingRange": 0,
            "suspicionPerSight": 10,
            "suspicionPerNoise": 10,
            "threshold": 50,
            "investigate": true,
            "returnHome": true,
            "allowedRoomIds": [
              "gate",
              "square"
            ],
            "homeRoomId": "gate"
          },
          "abilities": []
        }
      ],
      "conversations": [
        {
          "id": "nr_guide_conversation",
          "name": "guide conversation",
          "enabled": true,
          "npcId": "guide",
          "startNodeId": "welcome",
          "nodes": [
            {
              "id": "welcome",
              "text": "I can offer a hint if you need one.",
              "actions": [],
              "choices": [
                {
                  "id": "hint",
                  "label": "Please give me a hint",
                  "conditions": [],
                  "match": "all",
                  "actions": [
                    {
                      "kind": "npc_control",
                      "target": "guide",
                      "operation": "hint",
                      "key": "nr_guide_hint"
                    }
                  ],
                  "once": false,
                  "unavailable": "disabled",
                  "next": "$end"
                },
                {
                  "id": "leave",
                  "label": "Goodbye",
                  "conditions": [],
                  "match": "all",
                  "actions": [],
                  "once": false,
                  "unavailable": "hidden",
                  "next": "$end"
                }
              ]
            }
          ]
        },
        {
          "id": "nr_merchant_conversation",
          "name": "merchant conversation",
          "enabled": true,
          "npcId": "merchant",
          "startNodeId": "welcome",
          "nodes": [
            {
              "id": "welcome",
              "text": "Choose a purchase or offer the selected trade item.",
              "actions": [],
              "choices": [
                {
                  "id": "buy",
                  "label": "Buy the stock item (3)",
                  "conditions": [],
                  "match": "all",
                  "actions": [
                    {
                      "kind": "npc_control",
                      "target": "merchant",
                      "operation": "buy",
                      "objectId": "fuse",
                      "value": 3
                    }
                  ],
                  "once": false,
                  "unavailable": "disabled",
                  "next": "$end"
                },
                {
                  "id": "sell",
                  "label": "Sell the selected item (0)",
                  "conditions": [],
                  "match": "all",
                  "actions": [
                    {
                      "kind": "npc_control",
                      "target": "merchant",
                      "operation": "sell",
                      "objectId": "fuse",
                      "value": 0
                    }
                  ],
                  "once": false,
                  "unavailable": "disabled",
                  "next": "$end"
                },
                {
                  "id": "leave",
                  "label": "Goodbye",
                  "conditions": [],
                  "match": "all",
                  "actions": [],
                  "once": false,
                  "unavailable": "hidden",
                  "next": "$end"
                }
              ]
            }
          ]
        },
        {
          "id": "nr_medic_conversation",
          "name": "medic conversation",
          "enabled": true,
          "npcId": "medic",
          "startNodeId": "welcome",
          "nodes": [
            {
              "id": "welcome",
              "text": "I can treat your injuries.",
              "actions": [],
              "choices": [
                {
                  "id": "treat",
                  "label": "Receive treatment (2)",
                  "conditions": [],
                  "match": "all",
                  "actions": [
                    {
                      "kind": "npc_control",
                      "target": "medic",
                      "operation": "ability",
                      "abilityId": "treat"
                    }
                  ],
                  "once": false,
                  "unavailable": "disabled",
                  "next": "$end"
                },
                {
                  "id": "leave",
                  "label": "Goodbye",
                  "conditions": [],
                  "match": "all",
                  "actions": [],
                  "once": false,
                  "unavailable": "hidden",
                  "next": "$end"
                }
              ]
            }
          ]
        },
        {
          "id": "nr_technician_conversation",
          "name": "technician conversation",
          "enabled": true,
          "npcId": "technician",
          "startNodeId": "welcome",
          "nodes": [
            {
              "id": "welcome",
              "text": "I can repair the selected device if you bring the right material and tool.",
              "actions": [],
              "choices": [
                {
                  "id": "instructions",
                  "label": "What do you need for the repair?",
                  "conditions": [],
                  "match": "all",
                  "actions": [
                    {
                      "kind": "message",
                      "value": "Use the repair material with the device while carrying the retained tool. The requirements are not met yet."
                    }
                  ],
                  "once": false,
                  "unavailable": "disabled",
                  "next": "$end"
                },
                {
                  "id": "leave",
                  "label": "Goodbye",
                  "conditions": [],
                  "match": "all",
                  "actions": [],
                  "once": false,
                  "unavailable": "hidden",
                  "next": "$end"
                }
              ]
            }
          ]
        },
        {
          "id": "nr_gatekeeper_conversation",
          "name": "gatekeeper conversation",
          "enabled": true,
          "npcId": "gatekeeper",
          "startNodeId": "welcome",
          "nodes": [
            {
              "id": "welcome",
              "text": "Show your pass or earn my trust before passing.",
              "actions": [],
              "choices": [
                {
                  "id": "pass",
                  "label": "Request passage",
                  "conditions": [],
                  "match": "all",
                  "actions": [
                    {
                      "kind": "npc_control",
                      "target": "gatekeeper",
                      "operation": "ability",
                      "abilityId": "passage"
                    }
                  ],
                  "once": false,
                  "unavailable": "disabled",
                  "next": "$end"
                },
                {
                  "id": "leave",
                  "label": "Goodbye",
                  "conditions": [],
                  "match": "all",
                  "actions": [],
                  "once": false,
                  "unavailable": "hidden",
                  "next": "$end"
                }
              ]
            }
          ]
        },
        {
          "id": "nr_civilian_conversation",
          "name": "civilian conversation",
          "enabled": true,
          "npcId": "civilian",
          "startNodeId": "welcome",
          "nodes": [
            {
              "id": "welcome",
              "text": "Please help me reach safety.",
              "actions": [],
              "choices": [
                {
                  "id": "follow",
                  "label": "Follow me to safety",
                  "conditions": [],
                  "match": "all",
                  "actions": [
                    {
                      "kind": "npc_control",
                      "target": "civilian",
                      "operation": "recruit"
                    }
                  ],
                  "once": false,
                  "unavailable": "disabled",
                  "next": "$end"
                },
                {
                  "id": "wait",
                  "label": "Wait here safely",
                  "conditions": [],
                  "match": "all",
                  "actions": [
                    {
                      "kind": "npc_control",
                      "target": "civilian",
                      "operation": "wait"
                    }
                  ],
                  "once": false,
                  "unavailable": "disabled",
                  "next": "$end"
                },
                {
                  "id": "leave",
                  "label": "Goodbye",
                  "conditions": [],
                  "match": "all",
                  "actions": [],
                  "once": false,
                  "unavailable": "hidden",
                  "next": "$end"
                }
              ]
            }
          ]
        },
        {
          "id": "nr_harbor_master_conversation",
          "name": "harbor master conversation",
          "enabled": true,
          "npcId": "harbor_master",
          "startNodeId": "welcome",
          "nodes": [
            {
              "id": "welcome",
              "text": "Please bring me the requested item.",
              "actions": [],
              "choices": [
                {
                  "id": "offer",
                  "label": "Tell me about the task",
                  "conditions": [],
                  "match": "all",
                  "actions": [
                    {
                      "kind": "npc_control",
                      "target": "harbor_master",
                      "operation": "ability",
                      "abilityId": "offer"
                    }
                  ],
                  "once": false,
                  "unavailable": "disabled",
                  "next": "$end"
                },
                {
                  "id": "leave",
                  "label": "Goodbye",
                  "conditions": [],
                  "match": "all",
                  "actions": [],
                  "once": false,
                  "unavailable": "hidden",
                  "next": "$end"
                }
              ]
            }
          ]
        },
        {
          "id": "nr_sentinel_conversation",
          "name": "sentinel conversation",
          "enabled": true,
          "npcId": "sentinel",
          "startNodeId": "welcome",
          "nodes": [
            {
              "id": "welcome",
              "text": "I am watching this area.",
              "actions": [],
              "choices": [
                {
                  "id": "status",
                  "label": "Ask about the patrol",
                  "conditions": [],
                  "match": "all",
                  "actions": [
                    {
                      "kind": "message",
                      "value": "I walk the connected route and investigate alerts in this area."
                    }
                  ],
                  "once": false,
                  "unavailable": "disabled",
                  "next": "$end"
                },
                {
                  "id": "leave",
                  "label": "Goodbye",
                  "conditions": [],
                  "match": "all",
                  "actions": [],
                  "once": false,
                  "unavailable": "hidden",
                  "next": "$end"
                }
              ]
            }
          ]
        }
      ],
      "routines": [
        {
          "id": "nr_sentinel_patrol",
          "name": "sentinel connected patrol",
          "enabled": true,
          "npcId": "sentinel",
          "activities": [
            {
              "id": "stop_1",
              "name": "Patrol stop 1",
              "enabled": true,
              "priority": 0,
              "conditions": [],
              "match": "all",
              "destinationId": "gate",
              "duration": 2,
              "actions": [],
              "completionActions": [],
              "nextActivityId": "stop_2",
              "once": false
            },
            {
              "id": "stop_2",
              "name": "Patrol stop 2",
              "enabled": true,
              "priority": 0,
              "conditions": [],
              "match": "all",
              "destinationId": "square",
              "duration": 2,
              "actions": [],
              "completionActions": [],
              "nextActivityId": "stop_1",
              "once": false
            }
          ]
        }
      ],
      "recipes": [
        {
          "id": "nr_technician_repair",
          "name": "technician repair",
          "enabled": true,
          "verbs": [
            "use"
          ],
          "unordered": true,
          "inputs": [
            {
              "objectId": "fuse",
              "disposition": "consume"
            }
          ],
          "tools": [
            "wrench"
          ],
          "target": {
            "kind": "object",
            "id": "supply_crate"
          },
          "roomId": "workshop",
          "match": "all",
          "conditions": [
            {
              "kind": "npc_available",
              "target": "technician",
              "value": true,
              "operator": "=="
            }
          ],
          "actions": [
            {
              "kind": "script",
              "target": "nr_technician_repair"
            },
            {
              "kind": "npc_control",
              "target": "technician",
              "operation": "remember",
              "key": "repaired",
              "value": true
            }
          ],
          "once": true,
          "success": "",
          "failure": "The requirements are not met yet.",
          "repeat": "That has already been completed."
        },
        {
          "id": "nr_harbor_master_handover",
          "name": "harbor master accepted delivery",
          "enabled": true,
          "verbs": [
            "give"
          ],
          "unordered": true,
          "inputs": [
            {
              "objectId": "sealed_dispatch",
              "disposition": "transfer"
            }
          ],
          "tools": [],
          "target": {
            "kind": "npc",
            "id": "harbor_master"
          },
          "match": "all",
          "conditions": [
            {
              "kind": "state",
              "target": "nr_harbor_master_accepted",
              "value": true,
              "operator": "=="
            },
            {
              "kind": "state",
              "target": "nr_technician_repaired",
              "operator": "==",
              "value": true
            },
            {
              "kind": "state",
              "target": "nr_civilian_rescued",
              "operator": "==",
              "value": true
            }
          ],
          "actions": [
            {
              "kind": "state",
              "target": "nr_harbor_master_delivered",
              "value": true
            },
            {
              "kind": "npc_control",
              "target": "harbor_master",
              "operation": "remember",
              "key": "delivered",
              "value": true
            }
          ],
          "once": true,
          "success": "The delivery is accepted. Thank you.",
          "failure": "Repair the supply crate and bring the living civilian to the pier before handing over the real sealed dispatch. No item or payment is consumed by this refusal.",
          "repeat": "That has already been completed."
        }
      ],
      "quests": [
        {
          "id": "nr_civilian_quest",
          "name": "Rescue civilian",
          "enabled": true,
          "description": "Bring civilian safely to extraction.",
          "stages": [
            {
              "id": "arrived",
              "name": "Arrive alive at extraction",
              "description": "Arrive alive at extraction",
              "prerequisites": [],
              "optional": false,
              "automatic": true,
              "conditions": [
                {
                  "kind": "state",
                  "target": "nr_civilian_rescued",
                  "value": true,
                  "operator": "=="
                }
              ],
              "match": "all",
              "completionText": "Arrive alive at extraction",
              "actions": []
            }
          ],
          "completionText": "The rescue is complete. We reached safety.",
          "completionActions": [
            {
              "kind": "score",
              "value": 0
            },
            {
              "kind": "money",
              "value": 0
            }
          ]
        },
        {
          "id": "nr_harbor_master_quest",
          "name": "Harbor service and safe arrival",
          "enabled": true,
          "description": "Repair the crate, bring the civilian safely to the pier, and make one accepted dispatch delivery.",
          "stages": [
            {
              "id": "accepted",
              "name": "Accept the delivery task",
              "description": "Accept the delivery task",
              "prerequisites": [],
              "optional": false,
              "automatic": true,
              "conditions": [
                {
                  "kind": "state",
                  "target": "nr_harbor_master_accepted",
                  "value": true,
                  "operator": "=="
                }
              ],
              "match": "all",
              "completionText": "Accept the delivery task",
              "actions": []
            },
            {
              "id": "delivered",
              "name": "Deliver the real item",
              "description": "Deliver the real item",
              "prerequisites": [
                "accepted"
              ],
              "optional": false,
              "automatic": true,
              "conditions": [
                {
                  "kind": "state",
                  "target": "nr_harbor_master_delivered",
                  "value": true,
                  "operator": "=="
                }
              ],
              "match": "all",
              "completionText": "Deliver the real item",
              "actions": []
            }
          ],
          "completionText": "Harbor Helpers service complete! Real stock, a retained tool, a repaired crate, a checked pass, a living escort and the accepted dispatch agree. You earn 100 points and five harbor coins.",
          "completionActions": [
            {
              "kind": "score",
              "value": 100
            },
            {
              "kind": "money",
              "value": 5
            },
            {
              "kind": "end"
            }
          ]
        }
      ],
      "hints": [
        {
          "id": "nr_guide_hint",
          "name": "guide hints",
          "enabled": true,
          "scope": {
            "kind": "room",
            "target": "square"
          },
          "priority": 0,
          "conditions": [],
          "match": "all",
          "completedConditions": [],
          "completedMatch": "all",
          "completedText": "You have already completed this task.",
          "levels": [
            {
              "level": "gentle",
              "text": "The merchant has the repair material, and the wrench stays with you.",
              "conditions": [],
              "match": "all"
            },
            {
              "level": "strong",
              "text": "Buy the fuse, use it with the supply crate in the eastern workshop, then open the crate for the harbor pass.",
              "conditions": [],
              "match": "all"
            },
            {
              "level": "solution",
              "text": "Follow the BRIEFING route: repair the crate, accept the harbor master’s task, pass the gate, recruit the civilian, and make the accepted dispatch delivery.",
              "conditions": [],
              "match": "all"
            }
          ]
        }
      ],
      "scriptFunctions": [
        {
          "version": 1,
          "id": "nr_technician_repair",
          "name": "Complete native repair",
          "description": "Owned by NPC technician.",
          "inputs": [],
          "locals": [],
          "resultType": "void",
          "mode": "visual",
          "steps": [
            {
              "id": "unlock",
              "kind": "action",
              "action": {
                "kind": "object_state",
                "target": "supply_crate",
                "property": "locked",
                "value": false
              }
            },
            {
              "id": "confirm",
              "kind": "action",
              "action": {
                "kind": "state",
                "target": "nr_technician_repaired",
                "value": true
              }
            },
            {
              "id": "message",
              "kind": "action",
              "action": {
                "kind": "message",
                "value": "The device is repaired."
              }
            }
          ]
        }
      ]
    }
  },
  "playerConfig": {
    "scoreEnabled": true,
    "healthEnabled": true,
    "startingHealth": 100,
    "moneyEnabled": true,
    "startingMoney": 10,
    "currencyName": "harbor coins"
  },
  "files": [
    {
      "path": "scripts/game_start.taml",
      "content": "script on_game_start\ngoto: square\ndamage: 40\nend"
    },
    {
      "path": "scripts/on_turn_end.taml",
      "content": "script on_turn_end\n\nend"
    },
    {
      "path": "scripts/nr_technician_repair.taml",
      "content": "script nr_technician_repair\n# Native visual steps are stored in the callable definition.\nend"
    },
    {
      "path": "rooms/square.taml",
      "content": "room square\n name: \"Harbor Square\"\n narrative: \"A safe harbor workshop demonstrates editable NPC roles. READ BRIEFING for the complete route. The guide, merchant and medic work here. There is no hostile combat or time limit.\"\n description: \"The workshop is EAST, the gate NORTH and the pier SOUTH. The merchant owns one replacement fuse; the wrench and briefing are here.\"\n hint: \"TALK MERCHANT, choose 1, TAKE WRENCH, then EAST. READ BRIEFING gives every step.\"\n exit east: workshop\n exit north: gate\n exit south: pier\nend"
    },
    {
      "path": "rooms/workshop.taml",
      "content": "room workshop\n name: \"Repair Workshop\"\n description: \"The technician waits beside the locked supply crate. The square is WEST.\"\n hint: \"Carry the fuse and wrench, USE FUSE WITH SUPPLY CRATE, OPEN SUPPLY CRATE, TAKE HARBOR PASS, then WEST.\"\n exit west: square\nend"
    },
    {
      "path": "rooms/gate.taml",
      "content": "room gate\n name: \"Harbor Gate\"\n description: \"The gatekeeper checks a real harbor pass before admitting visitors to the shelter. The square is SOUTH.\"\n hint: \"Carry the harbor pass. TALK GATEKEEPER and choose 1. The pass is retained.\"\n exit south: square\n exit north: shelter when: harbor_gate_open\n blocked north: \"The gatekeeper has not admitted you. Repair the supply crate, collect its pass, then TALK GATEKEEPER.\"\nend"
    },
    {
      "path": "rooms/shelter.taml",
      "content": "room shelter\n name: \"Shelter\"\n description: \"The civilian needs a safe escort to the pier. One sealed dispatch waits here. The gate is SOUTH.\"\n hint: \"TAKE SEALED DISPATCH, TALK CIVILIAN and choose 1. SOUTH, SOUTH, SOUTH reaches the pier.\"\n exit south: gate\nend"
    },
    {
      "path": "rooms/pier.taml",
      "content": "room pier\n name: \"Harbor Pier\"\n description: \"The harbor master accepts the dispatch only after the repair and living rescue agree. The square is NORTH.\"\n hint: \"TALK HARBOR MASTER and choose 1 to accept the task. Bring the recruited civilian here, then GIVE SEALED DISPATCH TO HARBOR MASTER.\"\n exit north: square\nend"
    },
    {
      "path": "objects/briefing.taml",
      "content": "object briefing\n  name: \"briefing\"\n  description: \"HARBOR HELPERS: At the square, TALK GUIDE and choose 1 for a real progressive hint. TALK MEDIC and choose 1 for optional treatment costing two harbor coins. TALK MERCHANT and choose 1 to buy the one physical fuse for three coins. TAKE WRENCH, EAST, USE FUSE WITH SUPPLY CRATE, OPEN SUPPLY CRATE and TAKE HARBOR PASS. Go WEST, SOUTH, TALK HARBOR MASTER and choose 1 to accept the delivery and rescue task. Return NORTH, NORTH, TALK GATEKEEPER and choose 1 to use the retained pass. In the shelter TAKE SEALED DISPATCH, TALK CIVILIAN and choose 1 to recruit the escort. Go SOUTH, SOUTH, SOUTH to the pier and GIVE SEALED DISPATCH TO HARBOR MASTER. The living civilian must actually arrive and the repair must succeed before that handover can finish the Quest. Final reward: 100 points and five harbor coins. There is no hostile combat or time limit. SAVE, LOAD and UNDO are available. The sentinel demonstrates a connected routine without threatening anyone.\"\n  location: square\n  aliases: [\"instructions\", \"note\"]\n  droppable: false\n  weight: 0.1\n  on read:\n    print \"HARBOR HELPERS: At the square, TALK GUIDE and choose 1 for a real progressive hint. TALK MEDIC and choose 1 for optional treatment costing two harbor coins. TALK MERCHANT and choose 1 to buy the one physical fuse for three coins. TAKE WRENCH, EAST, USE FUSE WITH SUPPLY CRATE, OPEN SUPPLY CRATE and TAKE HARBOR PASS. Go WEST, SOUTH, TALK HARBOR MASTER and choose 1 to accept the delivery and rescue task. Return NORTH, NORTH, TALK GATEKEEPER and choose 1 to use the retained pass. In the shelter TAKE SEALED DISPATCH, TALK CIVILIAN and choose 1 to recruit the escort. Go SOUTH, SOUTH, SOUTH to the pier and GIVE SEALED DISPATCH TO HARBOR MASTER. The living civilian must actually arrive and the repair must succeed before that handover can finish the Quest. Final reward: 100 points and five harbor coins. There is no hostile combat or time limit. SAVE, LOAD and UNDO are available. The sentinel demonstrates a connected routine without threatening anyone.\"\n  end\nend"
    },
    {
      "path": "objects/fuse.taml",
      "content": "object fuse\n  name: \"fuse\"\n  description: \"One physical replacement fuse held in the merchant’s finite stock. Buy it through TALK MERCHANT, then use it with the supply crate while carrying the wrench.\"\n  aliases: [\"replacement fuse\"]\n  takeable: true\n  use_give: true\n  weight: 0.1\nend"
    },
    {
      "path": "objects/wrench.taml",
      "content": "object wrench\n  name: \"wrench\"\n  description: \"A retained repair tool. The technician needs it, but the repair does not consume it.\"\n  location: square\n  aliases: [\"tool\", \"spanner\"]\n  takeable: true\n  weight: 0.1\nend"
    },
    {
      "path": "objects/supply_crate.taml",
      "content": "object supply_crate\n  name: \"supply crate\"\n  description: \"An electrically latched supply crate. USE FUSE WITH SUPPLY CRATE while carrying the wrench and while the technician is present.\"\n  contents_v1: \"{\\\"version\\\":1,\\\"kind\\\":\\\"container\\\",\\\"open\\\":false,\\\"locked\\\":true}\"\n  location: workshop\n  aliases: [\"crate\", \"device\"]\n  droppable: false\n  use_give: true\n  container: true\n  locked: true\n  weight: 0.1\nend"
    },
    {
      "path": "objects/harbor_pass.taml",
      "content": "object harbor_pass\n  name: \"harbor pass\"\n  description: \"A physical harbor pass inside the repaired crate. The gatekeeper checks that you really carry it and retains it during passage.\"\n  contents_v1: \"{\\\"version\\\":1,\\\"placement\\\":{\\\"parentId\\\":\\\"supply_crate\\\",\\\"relation\\\":\\\"inside\\\"}}\"\n  aliases: [\"pass\", \"permit\"]\n  takeable: true\n  weight: 0.1\nend"
    },
    {
      "path": "objects/sealed_dispatch.taml",
      "content": "object sealed_dispatch\n  name: \"sealed dispatch\"\n  description: \"One sealed dispatch requested by the harbor master. Its pickup alone does not prove delivery or rescue.\"\n  location: shelter\n  aliases: [\"dispatch\", \"parcel\"]\n  takeable: true\n  use_give: true\n  weight: 0.1\nend"
    },
    {
      "path": "objects/wooden_token.taml",
      "content": "object wooden_token\n  name: \"wooden token\"\n  description: \"A harmless wrong item for testing rejected handovers. It does not qualify as the dispatch.\"\n  location: square\n  aliases: [\"wrong parcel\", \"token\"]\n  takeable: true\n  use_give: true\n  weight: 0.1\n  on give with: harbor_master kind: \"npc\":\n    print \"The harbor master refuses the wooden token. Only the sealed dispatch qualifies; you keep the token.\"\n  end\nend"
    },
    {
      "path": "npcs/guide.taml",
      "content": "npc guide\n  name: \"guide\"\n  description: \"Give saved, progressive hints and respond to real task progress.\"\n  location: square\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\n  on talk:\n    print \"I can offer a hint if you need one.\"\n  end\nend"
    },
    {
      "path": "npcs/merchant.taml",
      "content": "npc merchant\n  name: \"merchant\"\n  description: \"Trade finite physical stock with checked prices and actual item ownership.\"\n  location: square\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\n  on talk:\n    print \"Choose a purchase or offer the selected trade item.\"\n  end\nend"
    },
    {
      "path": "npcs/medic.taml",
      "content": "npc medic\n  name: \"medic\"\n  description: \"Restore bounded player health after checking payment and a saved cooldown.\"\n  location: square\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\n  on talk:\n    print \"I can treat your injuries.\"\n  end\nend"
    },
    {
      "path": "npcs/technician.taml",
      "content": "npc technician\n  name: \"technician\"\n  description: \"Repair a real target using a consumed material and retained tool.\"\n  location: workshop\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\n  on talk:\n    print \"I can repair the selected device if you bring the right material and tool.\"\n  end\nend"
    },
    {
      "path": "npcs/gatekeeper.taml",
      "content": "npc gatekeeper\n  name: \"gatekeeper\"\n  description: \"Grant a chosen route through a real key check or earned trust.\"\n  location: gate\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\n  on talk:\n    print \"Show your pass or earn my trust before passing.\"\n  end\nend"
    },
    {
      "path": "npcs/civilian.taml",
      "content": "npc civilian\n  name: \"civilian\"\n  description: \"Recruit an escort, wait safely and prove a living arrival at the chosen extraction room.\"\n  location: shelter\n  mobile: true\n  follow: false\n  health: 60\n  combat_side: neutral\n  auto_fight: false\n  attack_power: 10\n  defense: 0\n  trust: 50\n  on talk:\n    print \"Please help me reach safety.\"\n  end\nend"
    },
    {
      "path": "npcs/harbor_master.taml",
      "content": "npc harbor_master\n  name: \"harbor master\"\n  description: \"Offer a delivery task, accept its actual item and award a native Quest reward once.\"\n  location: pier\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\n  on talk:\n    print \"Please bring me the requested item.\"\n  end\nend"
    },
    {
      "path": "npcs/sentinel.taml",
      "content": "npc sentinel\n  name: \"sentinel\"\n  description: \"Walk a native connected route, pause for interactions and investigate nearby alerts.\"\n  location: gate\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  on talk:\n    print \"I am watching this area.\"\n  end\nend"
    }
  ],
  "objects": [
    {
      "id": "briefing",
      "name": "briefing",
      "description": "HARBOR HELPERS: At the square, TALK GUIDE and choose 1 for a real progressive hint. TALK MEDIC and choose 1 for optional treatment costing two harbor coins. TALK MERCHANT and choose 1 to buy the one physical fuse for three coins. TAKE WRENCH, EAST, USE FUSE WITH SUPPLY CRATE, OPEN SUPPLY CRATE and TAKE HARBOR PASS. Go WEST, SOUTH, TALK HARBOR MASTER and choose 1 to accept the delivery and rescue task. Return NORTH, NORTH, TALK GATEKEEPER and choose 1 to use the retained pass. In the shelter TAKE SEALED DISPATCH, TALK CIVILIAN and choose 1 to recruit the escort. Go SOUTH, SOUTH, SOUTH to the pier and GIVE SEALED DISPATCH TO HARBOR MASTER. The living civilian must actually arrive and the repair must succeed before that handover can finish the Quest. Final reward: 100 points and five harbor coins. There is no hostile combat or time limit. SAVE, LOAD and UNDO are available. The sentinel demonstrates a connected routine without threatening anyone.",
      "article": "",
      "location": "square",
      "aliases": [
        "instructions",
        "note"
      ],
      "visible": true,
      "takeable": false,
      "droppable": false,
      "useGive": false,
      "container": false,
      "switchable": false,
      "edible": false,
      "drinkable": false,
      "wearable": false,
      "weapon": false,
      "weight": 0.1,
      "locked": false,
      "lockKey": "",
      "events": [
        {
          "id": "read",
          "event": "read",
          "withTarget": "",
          "body": "print \"HARBOR HELPERS: At the square, TALK GUIDE and choose 1 for a real progressive hint. TALK MEDIC and choose 1 for optional treatment costing two harbor coins. TALK MERCHANT and choose 1 to buy the one physical fuse for three coins. TAKE WRENCH, EAST, USE FUSE WITH SUPPLY CRATE, OPEN SUPPLY CRATE and TAKE HARBOR PASS. Go WEST, SOUTH, TALK HARBOR MASTER and choose 1 to accept the delivery and rescue task. Return NORTH, NORTH, TALK GATEKEEPER and choose 1 to use the retained pass. In the shelter TAKE SEALED DISPATCH, TALK CIVILIAN and choose 1 to recruit the escort. Go SOUTH, SOUTH, SOUTH to the pier and GIVE SEALED DISPATCH TO HARBOR MASTER. The living civilian must actually arrive and the repair must succeed before that handover can finish the Quest. Final reward: 100 points and five harbor coins. There is no hostile combat or time limit. SAVE, LOAD and UNDO are available. The sentinel demonstrates a connected routine without threatening anyone.\""
        }
      ]
    },
    {
      "id": "fuse",
      "name": "fuse",
      "description": "One physical replacement fuse held in the merchant’s finite stock. Buy it through TALK MERCHANT, then use it with the supply crate while carrying the wrench.",
      "article": "",
      "location": "nowhere",
      "aliases": [
        "replacement fuse"
      ],
      "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": "wrench",
      "name": "wrench",
      "description": "A retained repair tool. The technician needs it, but the repair does not consume it.",
      "article": "",
      "location": "square",
      "aliases": [
        "tool",
        "spanner"
      ],
      "visible": true,
      "takeable": true,
      "droppable": true,
      "useGive": false,
      "container": false,
      "switchable": false,
      "edible": false,
      "drinkable": false,
      "wearable": false,
      "weapon": false,
      "weight": 0.1,
      "locked": false,
      "lockKey": "",
      "events": []
    },
    {
      "id": "supply_crate",
      "name": "supply crate",
      "description": "An electrically latched supply crate. USE FUSE WITH SUPPLY CRATE while carrying the wrench and while the technician is present.",
      "article": "",
      "location": "workshop",
      "aliases": [
        "crate",
        "device"
      ],
      "visible": true,
      "takeable": false,
      "droppable": false,
      "useGive": true,
      "container": true,
      "switchable": false,
      "edible": false,
      "drinkable": false,
      "wearable": false,
      "weapon": false,
      "weight": 0.1,
      "locked": true,
      "lockKey": "",
      "events": [],
      "contents": {
        "version": 1,
        "kind": "container",
        "open": false,
        "locked": true
      }
    },
    {
      "id": "harbor_pass",
      "name": "harbor pass",
      "description": "A physical harbor pass inside the repaired crate. The gatekeeper checks that you really carry it and retains it during passage.",
      "article": "",
      "location": "nowhere",
      "aliases": [
        "pass",
        "permit"
      ],
      "visible": true,
      "takeable": true,
      "droppable": true,
      "useGive": false,
      "container": false,
      "switchable": false,
      "edible": false,
      "drinkable": false,
      "wearable": false,
      "weapon": false,
      "weight": 0.1,
      "locked": false,
      "lockKey": "",
      "events": [],
      "contents": {
        "version": 1,
        "placement": {
          "parentId": "supply_crate",
          "relation": "inside"
        }
      }
    },
    {
      "id": "sealed_dispatch",
      "name": "sealed dispatch",
      "description": "One sealed dispatch requested by the harbor master. Its pickup alone does not prove delivery or rescue.",
      "article": "",
      "location": "shelter",
      "aliases": [
        "dispatch",
        "parcel"
      ],
      "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": "wooden_token",
      "name": "wooden token",
      "description": "A harmless wrong item for testing rejected handovers. It does not qualify as the dispatch.",
      "article": "",
      "location": "square",
      "aliases": [
        "wrong parcel",
        "token"
      ],
      "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": "wrong_handover",
          "event": "give",
          "withTarget": "harbor_master",
          "withTargetKind": "npc",
          "body": "print \"The harbor master refuses the wooden token. Only the sealed dispatch qualifies; you keep the token.\""
        }
      ]
    }
  ],
  "npcs": [
    {
      "id": "guide",
      "name": "guide",
      "description": "Give saved, progressive hints and respond to real task progress.",
      "location": "square",
      "mobile": false,
      "aliases": [],
      "onEnter": "",
      "onExamine": "",
      "onTalk": "print \"I can offer a hint if you need one.\"",
      "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": [],
      "npcPackage": {
        "version": 1,
        "id": "guide",
        "roleId": "guide",
        "definition": {
          "version": 1,
          "id": "guide",
          "roleId": "guide",
          "name": "guide",
          "description": "Give saved, progressive hints and respond to real task progress.",
          "enabled": true,
          "inputs": [
            {
              "id": "home",
              "name": "Starting room",
              "kind": "room",
              "value": "square",
              "required": true
            },
            {
              "id": "completed",
              "name": "Boolean task-completed state (optional)",
              "kind": "state",
              "value": "",
              "required": false
            },
            {
              "id": "gentle",
              "name": "Gentle hint",
              "kind": "text",
              "value": "The merchant has the repair material, and the wrench stays with you.",
              "required": true
            },
            {
              "id": "strong",
              "name": "Stronger hint",
              "kind": "text",
              "value": "Buy the fuse, use it with the supply crate in the eastern workshop, then open the crate for the harbor pass.",
              "required": true
            },
            {
              "id": "solution",
              "name": "Solution hint",
              "kind": "text",
              "value": "Follow the BRIEFING route: repair the crate, accept the harbor master’s task, pass the gate, recruit the civilian, and make the accepted dispatch delivery.",
              "required": true
            }
          ],
          "messages": {
            "greeting": "I can offer a hint if you need one.",
            "success": "The interaction succeeds.",
            "failure": "The requirements are not met yet.",
            "repeat": "You have already completed this task."
          }
        },
        "owned": {
          "states": [],
          "rules": [],
          "scripts": [],
          "npcProfiles": [
            "nr_guide_profile"
          ],
          "npcFactions": [],
          "conversations": [
            "nr_guide_conversation"
          ],
          "routines": [],
          "recipes": [],
          "quests": [],
          "hints": [
            "nr_guide_hint"
          ],
          "scriptFunctions": [],
          "mechanics": []
        },
        "baseline": {
          "version": 1,
          "npc": {
            "id": "guide",
            "name": "guide",
            "description": "Give saved, progressive hints and respond to real task progress.",
            "location": "square",
            "mobile": false,
            "aliases": [],
            "onEnter": "",
            "onExamine": "",
            "onTalk": "print \"I can offer a hint if you need one.\"",
            "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": []
          },
          "story": {
            "version": 1,
            "states": [],
            "rules": [],
            "features": {
              "version": 1,
              "npcProfiles": [
                {
                  "version": 1,
                  "id": "nr_guide_profile",
                  "name": "guide",
                  "npcId": "guide",
                  "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": []
                }
              ],
              "npcFactions": [],
              "conversations": [
                {
                  "id": "nr_guide_conversation",
                  "name": "guide conversation",
                  "enabled": true,
                  "npcId": "guide",
                  "startNodeId": "welcome",
                  "nodes": [
                    {
                      "id": "welcome",
                      "text": "I can offer a hint if you need one.",
                      "actions": [],
                      "choices": [
                        {
                          "id": "hint",
                          "label": "Please give me a hint",
                          "conditions": [],
                          "match": "all",
                          "actions": [
                            {
                              "kind": "npc_control",
                              "target": "guide",
                              "operation": "hint",
                              "key": "nr_guide_hint"
                            }
                          ],
                          "once": false,
                          "unavailable": "disabled",
                          "next": "$end"
                        },
                        {
                          "id": "leave",
                          "label": "Goodbye",
                          "conditions": [],
                          "match": "all",
                          "actions": [],
                          "once": false,
                          "unavailable": "hidden",
                          "next": "$end"
                        }
                      ]
                    }
                  ]
                }
              ],
              "routines": [],
              "recipes": [],
              "quests": [],
              "hints": [
                {
                  "id": "nr_guide_hint",
                  "name": "guide hints",
                  "enabled": true,
                  "scope": {
                    "kind": "room",
                    "target": "square"
                  },
                  "priority": 0,
                  "conditions": [],
                  "match": "all",
                  "completedConditions": [],
                  "completedMatch": "all",
                  "completedText": "You have already completed this task.",
                  "levels": [
                    {
                      "level": "gentle",
                      "text": "The merchant has the repair material, and the wrench stays with you.",
                      "conditions": [],
                      "match": "all"
                    },
                    {
                      "level": "strong",
                      "text": "Buy the fuse, use it with the supply crate in the eastern workshop, then open the crate for the harbor pass.",
                      "conditions": [],
                      "match": "all"
                    },
                    {
                      "level": "solution",
                      "text": "Follow the BRIEFING route: repair the crate, accept the harbor master’s task, pass the gate, recruit the civilian, and make the accepted dispatch delivery.",
                      "conditions": [],
                      "match": "all"
                    }
                  ]
                }
              ],
              "scriptFunctions": [],
              "mechanics": []
            }
          },
          "scripts": [],
          "dependencies": [
            {
              "kind": "room",
              "id": "square",
              "name": "Starting room",
              "purpose": "Starting room"
            }
          ],
          "notes": [
            "Choose the starting room and write the gentle, stronger and solution hints.",
            "Optionally select a Boolean Story state that proves the task is finished.",
            "TALK opens the guide; its hint choice and HINT advance the same saved native tiers. Each guide selects its own native hint even when guides share a room.",
            "Test: TALK guide",
            "Test: HINT"
          ],
          "roleId": "guide",
          "definition": {
            "version": 1,
            "id": "guide",
            "roleId": "guide",
            "name": "guide",
            "description": "Give saved, progressive hints and respond to real task progress.",
            "enabled": true,
            "inputs": [
              {
                "id": "home",
                "name": "Starting room",
                "kind": "room",
                "value": "square",
                "required": true
              },
              {
                "id": "completed",
                "name": "Boolean task-completed state (optional)",
                "kind": "state",
                "value": "",
                "required": false
              },
              {
                "id": "gentle",
                "name": "Gentle hint",
                "kind": "text",
                "value": "The merchant has the repair material, and the wrench stays with you.",
                "required": true
              },
              {
                "id": "strong",
                "name": "Stronger hint",
                "kind": "text",
                "value": "Buy the fuse, use it with the supply crate in the eastern workshop, then open the crate for the harbor pass.",
                "required": true
              },
              {
                "id": "solution",
                "name": "Solution hint",
                "kind": "text",
                "value": "Follow the BRIEFING route: repair the crate, accept the harbor master’s task, pass the gate, recruit the civilian, and make the accepted dispatch delivery.",
                "required": true
              }
            ],
            "messages": {
              "greeting": "I can offer a hint if you need one.",
              "success": "The interaction succeeds.",
              "failure": "The requirements are not met yet.",
              "repeat": "You have already completed this task."
            }
          }
        }
      }
    },
    {
      "id": "merchant",
      "name": "merchant",
      "description": "Trade finite physical stock with checked prices and actual item ownership.",
      "location": "square",
      "mobile": false,
      "aliases": [],
      "onEnter": "",
      "onExamine": "",
      "onTalk": "print \"Choose a purchase or offer the selected trade item.\"",
      "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": [],
      "npcPackage": {
        "version": 1,
        "id": "merchant",
        "roleId": "merchant",
        "definition": {
          "version": 1,
          "id": "merchant",
          "roleId": "merchant",
          "name": "merchant",
          "description": "Trade finite physical stock with checked prices and actual item ownership.",
          "enabled": true,
          "inputs": [
            {
              "id": "home",
              "name": "Starting room",
              "kind": "room",
              "value": "square",
              "required": true
            },
            {
              "id": "stockItem",
              "name": "Initially unplaced stock object",
              "kind": "object",
              "value": "fuse",
              "required": true
            },
            {
              "id": "price",
              "name": "Purchase price",
              "kind": "number",
              "value": 3,
              "required": true,
              "min": 0,
              "max": 1000000
            },
            {
              "id": "payout",
              "name": "Resale payout",
              "kind": "number",
              "value": 0,
              "required": true,
              "min": 0,
              "max": 1000000
            }
          ],
          "messages": {
            "greeting": "Choose a purchase or offer the selected trade item.",
            "success": "The trade is complete.",
            "failure": "The requirements are not met yet.",
            "repeat": "That stock is not available."
          }
        },
        "owned": {
          "states": [],
          "rules": [],
          "scripts": [],
          "npcProfiles": [
            "nr_merchant_profile"
          ],
          "npcFactions": [],
          "conversations": [
            "nr_merchant_conversation"
          ],
          "routines": [],
          "recipes": [],
          "quests": [],
          "hints": [],
          "scriptFunctions": [],
          "mechanics": []
        },
        "baseline": {
          "version": 1,
          "npc": {
            "id": "merchant",
            "name": "merchant",
            "description": "Trade finite physical stock with checked prices and actual item ownership.",
            "location": "square",
            "mobile": false,
            "aliases": [],
            "onEnter": "",
            "onExamine": "",
            "onTalk": "print \"Choose a purchase or offer the selected trade item.\"",
            "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": []
          },
          "story": {
            "version": 1,
            "states": [],
            "rules": [],
            "features": {
              "version": 1,
              "npcProfiles": [
                {
                  "version": 1,
                  "id": "nr_merchant_profile",
                  "name": "merchant",
                  "npcId": "merchant",
                  "enabled": true,
                  "memory": [],
                  "traits": {
                    "loyalty": 50,
                    "fear": 0,
                    "suspicion": 0
                  },
                  "life": {
                    "maxHealth": 100,
                    "initial": "active",
                    "essential": false,
                    "defeat": "dead",
                    "retreatAtHealth": 0
                  },
                  "inventory": {
                    "objects": [
                      "fuse"
                    ],
                    "equipped": [],
                    "equipment": [],
                    "money": 100,
                    "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": []
                }
              ],
              "npcFactions": [],
              "conversations": [
                {
                  "id": "nr_merchant_conversation",
                  "name": "merchant conversation",
                  "enabled": true,
                  "npcId": "merchant",
                  "startNodeId": "welcome",
                  "nodes": [
                    {
                      "id": "welcome",
                      "text": "Choose a purchase or offer the selected trade item.",
                      "actions": [],
                      "choices": [
                        {
                          "id": "buy",
                          "label": "Buy the stock item (3)",
                          "conditions": [],
                          "match": "all",
                          "actions": [
                            {
                              "kind": "npc_control",
                              "target": "merchant",
                              "operation": "buy",
                              "objectId": "fuse",
                              "value": 3
                            }
                          ],
                          "once": false,
                          "unavailable": "disabled",
                          "next": "$end"
                        },
                        {
                          "id": "sell",
                          "label": "Sell the selected item (0)",
                          "conditions": [],
                          "match": "all",
                          "actions": [
                            {
                              "kind": "npc_control",
                              "target": "merchant",
                              "operation": "sell",
                              "objectId": "fuse",
                              "value": 0
                            }
                          ],
                          "once": false,
                          "unavailable": "disabled",
                          "next": "$end"
                        },
                        {
                          "id": "leave",
                          "label": "Goodbye",
                          "conditions": [],
                          "match": "all",
                          "actions": [],
                          "once": false,
                          "unavailable": "hidden",
                          "next": "$end"
                        }
                      ]
                    }
                  ]
                }
              ],
              "routines": [],
              "recipes": [],
              "quests": [],
              "hints": [],
              "scriptFunctions": [],
              "mechanics": []
            }
          },
          "scripts": [],
          "dependencies": [
            {
              "kind": "room",
              "id": "square",
              "name": "Starting room",
              "purpose": "Starting room"
            },
            {
              "kind": "object",
              "id": "fuse",
              "name": "Initially unplaced stock object",
              "purpose": "Initially unplaced stock object"
            }
          ],
          "notes": [
            "Choose one initially unplaced stock object and a purchase price.",
            "Configure a resale payout at or below the purchase price to avoid an accidental money loop.",
            "The shop owns one real stock object. A purchase requires stock, funds and inventory space before anything changes. Resale pays from the finite NPC wallet.",
            "Test: TALK merchant",
            "Test: Choose Buy or Sell"
          ],
          "roleId": "merchant",
          "definition": {
            "version": 1,
            "id": "merchant",
            "roleId": "merchant",
            "name": "merchant",
            "description": "Trade finite physical stock with checked prices and actual item ownership.",
            "enabled": true,
            "inputs": [
              {
                "id": "home",
                "name": "Starting room",
                "kind": "room",
                "value": "square",
                "required": true
              },
              {
                "id": "stockItem",
                "name": "Initially unplaced stock object",
                "kind": "object",
                "value": "fuse",
                "required": true
              },
              {
                "id": "price",
                "name": "Purchase price",
                "kind": "number",
                "value": 3,
                "required": true,
                "min": 0,
                "max": 1000000
              },
              {
                "id": "payout",
                "name": "Resale payout",
                "kind": "number",
                "value": 0,
                "required": true,
                "min": 0,
                "max": 1000000
              }
            ],
            "messages": {
              "greeting": "Choose a purchase or offer the selected trade item.",
              "success": "The trade is complete.",
              "failure": "The requirements are not met yet.",
              "repeat": "That stock is not available."
            }
          }
        }
      }
    },
    {
      "id": "medic",
      "name": "medic",
      "description": "Restore bounded player health after checking payment and a saved cooldown.",
      "location": "square",
      "mobile": false,
      "aliases": [],
      "onEnter": "",
      "onExamine": "",
      "onTalk": "print \"I can treat your injuries.\"",
      "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": [],
      "npcPackage": {
        "version": 1,
        "id": "medic",
        "roleId": "healer",
        "definition": {
          "version": 1,
          "id": "medic",
          "roleId": "healer",
          "name": "medic",
          "description": "Restore bounded player health after checking payment and a saved cooldown.",
          "enabled": true,
          "inputs": [
            {
              "id": "home",
              "name": "Starting room",
              "kind": "room",
              "value": "square",
              "required": true
            },
            {
              "id": "healing",
              "name": "Health restored",
              "kind": "number",
              "value": 40,
              "required": true,
              "min": 1,
              "max": 100000
            },
            {
              "id": "cost",
              "name": "Treatment cost",
              "kind": "number",
              "value": 2,
              "required": true,
              "min": 0,
              "max": 1000000
            },
            {
              "id": "cooldown",
              "name": "Cooldown in turns",
              "kind": "number",
              "value": 3,
              "required": true,
              "min": 0,
              "max": 100000
            }
          ],
          "messages": {
            "greeting": "I can treat your injuries.",
            "success": "Your treatment is complete.",
            "failure": "The requirements are not met yet.",
            "repeat": "That has already been completed."
          }
        },
        "owned": {
          "states": [],
          "rules": [],
          "scripts": [],
          "npcProfiles": [
            "nr_medic_profile"
          ],
          "npcFactions": [],
          "conversations": [
            "nr_medic_conversation"
          ],
          "routines": [],
          "recipes": [],
          "quests": [],
          "hints": [],
          "scriptFunctions": [],
          "mechanics": []
        },
        "baseline": {
          "version": 1,
          "npc": {
            "id": "medic",
            "name": "medic",
            "description": "Restore bounded player health after checking payment and a saved cooldown.",
            "location": "square",
            "mobile": false,
            "aliases": [],
            "onEnter": "",
            "onExamine": "",
            "onTalk": "print \"I can treat your injuries.\"",
            "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": []
          },
          "story": {
            "version": 1,
            "states": [],
            "rules": [],
            "features": {
              "version": 1,
              "npcProfiles": [
                {
                  "version": 1,
                  "id": "nr_medic_profile",
                  "name": "medic",
                  "npcId": "medic",
                  "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": [
                    {
                      "id": "treat",
                      "name": "Treatment",
                      "enabled": true,
                      "event": "manual",
                      "scope": "nearby",
                      "match": "all",
                      "conditions": [],
                      "actions": [
                        {
                          "kind": "npc_control",
                          "target": "medic",
                          "operation": "heal",
                          "value": 40,
                          "cost": 2
                        }
                      ],
                      "otherwise": [
                        {
                          "kind": "message",
                          "value": "The requirements are not met yet."
                        }
                      ],
                      "cooldown": 3,
                      "maxUses": 0
                    }
                  ]
                }
              ],
              "npcFactions": [],
              "conversations": [
                {
                  "id": "nr_medic_conversation",
                  "name": "medic conversation",
                  "enabled": true,
                  "npcId": "medic",
                  "startNodeId": "welcome",
                  "nodes": [
                    {
                      "id": "welcome",
                      "text": "I can treat your injuries.",
                      "actions": [],
                      "choices": [
                        {
                          "id": "treat",
                          "label": "Receive treatment (2)",
                          "conditions": [],
                          "match": "all",
                          "actions": [
                            {
                              "kind": "npc_control",
                              "target": "medic",
                              "operation": "ability",
                              "abilityId": "treat"
                            }
                          ],
                          "once": false,
                          "unavailable": "disabled",
                          "next": "$end"
                        },
                        {
                          "id": "leave",
                          "label": "Goodbye",
                          "conditions": [],
                          "match": "all",
                          "actions": [],
                          "once": false,
                          "unavailable": "hidden",
                          "next": "$end"
                        }
                      ]
                    }
                  ]
                }
              ],
              "routines": [],
              "recipes": [],
              "quests": [],
              "hints": [],
              "scriptFunctions": [],
              "mechanics": []
            }
          },
          "scripts": [],
          "dependencies": [
            {
              "kind": "room",
              "id": "square",
              "name": "Starting room",
              "purpose": "Starting room"
            }
          ],
          "notes": [
            "Enable player health and choose the starting room.",
            "Payment is not taken when the player is already healthy or cannot receive treatment.",
            "Healing and payment form one checked native service. Full health does not spend payment or a successful-use cooldown.",
            "Test: TALK medic",
            "Test: Choose Treatment"
          ],
          "roleId": "healer",
          "definition": {
            "version": 1,
            "id": "medic",
            "roleId": "healer",
            "name": "medic",
            "description": "Restore bounded player health after checking payment and a saved cooldown.",
            "enabled": true,
            "inputs": [
              {
                "id": "home",
                "name": "Starting room",
                "kind": "room",
                "value": "square",
                "required": true
              },
              {
                "id": "healing",
                "name": "Health restored",
                "kind": "number",
                "value": 40,
                "required": true,
                "min": 1,
                "max": 100000
              },
              {
                "id": "cost",
                "name": "Treatment cost",
                "kind": "number",
                "value": 2,
                "required": true,
                "min": 0,
                "max": 1000000
              },
              {
                "id": "cooldown",
                "name": "Cooldown in turns",
                "kind": "number",
                "value": 3,
                "required": true,
                "min": 0,
                "max": 100000
              }
            ],
            "messages": {
              "greeting": "I can treat your injuries.",
              "success": "Your treatment is complete.",
              "failure": "The requirements are not met yet.",
              "repeat": "That has already been completed."
            }
          }
        }
      }
    },
    {
      "id": "technician",
      "name": "technician",
      "description": "Repair a real target using a consumed material and retained tool.",
      "location": "workshop",
      "mobile": false,
      "aliases": [],
      "onEnter": "",
      "onExamine": "",
      "onTalk": "print \"I can repair the selected device if you bring the right material and tool.\"",
      "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": [],
      "npcPackage": {
        "version": 1,
        "id": "technician",
        "roleId": "specialist",
        "definition": {
          "version": 1,
          "id": "technician",
          "roleId": "specialist",
          "name": "technician",
          "description": "Repair a real target using a consumed material and retained tool.",
          "enabled": true,
          "inputs": [
            {
              "id": "home",
              "name": "Starting room",
              "kind": "room",
              "value": "workshop",
              "required": true
            },
            {
              "id": "target",
              "name": "Locked container / device",
              "kind": "object",
              "value": "supply_crate",
              "required": true
            },
            {
              "id": "material",
              "name": "Consumed repair material",
              "kind": "object",
              "value": "fuse",
              "required": true
            },
            {
              "id": "tool",
              "name": "Retained repair tool",
              "kind": "object",
              "value": "wrench",
              "required": true
            }
          ],
          "messages": {
            "greeting": "I can repair the selected device if you bring the right material and tool.",
            "success": "The device is repaired.",
            "failure": "The requirements are not met yet.",
            "repeat": "That has already been completed."
          }
        },
        "owned": {
          "states": [
            "nr_technician_repaired"
          ],
          "rules": [],
          "scripts": [
            "nr_technician_repair"
          ],
          "npcProfiles": [
            "nr_technician_profile"
          ],
          "npcFactions": [],
          "conversations": [
            "nr_technician_conversation"
          ],
          "routines": [],
          "recipes": [
            "nr_technician_repair"
          ],
          "quests": [],
          "hints": [],
          "scriptFunctions": [
            "nr_technician_repair"
          ],
          "mechanics": []
        },
        "baseline": {
          "version": 1,
          "npc": {
            "id": "technician",
            "name": "technician",
            "description": "Repair a real target using a consumed material and retained tool.",
            "location": "workshop",
            "mobile": false,
            "aliases": [],
            "onEnter": "",
            "onExamine": "",
            "onTalk": "print \"I can repair the selected device if you bring the right material and tool.\"",
            "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": []
          },
          "story": {
            "version": 1,
            "states": [
              {
                "id": "nr_technician_repaired",
                "name": "technician (technician) repaired",
                "description": "Owned by NPC role technician.",
                "type": "boolean",
                "initial": false
              }
            ],
            "rules": [],
            "features": {
              "version": 1,
              "npcProfiles": [
                {
                  "version": 1,
                  "id": "nr_technician_profile",
                  "name": "technician",
                  "npcId": "technician",
                  "enabled": true,
                  "memory": [
                    {
                      "id": "repaired",
                      "name": "Repair completed",
                      "type": "boolean",
                      "initial": false
                    }
                  ],
                  "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": []
                }
              ],
              "npcFactions": [],
              "conversations": [
                {
                  "id": "nr_technician_conversation",
                  "name": "technician conversation",
                  "enabled": true,
                  "npcId": "technician",
                  "startNodeId": "welcome",
                  "nodes": [
                    {
                      "id": "welcome",
                      "text": "I can repair the selected device if you bring the right material and tool.",
                      "actions": [],
                      "choices": [
                        {
                          "id": "instructions",
                          "label": "What do you need for the repair?",
                          "conditions": [],
                          "match": "all",
                          "actions": [
                            {
                              "kind": "message",
                              "value": "Use the repair material with the device while carrying the retained tool. The requirements are not met yet."
                            }
                          ],
                          "once": false,
                          "unavailable": "disabled",
                          "next": "$end"
                        },
                        {
                          "id": "leave",
                          "label": "Goodbye",
                          "conditions": [],
                          "match": "all",
                          "actions": [],
                          "once": false,
                          "unavailable": "hidden",
                          "next": "$end"
                        }
                      ]
                    }
                  ]
                }
              ],
              "routines": [],
              "recipes": [
                {
                  "id": "nr_technician_repair",
                  "name": "technician repair",
                  "enabled": true,
                  "verbs": [
                    "use"
                  ],
                  "unordered": true,
                  "inputs": [
                    {
                      "objectId": "fuse",
                      "disposition": "consume"
                    }
                  ],
                  "tools": [
                    "wrench"
                  ],
                  "target": {
                    "kind": "object",
                    "id": "supply_crate"
                  },
                  "roomId": "workshop",
                  "match": "all",
                  "conditions": [
                    {
                      "kind": "npc_available",
                      "target": "technician",
                      "value": true,
                      "operator": "=="
                    }
                  ],
                  "actions": [
                    {
                      "kind": "script",
                      "target": "nr_technician_repair"
                    },
                    {
                      "kind": "npc_control",
                      "target": "technician",
                      "operation": "remember",
                      "key": "repaired",
                      "value": true
                    }
                  ],
                  "once": true,
                  "success": "",
                  "failure": "The requirements are not met yet.",
                  "repeat": "That has already been completed."
                }
              ],
              "quests": [],
              "hints": [],
              "scriptFunctions": [
                {
                  "version": 1,
                  "id": "nr_technician_repair",
                  "name": "Complete native repair",
                  "description": "Owned by NPC technician.",
                  "inputs": [],
                  "locals": [],
                  "resultType": "void",
                  "mode": "visual",
                  "steps": [
                    {
                      "id": "unlock",
                      "kind": "action",
                      "action": {
                        "kind": "object_state",
                        "target": "supply_crate",
                        "property": "locked",
                        "value": false
                      }
                    },
                    {
                      "id": "confirm",
                      "kind": "action",
                      "action": {
                        "kind": "state",
                        "target": "nr_technician_repaired",
                        "value": true
                      }
                    },
                    {
                      "id": "message",
                      "kind": "action",
                      "action": {
                        "kind": "message",
                        "value": "The device is repaired."
                      }
                    }
                  ]
                }
              ],
              "mechanics": []
            }
          },
          "scripts": [
            {
              "id": "nr_technician_repair",
              "name": "Complete native repair",
              "description": "Owned by technician.",
              "kind": "shared",
              "body": "# Native visual steps are stored in the callable definition."
            }
          ],
          "dependencies": [
            {
              "kind": "room",
              "id": "workshop",
              "name": "Starting room",
              "purpose": "Starting room"
            },
            {
              "kind": "object",
              "id": "supply_crate",
              "name": "Locked container / device",
              "purpose": "Locked container / device"
            },
            {
              "kind": "object",
              "id": "fuse",
              "name": "Consumed repair material",
              "purpose": "Consumed repair material"
            },
            {
              "kind": "object",
              "id": "wrench",
              "name": "Retained repair tool",
              "purpose": "Retained repair tool"
            }
          ],
          "notes": [
            "Choose a locked container/device in the starting room, consumed material and retained tool.",
            "A native Recipe checks all inputs and the specialist before consuming anything.",
            "The native Recipe consumes only the chosen material, retains the tool and actually unlocks the selected device.",
            "Test: USE <material> WITH <target>",
            "Test: TALK technician"
          ],
          "roleId": "specialist",
          "definition": {
            "version": 1,
            "id": "technician",
            "roleId": "specialist",
            "name": "technician",
            "description": "Repair a real target using a consumed material and retained tool.",
            "enabled": true,
            "inputs": [
              {
                "id": "home",
                "name": "Starting room",
                "kind": "room",
                "value": "workshop",
                "required": true
              },
              {
                "id": "target",
                "name": "Locked container / device",
                "kind": "object",
                "value": "supply_crate",
                "required": true
              },
              {
                "id": "material",
                "name": "Consumed repair material",
                "kind": "object",
                "value": "fuse",
                "required": true
              },
              {
                "id": "tool",
                "name": "Retained repair tool",
                "kind": "object",
                "value": "wrench",
                "required": true
              }
            ],
            "messages": {
              "greeting": "I can repair the selected device if you bring the right material and tool.",
              "success": "The device is repaired.",
              "failure": "The requirements are not met yet.",
              "repeat": "That has already been completed."
            }
          }
        }
      }
    },
    {
      "id": "gatekeeper",
      "name": "gatekeeper",
      "description": "Grant a chosen route through a real key check or earned trust.",
      "location": "gate",
      "mobile": false,
      "aliases": [],
      "onEnter": "",
      "onExamine": "",
      "onTalk": "print \"Show your pass or earn my trust before passing.\"",
      "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": [],
      "npcPackage": {
        "version": 1,
        "id": "gatekeeper",
        "roleId": "gatekeeper",
        "definition": {
          "version": 1,
          "id": "gatekeeper",
          "roleId": "gatekeeper",
          "name": "gatekeeper",
          "description": "Grant a chosen route through a real key check or earned trust.",
          "enabled": true,
          "inputs": [
            {
              "id": "home",
              "name": "Starting room",
              "kind": "room",
              "value": "gate",
              "required": true
            },
            {
              "id": "key",
              "name": "Retained pass / key",
              "kind": "object",
              "value": "harbor_pass",
              "required": true
            },
            {
              "id": "destination",
              "name": "Passage destination",
              "kind": "room",
              "value": "shelter",
              "required": true
            },
            {
              "id": "trust",
              "name": "Alternative required trust",
              "kind": "number",
              "value": 100,
              "required": true,
              "min": 0,
              "max": 100
            }
          ],
          "messages": {
            "greeting": "Show your pass or earn my trust before passing.",
            "success": "You may pass.",
            "failure": "The requirements are not met yet.",
            "repeat": "That has already been completed."
          }
        },
        "owned": {
          "states": [],
          "rules": [],
          "scripts": [],
          "npcProfiles": [
            "nr_gatekeeper_profile"
          ],
          "npcFactions": [],
          "conversations": [
            "nr_gatekeeper_conversation"
          ],
          "routines": [],
          "recipes": [],
          "quests": [],
          "hints": [],
          "scriptFunctions": [],
          "mechanics": []
        },
        "baseline": {
          "version": 1,
          "npc": {
            "id": "gatekeeper",
            "name": "gatekeeper",
            "description": "Grant a chosen route through a real key check or earned trust.",
            "location": "gate",
            "mobile": false,
            "aliases": [],
            "onEnter": "",
            "onExamine": "",
            "onTalk": "print \"Show your pass or earn my trust before passing.\"",
            "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": []
          },
          "story": {
            "version": 1,
            "states": [],
            "rules": [],
            "features": {
              "version": 1,
              "npcProfiles": [
                {
                  "version": 1,
                  "id": "nr_gatekeeper_profile",
                  "name": "gatekeeper",
                  "npcId": "gatekeeper",
                  "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": [
                    {
                      "id": "passage",
                      "name": "Grant passage",
                      "enabled": true,
                      "event": "manual",
                      "scope": "nearby",
                      "match": "any",
                      "conditions": [
                        {
                          "kind": "inventory",
                          "target": "harbor_pass",
                          "value": true,
                          "operator": "=="
                        },
                        {
                          "kind": "npc_trust",
                          "target": "gatekeeper",
                          "value": 100,
                          "operator": ">="
                        }
                      ],
                      "actions": [
                        {
                          "kind": "message",
                          "value": "You may pass."
                        },
                        {
                          "kind": "goto",
                          "target": "shelter"
                        }
                      ],
                      "otherwise": [
                        {
                          "kind": "message",
                          "value": "The requirements are not met yet."
                        }
                      ],
                      "cooldown": 0,
                      "maxUses": 0
                    }
                  ]
                }
              ],
              "npcFactions": [],
              "conversations": [
                {
                  "id": "nr_gatekeeper_conversation",
                  "name": "gatekeeper conversation",
                  "enabled": true,
                  "npcId": "gatekeeper",
                  "startNodeId": "welcome",
                  "nodes": [
                    {
                      "id": "welcome",
                      "text": "Show your pass or earn my trust before passing.",
                      "actions": [],
                      "choices": [
                        {
                          "id": "pass",
                          "label": "Request passage",
                          "conditions": [],
                          "match": "all",
                          "actions": [
                            {
                              "kind": "npc_control",
                              "target": "gatekeeper",
                              "operation": "ability",
                              "abilityId": "passage"
                            }
                          ],
                          "once": false,
                          "unavailable": "disabled",
                          "next": "$end"
                        },
                        {
                          "id": "leave",
                          "label": "Goodbye",
                          "conditions": [],
                          "match": "all",
                          "actions": [],
                          "once": false,
                          "unavailable": "hidden",
                          "next": "$end"
                        }
                      ]
                    }
                  ]
                }
              ],
              "routines": [],
              "recipes": [],
              "quests": [],
              "hints": [],
              "scriptFunctions": [],
              "mechanics": []
            }
          },
          "scripts": [],
          "dependencies": [
            {
              "kind": "room",
              "id": "gate",
              "name": "Starting room",
              "purpose": "Starting room"
            },
            {
              "kind": "object",
              "id": "harbor_pass",
              "name": "Retained pass / key",
              "purpose": "Retained pass / key"
            },
            {
              "kind": "room",
              "id": "shelter",
              "name": "Passage destination",
              "purpose": "Passage destination"
            }
          ],
          "notes": [
            "Choose the starting room, retained pass/key and destination room or playable cell.",
            "The player must meet one of the configured requirements before travel.",
            "The pass/key is retained. Either possession of the selected key or sufficient actual trust permits the destination route.",
            "Test: TALK gatekeeper",
            "Test: Choose passage"
          ],
          "roleId": "gatekeeper",
          "definition": {
            "version": 1,
            "id": "gatekeeper",
            "roleId": "gatekeeper",
            "name": "gatekeeper",
            "description": "Grant a chosen route through a real key check or earned trust.",
            "enabled": true,
            "inputs": [
              {
                "id": "home",
                "name": "Starting room",
                "kind": "room",
                "value": "gate",
                "required": true
              },
              {
                "id": "key",
                "name": "Retained pass / key",
                "kind": "object",
                "value": "harbor_pass",
                "required": true
              },
              {
                "id": "destination",
                "name": "Passage destination",
                "kind": "room",
                "value": "shelter",
                "required": true
              },
              {
                "id": "trust",
                "name": "Alternative required trust",
                "kind": "number",
                "value": 100,
                "required": true,
                "min": 0,
                "max": 100
              }
            ],
            "messages": {
              "greeting": "Show your pass or earn my trust before passing.",
              "success": "You may pass.",
              "failure": "The requirements are not met yet.",
              "repeat": "That has already been completed."
            }
          }
        }
      }
    },
    {
      "id": "civilian",
      "name": "civilian",
      "description": "Recruit an escort, wait safely and prove a living arrival at the chosen extraction room.",
      "location": "shelter",
      "mobile": true,
      "aliases": [],
      "onEnter": "",
      "onExamine": "",
      "onTalk": "print \"Please help me reach safety.\"",
      "onAttack": "",
      "onDeath": "",
      "onFollow": "",
      "onAutoAttack": "",
      "onTrustChange": "",
      "onGive": "",
      "onBeforeTalk": "",
      "onAfterTalk": "",
      "onBeforeAttack": "",
      "onAfterAttack": "",
      "onDamage": "",
      "onHeal": "",
      "onMove": "",
      "onLeave": "",
      "followPlayer": false,
      "health": 60,
      "combatSide": "neutral",
      "autoFight": false,
      "attackPower": 10,
      "defense": 0,
      "trustLevel": 50,
      "conversationEnabled": false,
      "convGreeting": "",
      "convFarewell": "",
      "convTopics": [],
      "dialogues": [],
      "npcPackage": {
        "version": 1,
        "id": "civilian",
        "roleId": "rescue",
        "definition": {
          "version": 1,
          "id": "civilian",
          "roleId": "rescue",
          "name": "civilian",
          "description": "Recruit an escort, wait safely and prove a living arrival at the chosen extraction room.",
          "enabled": true,
          "inputs": [
            {
              "id": "home",
              "name": "Starting room",
              "kind": "room",
              "value": "shelter",
              "required": true
            },
            {
              "id": "destination",
              "name": "Extraction room",
              "kind": "room",
              "value": "pier",
              "required": true
            },
            {
              "id": "health",
              "name": "Starting health",
              "kind": "number",
              "value": 60,
              "required": true,
              "min": 1,
              "max": 100000
            },
            {
              "id": "score",
              "name": "Rescue score",
              "kind": "number",
              "value": 0,
              "required": true,
              "min": 0,
              "max": 1000000
            },
            {
              "id": "money",
              "name": "Rescue currency",
              "kind": "number",
              "value": 0,
              "required": true,
              "min": 0,
              "max": 1000000
            }
          ],
          "messages": {
            "greeting": "Please help me reach safety.",
            "success": "The rescue is complete. We reached safety.",
            "failure": "The requirements are not met yet.",
            "repeat": "That has already been completed."
          }
        },
        "owned": {
          "states": [
            "nr_civilian_rescued"
          ],
          "rules": [],
          "scripts": [],
          "npcProfiles": [
            "nr_civilian_profile"
          ],
          "npcFactions": [],
          "conversations": [
            "nr_civilian_conversation"
          ],
          "routines": [],
          "recipes": [],
          "quests": [
            "nr_civilian_quest"
          ],
          "hints": [],
          "scriptFunctions": [],
          "mechanics": []
        },
        "baseline": {
          "version": 1,
          "npc": {
            "id": "civilian",
            "name": "civilian",
            "description": "Recruit an escort, wait safely and prove a living arrival at the chosen extraction room.",
            "location": "shelter",
            "mobile": true,
            "aliases": [],
            "onEnter": "",
            "onExamine": "",
            "onTalk": "print \"Please help me reach safety.\"",
            "onAttack": "",
            "onDeath": "",
            "onFollow": "",
            "onAutoAttack": "",
            "onTrustChange": "",
            "onGive": "",
            "onBeforeTalk": "",
            "onAfterTalk": "",
            "onBeforeAttack": "",
            "onAfterAttack": "",
            "onDamage": "",
            "onHeal": "",
            "onMove": "",
            "onLeave": "",
            "followPlayer": false,
            "health": 60,
            "combatSide": "neutral",
            "autoFight": false,
            "attackPower": 10,
            "defense": 0,
            "trustLevel": 50,
            "conversationEnabled": false,
            "convGreeting": "",
            "convFarewell": "",
            "convTopics": [],
            "dialogues": []
          },
          "story": {
            "version": 1,
            "states": [
              {
                "id": "nr_civilian_rescued",
                "name": "civilian (civilian) rescued",
                "description": "Owned by NPC role civilian.",
                "type": "boolean",
                "initial": false
              }
            ],
            "rules": [],
            "features": {
              "version": 1,
              "npcProfiles": [
                {
                  "version": 1,
                  "id": "nr_civilian_profile",
                  "name": "civilian",
                  "npcId": "civilian",
                  "enabled": true,
                  "memory": [
                    {
                      "id": "rescued",
                      "name": "Reached extraction",
                      "type": "boolean",
                      "initial": false
                    }
                  ],
                  "traits": {
                    "loyalty": 50,
                    "fear": 0,
                    "suspicion": 0
                  },
                  "life": {
                    "maxHealth": 60,
                    "initial": "active",
                    "essential": false,
                    "defeat": "downed",
                    "retreatAtHealth": 0,
                    "rescueRoomId": "pier"
                  },
                  "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": [
                    {
                      "id": "arrival",
                      "name": "Record a living rescue",
                      "enabled": true,
                      "event": "rescue",
                      "scope": "anywhere",
                      "match": "all",
                      "conditions": [],
                      "actions": [
                        {
                          "kind": "state",
                          "target": "nr_civilian_rescued",
                          "value": true
                        },
                        {
                          "kind": "npc_control",
                          "target": "civilian",
                          "operation": "remember",
                          "key": "rescued",
                          "value": true
                        },
                        {
                          "kind": "message",
                          "value": "The rescue is complete. We reached safety."
                        }
                      ],
                      "otherwise": [
                        {
                          "kind": "message",
                          "value": "The requirements are not met yet."
                        }
                      ],
                      "cooldown": 0,
                      "maxUses": 1
                    }
                  ]
                }
              ],
              "npcFactions": [],
              "conversations": [
                {
                  "id": "nr_civilian_conversation",
                  "name": "civilian conversation",
                  "enabled": true,
                  "npcId": "civilian",
                  "startNodeId": "welcome",
                  "nodes": [
                    {
                      "id": "welcome",
                      "text": "Please help me reach safety.",
                      "actions": [],
                      "choices": [
                        {
                          "id": "follow",
                          "label": "Follow me to safety",
                          "conditions": [],
                          "match": "all",
                          "actions": [
                            {
                              "kind": "npc_control",
                              "target": "civilian",
                              "operation": "recruit"
                            }
                          ],
                          "once": false,
                          "unavailable": "disabled",
                          "next": "$end"
                        },
                        {
                          "id": "wait",
                          "label": "Wait here safely",
                          "conditions": [],
                          "match": "all",
                          "actions": [
                            {
                              "kind": "npc_control",
                              "target": "civilian",
                              "operation": "wait"
                            }
                          ],
                          "once": false,
                          "unavailable": "disabled",
                          "next": "$end"
                        },
                        {
                          "id": "leave",
                          "label": "Goodbye",
                          "conditions": [],
                          "match": "all",
                          "actions": [],
                          "once": false,
                          "unavailable": "hidden",
                          "next": "$end"
                        }
                      ]
                    }
                  ]
                }
              ],
              "routines": [],
              "recipes": [],
              "quests": [
                {
                  "id": "nr_civilian_quest",
                  "name": "Rescue civilian",
                  "enabled": true,
                  "description": "Bring civilian safely to extraction.",
                  "stages": [
                    {
                      "id": "arrived",
                      "name": "Arrive alive at extraction",
                      "description": "Arrive alive at extraction",
                      "prerequisites": [],
                      "optional": false,
                      "automatic": true,
                      "conditions": [
                        {
                          "kind": "state",
                          "target": "nr_civilian_rescued",
                          "value": true,
                          "operator": "=="
                        }
                      ],
                      "match": "all",
                      "completionText": "Arrive alive at extraction",
                      "actions": []
                    }
                  ],
                  "completionText": "The rescue is complete. We reached safety.",
                  "completionActions": [
                    {
                      "kind": "score",
                      "value": 0
                    },
                    {
                      "kind": "money",
                      "value": 0
                    }
                  ]
                }
              ],
              "hints": [],
              "scriptFunctions": [],
              "mechanics": []
            }
          },
          "scripts": [],
          "dependencies": [
            {
              "kind": "room",
              "id": "shelter",
              "name": "Starting room",
              "purpose": "Starting room"
            },
            {
              "kind": "room",
              "id": "pier",
              "name": "Extraction room",
              "purpose": "Extraction room"
            }
          ],
          "notes": [
            "Choose the initial room and actual extraction destination.",
            "The rescue reward requires the living NPC to arrive; remote following flags do not prove a rescue.",
            "The capability runtime records a rescue only on the living NPC’s actual arrival at extraction.",
            "Test: TALK civilian",
            "Test: Choose Follow or Wait",
            "Test: Travel to extraction"
          ],
          "roleId": "rescue",
          "definition": {
            "version": 1,
            "id": "civilian",
            "roleId": "rescue",
            "name": "civilian",
            "description": "Recruit an escort, wait safely and prove a living arrival at the chosen extraction room.",
            "enabled": true,
            "inputs": [
              {
                "id": "home",
                "name": "Starting room",
                "kind": "room",
                "value": "shelter",
                "required": true
              },
              {
                "id": "destination",
                "name": "Extraction room",
                "kind": "room",
                "value": "pier",
                "required": true
              },
              {
                "id": "health",
                "name": "Starting health",
                "kind": "number",
                "value": 60,
                "required": true,
                "min": 1,
                "max": 100000
              },
              {
                "id": "score",
                "name": "Rescue score",
                "kind": "number",
                "value": 0,
                "required": true,
                "min": 0,
                "max": 1000000
              },
              {
                "id": "money",
                "name": "Rescue currency",
                "kind": "number",
                "value": 0,
                "required": true,
                "min": 0,
                "max": 1000000
              }
            ],
            "messages": {
              "greeting": "Please help me reach safety.",
              "success": "The rescue is complete. We reached safety.",
              "failure": "The requirements are not met yet.",
              "repeat": "That has already been completed."
            }
          }
        }
      }
    },
    {
      "id": "harbor_master",
      "name": "harbor master",
      "description": "Offer a delivery task, accept its actual item and award a native Quest reward once.",
      "location": "pier",
      "mobile": false,
      "aliases": [],
      "onEnter": "",
      "onExamine": "",
      "onTalk": "print \"Please bring me the requested item.\"",
      "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": [],
      "npcPackage": {
        "version": 1,
        "id": "harbor_master",
        "roleId": "quest_giver",
        "definition": {
          "version": 1,
          "id": "harbor_master",
          "roleId": "quest_giver",
          "name": "harbor master",
          "description": "Offer a delivery task, accept its actual item and award a native Quest reward once.",
          "enabled": true,
          "inputs": [
            {
              "id": "home",
              "name": "Starting room",
              "kind": "room",
              "value": "pier",
              "required": true
            },
            {
              "id": "item",
              "name": "Delivery item",
              "kind": "object",
              "value": "sealed_dispatch",
              "required": true
            },
            {
              "id": "questName",
              "name": "Quest title",
              "kind": "text",
              "value": "Harbor service and safe arrival",
              "required": true
            },
            {
              "id": "score",
              "name": "Completion score",
              "kind": "number",
              "value": 100,
              "required": true,
              "min": 0,
              "max": 1000000
            },
            {
              "id": "money",
              "name": "Completion currency",
              "kind": "number",
              "value": 5,
              "required": true,
              "min": 0,
              "max": 1000000
            }
          ],
          "messages": {
            "greeting": "Please bring me the requested item.",
            "success": "The delivery is accepted. Thank you.",
            "failure": "The requirements are not met yet.",
            "repeat": "That has already been completed."
          }
        },
        "owned": {
          "states": [
            "nr_harbor_master_accepted",
            "nr_harbor_master_delivered"
          ],
          "rules": [],
          "scripts": [],
          "npcProfiles": [
            "nr_harbor_master_profile"
          ],
          "npcFactions": [],
          "conversations": [
            "nr_harbor_master_conversation"
          ],
          "routines": [],
          "recipes": [
            "nr_harbor_master_handover"
          ],
          "quests": [
            "nr_harbor_master_quest"
          ],
          "hints": [],
          "scriptFunctions": [],
          "mechanics": []
        },
        "baseline": {
          "version": 1,
          "npc": {
            "id": "harbor_master",
            "name": "harbor master",
            "description": "Offer a delivery task, accept its actual item and award a native Quest reward once.",
            "location": "pier",
            "mobile": false,
            "aliases": [],
            "onEnter": "",
            "onExamine": "",
            "onTalk": "print \"Please bring me the requested item.\"",
            "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": []
          },
          "story": {
            "version": 1,
            "states": [
              {
                "id": "nr_harbor_master_accepted",
                "name": "harbor master (harbor_master) accepted",
                "description": "Owned by NPC role harbor_master.",
                "type": "boolean",
                "initial": false
              },
              {
                "id": "nr_harbor_master_delivered",
                "name": "harbor master (harbor_master) delivered",
                "description": "Owned by NPC role harbor_master.",
                "type": "boolean",
                "initial": false
              }
            ],
            "rules": [],
            "features": {
              "version": 1,
              "npcProfiles": [
                {
                  "version": 1,
                  "id": "nr_harbor_master_profile",
                  "name": "harbor master",
                  "npcId": "harbor_master",
                  "enabled": true,
                  "memory": [
                    {
                      "id": "offered",
                      "name": "Task offered",
                      "type": "boolean",
                      "initial": false
                    },
                    {
                      "id": "delivered",
                      "name": "Delivery accepted",
                      "type": "boolean",
                      "initial": false
                    }
                  ],
                  "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": [
                    {
                      "id": "offer",
                      "name": "Offer the delivery",
                      "enabled": true,
                      "event": "manual",
                      "scope": "nearby",
                      "match": "all",
                      "conditions": [],
                      "actions": [
                        {
                          "kind": "state",
                          "target": "nr_harbor_master_accepted",
                          "value": true
                        },
                        {
                          "kind": "npc_control",
                          "target": "harbor_master",
                          "operation": "remember",
                          "key": "offered",
                          "value": true
                        },
                        {
                          "kind": "message",
                          "value": "Please bring me the requested item."
                        }
                      ],
                      "otherwise": [
                        {
                          "kind": "message",
                          "value": "The requirements are not met yet."
                        }
                      ],
                      "cooldown": 0,
                      "maxUses": 0
                    }
                  ]
                }
              ],
              "npcFactions": [],
              "conversations": [
                {
                  "id": "nr_harbor_master_conversation",
                  "name": "harbor master conversation",
                  "enabled": true,
                  "npcId": "harbor_master",
                  "startNodeId": "welcome",
                  "nodes": [
                    {
                      "id": "welcome",
                      "text": "Please bring me the requested item.",
                      "actions": [],
                      "choices": [
                        {
                          "id": "offer",
                          "label": "Tell me about the task",
                          "conditions": [],
                          "match": "all",
                          "actions": [
                            {
                              "kind": "npc_control",
                              "target": "harbor_master",
                              "operation": "ability",
                              "abilityId": "offer"
                            }
                          ],
                          "once": false,
                          "unavailable": "disabled",
                          "next": "$end"
                        },
                        {
                          "id": "leave",
                          "label": "Goodbye",
                          "conditions": [],
                          "match": "all",
                          "actions": [],
                          "once": false,
                          "unavailable": "hidden",
                          "next": "$end"
                        }
                      ]
                    }
                  ]
                }
              ],
              "routines": [],
              "recipes": [
                {
                  "id": "nr_harbor_master_handover",
                  "name": "harbor master accepted delivery",
                  "enabled": true,
                  "verbs": [
                    "give"
                  ],
                  "unordered": true,
                  "inputs": [
                    {
                      "objectId": "sealed_dispatch",
                      "disposition": "transfer"
                    }
                  ],
                  "tools": [],
                  "target": {
                    "kind": "npc",
                    "id": "harbor_master"
                  },
                  "match": "all",
                  "conditions": [
                    {
                      "kind": "state",
                      "target": "nr_harbor_master_accepted",
                      "value": true,
                      "operator": "=="
                    }
                  ],
                  "actions": [
                    {
                      "kind": "state",
                      "target": "nr_harbor_master_delivered",
                      "value": true
                    },
                    {
                      "kind": "npc_control",
                      "target": "harbor_master",
                      "operation": "remember",
                      "key": "delivered",
                      "value": true
                    }
                  ],
                  "once": true,
                  "success": "The delivery is accepted. Thank you.",
                  "failure": "The requirements are not met yet.",
                  "repeat": "That has already been completed."
                }
              ],
              "quests": [
                {
                  "id": "nr_harbor_master_quest",
                  "name": "Harbor service and safe arrival",
                  "enabled": true,
                  "description": "Please bring me the requested item.",
                  "stages": [
                    {
                      "id": "accepted",
                      "name": "Accept the delivery task",
                      "description": "Accept the delivery task",
                      "prerequisites": [],
                      "optional": false,
                      "automatic": true,
                      "conditions": [
                        {
                          "kind": "state",
                          "target": "nr_harbor_master_accepted",
                          "value": true,
                          "operator": "=="
                        }
                      ],
                      "match": "all",
                      "completionText": "Accept the delivery task",
                      "actions": []
                    },
                    {
                      "id": "delivered",
                      "name": "Deliver the real item",
                      "description": "Deliver the real item",
                      "prerequisites": [
                        "accepted"
                      ],
                      "optional": false,
                      "automatic": true,
                      "conditions": [
                        {
                          "kind": "state",
                          "target": "nr_harbor_master_delivered",
                          "value": true,
                          "operator": "=="
                        }
                      ],
                      "match": "all",
                      "completionText": "Deliver the real item",
                      "actions": []
                    }
                  ],
                  "completionText": "The delivery is accepted. Thank you.",
                  "completionActions": [
                    {
                      "kind": "score",
                      "value": 100
                    },
                    {
                      "kind": "money",
                      "value": 5
                    }
                  ]
                }
              ],
              "hints": [],
              "scriptFunctions": [],
              "mechanics": []
            }
          },
          "scripts": [],
          "dependencies": [
            {
              "kind": "room",
              "id": "pier",
              "name": "Starting room",
              "purpose": "Starting room"
            },
            {
              "kind": "object",
              "id": "sealed_dispatch",
              "name": "Delivery item",
              "purpose": "Delivery item"
            }
          ],
          "notes": [
            "Choose the one physical item to deliver and the NPC starting room.",
            "The handover must be accepted; talking or repeating a callback cannot manufacture the reward.",
            "Give the actual sealed_dispatch to harbor master after accepting. The native Quest awards 100 score and 5 currency once.",
            "Test: TALK harbor master",
            "Test: GIVE <item> TO harbor master",
            "Test: OBJECTIVES"
          ],
          "roleId": "quest_giver",
          "definition": {
            "version": 1,
            "id": "harbor_master",
            "roleId": "quest_giver",
            "name": "harbor master",
            "description": "Offer a delivery task, accept its actual item and award a native Quest reward once.",
            "enabled": true,
            "inputs": [
              {
                "id": "home",
                "name": "Starting room",
                "kind": "room",
                "value": "pier",
                "required": true
              },
              {
                "id": "item",
                "name": "Delivery item",
                "kind": "object",
                "value": "sealed_dispatch",
                "required": true
              },
              {
                "id": "questName",
                "name": "Quest title",
                "kind": "text",
                "value": "Harbor service and safe arrival",
                "required": true
              },
              {
                "id": "score",
                "name": "Completion score",
                "kind": "number",
                "value": 100,
                "required": true,
                "min": 0,
                "max": 1000000
              },
              {
                "id": "money",
                "name": "Completion currency",
                "kind": "number",
                "value": 5,
                "required": true,
                "min": 0,
                "max": 1000000
              }
            ],
            "messages": {
              "greeting": "Please bring me the requested item.",
              "success": "The delivery is accepted. Thank you.",
              "failure": "The requirements are not met yet.",
              "repeat": "That has already been completed."
            }
          }
        }
      }
    },
    {
      "id": "sentinel",
      "name": "sentinel",
      "description": "Walk a native connected route, pause for interactions and investigate nearby alerts.",
      "location": "gate",
      "mobile": true,
      "aliases": [],
      "onEnter": "",
      "onExamine": "",
      "onTalk": "print \"I am watching this area.\"",
      "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": [],
      "npcPackage": {
        "version": 1,
        "id": "sentinel",
        "roleId": "patrol_guard",
        "definition": {
          "version": 1,
          "id": "sentinel",
          "roleId": "patrol_guard",
          "name": "sentinel",
          "description": "Walk a native connected route, pause for interactions and investigate nearby alerts.",
          "enabled": true,
          "inputs": [
            {
              "id": "home",
              "name": "Starting room",
              "kind": "room",
              "value": "gate",
              "required": true
            },
            {
              "id": "route",
              "name": "Patrol rooms, in order",
              "kind": "room_list",
              "value": "gate,square",
              "required": true
            },
            {
              "id": "turnsPerStop",
              "name": "Turns at each stop",
              "kind": "number",
              "value": 2,
              "required": true,
              "min": 1,
              "max": 1000
            },
            {
              "id": "sight",
              "name": "Sight range in connected rooms",
              "kind": "number",
              "value": 0,
              "required": true,
              "min": 0,
              "max": 8
            }
          ],
          "messages": {
            "greeting": "I am watching this area.",
            "success": "The interaction succeeds.",
            "failure": "The requirements are not met yet.",
            "repeat": "That has already been completed."
          }
        },
        "owned": {
          "states": [],
          "rules": [],
          "scripts": [],
          "npcProfiles": [
            "nr_sentinel_profile"
          ],
          "npcFactions": [],
          "conversations": [
            "nr_sentinel_conversation"
          ],
          "routines": [
            "nr_sentinel_patrol"
          ],
          "recipes": [],
          "quests": [],
          "hints": [],
          "scriptFunctions": [],
          "mechanics": []
        },
        "baseline": {
          "version": 1,
          "npc": {
            "id": "sentinel",
            "name": "sentinel",
            "description": "Walk a native connected route, pause for interactions and investigate nearby alerts.",
            "location": "gate",
            "mobile": true,
            "aliases": [],
            "onEnter": "",
            "onExamine": "",
            "onTalk": "print \"I am watching this area.\"",
            "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": []
          },
          "story": {
            "version": 1,
            "states": [],
            "rules": [],
            "features": {
              "version": 1,
              "npcProfiles": [
                {
                  "version": 1,
                  "id": "nr_sentinel_profile",
                  "name": "sentinel",
                  "npcId": "sentinel",
                  "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": true,
                    "sightRange": 0,
                    "hearingRange": 0,
                    "suspicionPerSight": 10,
                    "suspicionPerNoise": 10,
                    "threshold": 50,
                    "investigate": true,
                    "returnHome": true,
                    "allowedRoomIds": [
                      "gate",
                      "square"
                    ],
                    "homeRoomId": "gate"
                  },
                  "abilities": []
                }
              ],
              "npcFactions": [],
              "conversations": [
                {
                  "id": "nr_sentinel_conversation",
                  "name": "sentinel conversation",
                  "enabled": true,
                  "npcId": "sentinel",
                  "startNodeId": "welcome",
                  "nodes": [
                    {
                      "id": "welcome",
                      "text": "I am watching this area.",
                      "actions": [],
                      "choices": [
                        {
                          "id": "status",
                          "label": "Ask about the patrol",
                          "conditions": [],
                          "match": "all",
                          "actions": [
                            {
                              "kind": "message",
                              "value": "I walk the connected route and investigate alerts in this area."
                            }
                          ],
                          "once": false,
                          "unavailable": "disabled",
                          "next": "$end"
                        },
                        {
                          "id": "leave",
                          "label": "Goodbye",
                          "conditions": [],
                          "match": "all",
                          "actions": [],
                          "once": false,
                          "unavailable": "hidden",
                          "next": "$end"
                        }
                      ]
                    }
                  ]
                }
              ],
              "routines": [
                {
                  "id": "nr_sentinel_patrol",
                  "name": "sentinel connected patrol",
                  "enabled": true,
                  "npcId": "sentinel",
                  "activities": [
                    {
                      "id": "stop_1",
                      "name": "Patrol stop 1",
                      "enabled": true,
                      "priority": 0,
                      "conditions": [],
                      "match": "all",
                      "destinationId": "gate",
                      "duration": 2,
                      "actions": [],
                      "completionActions": [],
                      "nextActivityId": "stop_2",
                      "once": false
                    },
                    {
                      "id": "stop_2",
                      "name": "Patrol stop 2",
                      "enabled": true,
                      "priority": 0,
                      "conditions": [],
                      "match": "all",
                      "destinationId": "square",
                      "duration": 2,
                      "actions": [],
                      "completionActions": [],
                      "nextActivityId": "stop_1",
                      "once": false
                    }
                  ]
                }
              ],
              "recipes": [],
              "quests": [],
              "hints": [],
              "scriptFunctions": [],
              "mechanics": []
            }
          },
          "scripts": [],
          "dependencies": [
            {
              "kind": "room",
              "id": "gate",
              "name": "Starting room",
              "purpose": "Starting room"
            },
            {
              "kind": "room",
              "id": "square",
              "name": "Patrol rooms, in order",
              "purpose": "Patrol rooms, in order"
            }
          ],
          "notes": [
            "Choose at least two existing rooms in route order.",
            "Movement uses open connections; blocked paths are reported rather than teleported through.",
            "Test: WAIT",
            "Test: TALK sentinel"
          ],
          "roleId": "patrol_guard",
          "definition": {
            "version": 1,
            "id": "sentinel",
            "roleId": "patrol_guard",
            "name": "sentinel",
            "description": "Walk a native connected route, pause for interactions and investigate nearby alerts.",
            "enabled": true,
            "inputs": [
              {
                "id": "home",
                "name": "Starting room",
                "kind": "room",
                "value": "gate",
                "required": true
              },
              {
                "id": "route",
                "name": "Patrol rooms, in order",
                "kind": "room_list",
                "value": "gate,square",
                "required": true
              },
              {
                "id": "turnsPerStop",
                "name": "Turns at each stop",
                "kind": "number",
                "value": 2,
                "required": true,
                "min": 1,
                "max": 1000
              },
              {
                "id": "sight",
                "name": "Sight range in connected rooms",
                "kind": "number",
                "value": 0,
                "required": true,
                "min": 0,
                "max": 8
              }
            ],
            "messages": {
              "greeting": "I am watching this area.",
              "success": "The interaction succeeds.",
              "failure": "The requirements are not met yet.",
              "repeat": "That has already been completed."
            }
          }
        }
      }
    }
  ],
  "scripts": [
    {
      "id": "on_game_start",
      "name": "On Game Start",
      "description": "Runs automatically when the game starts.",
      "kind": "global",
      "body": "goto: square\ndamage: 40"
    },
    {
      "id": "on_turn_end",
      "name": "on_turn_end",
      "description": "Native NPC and world lifecycle.",
      "kind": "global",
      "body": ""
    },
    {
      "id": "nr_technician_repair",
      "name": "Complete native repair",
      "description": "Owned by technician.",
      "kind": "shared",
      "body": "# Native visual steps are stored in the callable definition."
    }
  ],
  "mapRooms": [
    {
      "id": "square",
      "name": "Harbor Square",
      "narrative": "A safe harbor workshop demonstrates editable NPC roles. READ BRIEFING for the complete route. The guide, merchant and medic work here. There is no hostile combat or time limit.",
      "description": "The workshop is EAST, the gate NORTH and the pier SOUTH. The merchant owns one replacement fuse; the wrench and briefing are here.",
      "reentryEnabled": false,
      "reentryDesc": "",
      "hint": "TALK MERCHANT, choose 1, TAKE WRENCH, then EAST. READ BRIEFING gives every step.",
      "dark": false,
      "roomType": "regular",
      "x": 350,
      "y": 350,
      "width": 160,
      "height": 64,
      "color": "#000000"
    },
    {
      "id": "workshop",
      "name": "Repair Workshop",
      "description": "The technician waits beside the locked supply crate. The square is WEST.",
      "reentryEnabled": false,
      "reentryDesc": "",
      "hint": "Carry the fuse and wrench, USE FUSE WITH SUPPLY CRATE, OPEN SUPPLY CRATE, TAKE HARBOR PASS, then WEST.",
      "dark": false,
      "roomType": "regular",
      "x": 550,
      "y": 350,
      "width": 160,
      "height": 64,
      "color": "#000000"
    },
    {
      "id": "gate",
      "name": "Harbor Gate",
      "description": "The gatekeeper checks a real harbor pass before admitting visitors to the shelter. The square is SOUTH.",
      "reentryEnabled": false,
      "reentryDesc": "",
      "hint": "Carry the harbor pass. TALK GATEKEEPER and choose 1. The pass is retained.",
      "dark": false,
      "roomType": "regular",
      "x": 350,
      "y": 190,
      "width": 160,
      "height": 64,
      "color": "#000000"
    },
    {
      "id": "shelter",
      "name": "Shelter",
      "description": "The civilian needs a safe escort to the pier. One sealed dispatch waits here. The gate is SOUTH.",
      "reentryEnabled": false,
      "reentryDesc": "",
      "hint": "TAKE SEALED DISPATCH, TALK CIVILIAN and choose 1. SOUTH, SOUTH, SOUTH reaches the pier.",
      "dark": false,
      "roomType": "regular",
      "x": 350,
      "y": 30,
      "width": 160,
      "height": 64,
      "color": "#000000"
    },
    {
      "id": "pier",
      "name": "Harbor Pier",
      "description": "The harbor master accepts the dispatch only after the repair and living rescue agree. The square is NORTH.",
      "reentryEnabled": false,
      "reentryDesc": "",
      "hint": "TALK HARBOR MASTER and choose 1 to accept the task. Bring the recruited civilian here, then GIVE SEALED DISPATCH TO HARBOR MASTER.",
      "dark": false,
      "roomType": "regular",
      "x": 350,
      "y": 510,
      "width": 160,
      "height": 64,
      "color": "#000000"
    }
  ],
  "mapExits": [
    {
      "id": "square_east",
      "fromRoom": "square",
      "toRoom": "workshop",
      "direction": "east",
      "locked": false
    },
    {
      "id": "workshop_west",
      "fromRoom": "workshop",
      "toRoom": "square",
      "direction": "west",
      "locked": false
    },
    {
      "id": "square_north",
      "fromRoom": "square",
      "toRoom": "gate",
      "direction": "north",
      "locked": false
    },
    {
      "id": "gate_south",
      "fromRoom": "gate",
      "toRoom": "square",
      "direction": "south",
      "locked": false
    },
    {
      "id": "gate_north",
      "fromRoom": "gate",
      "toRoom": "shelter",
      "direction": "north",
      "locked": false,
      "when": "harbor_gate_open"
    },
    {
      "id": "shelter_south",
      "fromRoom": "shelter",
      "toRoom": "gate",
      "direction": "south",
      "locked": false
    },
    {
      "id": "square_south",
      "fromRoom": "square",
      "toRoom": "pier",
      "direction": "south",
      "locked": false
    },
    {
      "id": "pier_north",
      "fromRoom": "pier",
      "toRoom": "square",
      "direction": "north",
      "locked": false
    }
  ],
  "activeMechanics": [],
  "worldEvents": [],
  "verbAliases": [],
  "customMechanicDefs": [],
  "savedMechanicTemplates": [],
  "objectiveSets": [],
  "gameOutliner": {
    "title": "",
    "hook": "",
    "coreIdea": "",
    "playerRole": "",
    "mainObjective": "",
    "secondaryObjectives": "",
    "toneGenre": "",
    "settingOverview": "",
    "storyTheme": "",
    "mainConflict": "",
    "coreMechanics": "",
    "mainNpcs": "",
    "objectCategories": "",
    "mainRooms": "",
    "puzzleDesign": "",
    "eventDesign": "",
    "combatDesign": "",
    "dialogueDesign": "",
    "scoringSystem": "",
    "endings": "",
    "builderChecklist": "",
    "finalNotes": ""
  },
  "customRoomTemplates": [],
  "customObjectTemplates": [],
  "customNpcTemplates": [],
  "customSavedScripts": []
}
