[
  {
    "type": "talk_topic",
    "id": "TALK_NPC_EVAC_SURVIVOR",
    "dynamic_line": {
      "compare_string": [ "yes", { "npc_val": "dialogue_first_meeting_knows_u" } ],
      "yes": "<greet>.",
      "no": "Don't come any closer!"
    },
    "speaker_effect": { "effect": { "npc_add_var": "dialogue_first_meeting_knows_u", "value": "yes" } },
    "responses": [
      {
        "text": "What's wrong?",
        "topic": "TALK_NPC_EVAC_SURVIVOR_CALM",
        "condition": { "not": { "compare_string": [ "yes", { "npc_val": "dialogue_first_meeting_knows_u" } ] } }
      },
      {
        "text": "<greet>.",
        "topic": "TALK_NPC_EVAC_SURVIVOR_INTRO",
        "condition": { "compare_string": [ "yes", { "npc_val": "dialogue_first_meeting_knows_u" } ] }
      },
      { "text": "<end_talking_bye>", "topic": "TALK_DONE" }
    ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_NPC_EVAC_SURVIVOR_CALM",
    "dynamic_line": {
      "gendered_line": "Oh, you're not one of them.  Those <zombies>, I mean.  Come on in, just don't cause any trouble.",
      "relevant_genders": [ "u" ]
    },
    "responses": [
      { "text": "Alright, let's chat.", "topic": "TALK_NPC_EVAC_SURVIVOR_INTRO" },
      { "text": "<end_talking_later>", "topic": "TALK_DONE" }
    ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_NPC_EVAC_SURVIVOR_INTRO",
    "dynamic_line": "So, what's up?",
    "responses": [
      { "text": "What are you doing here?", "topic": "TALK_NPC_EVAC_SURVIVOR_STORY" },
      {
        "text": "I'd like to ask you a few questions.",
        "topic": "TALK_FRIEND_CONVERSATION",
        "condition": {
          "and": [
            { "math": [ "n_npc_trust() >= 2" ] },
            { "compare_string": [ "yes", { "npc_val": "dialogue_first_meeting_knows_u" } ] }
          ]
        }
      },
      { "text": "Care to trade?", "topic": "TALK_NPC_EVAC_SURVIVOR_INTRO", "effect": "start_trade" },
      {
        "text": "Why don't you come with me?",
        "trial": { "type": "PERSUADE", "difficulty": -15, "mod": [ [ "value", 2 ] ] },
        "success": { "topic": "TALK_AGREE_FOLLOW", "effect": "follow", "opinion": { "trust": 1, "value": 1 } },
        "failure": { "topic": "TALK_DENY_FOLLOW", "effect": "deny_follow", "opinion": { "trust": 0, "fear": 0 } }
      },
      {
        "text": "Any jobs you need done?",
        "condition": { "and": [ { "not": "has_assigned_mission" }, { "not": "has_many_assigned_missions" } ] },
        "topic": "TALK_MISSION_LIST"
      },
      { "text": "<end_talking_leave>", "topic": "TALK_DONE" }
    ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_NPC_EVAC_SURVIVOR_STORY",
    "dynamic_line": {
      "gendered_line": "I found this emergency shelter when I was running from the chaos back in the cities.  Fortunately, the place hadn't been looted yet and there weren't any <zombies> lurking around; just the spot to stay 'till who knows when.",
      "relevant_genders": [ "npc" ]
    },
    "responses": [ { "text": "Wow.", "topic": "TALK_NONE" } ]
  }
]
