[
  {
    "type": "npc",
    "id": "NC_caravan_refugee_A",
    "//": "Random NPC, can direct you to the free merchants and nearest FEMA camp.",
    "name_suffix": "refugee",
    "class": "NC_SCAVENGER",
    "attitude": 0,
    "mission": 7,
    "chat": "TALK_CARAVAN_REFUGEE_A1",
    "faction": "wasteland_scavengers"
  },
  {
    "type": "npc",
    "id": "NC_caravan_refugee_B",
    "//": "Random NPC, can be recruited away.",
    "name_suffix": "refugee",
    "class": "NC_SCAVENGER",
    "attitude": 0,
    "mission": 8,
    "chat": "TALK_CARAVAN_REFUGEE_B1",
    "faction": "wasteland_scavengers"
  },
  {
    "type": "npc",
    "id": "NC_caravan_refugee_C",
    "//": "Random NPC, demands heroin and can accept.",
    "name_suffix": "refugee",
    "class": "NC_SCAVENGER",
    "attitude": 0,
    "mission": 7,
    "chat": "TALK_CARAVAN_REFUGEE_C1",
    "faction": "wasteland_scavengers"
  },
  {
    "type": "talk_topic",
    "id": "TALK_CARAVAN_REFUGEE_A1",
    "dynamic_line": "Please don't hurt us, we're just trying to get to safety.",
    "speaker_effect": { "effect": { "npc_first_topic": "TALK_CARAVAN_REFUGEE_A2" } },
    "responses": [
      { "text": "What's your situation here?", "topic": "TALK_CARAVAN_REFUGEE_A1_Job" },
      {
        "text": "I don't mean any harm.  I'm looking for a specific, strange building.  I wonder if you've heard anything about it?",
        "topic": "TALK_CARAVAN_REFUGEES_EXODII_MISSION_WAREHOUSE",
        "condition": {
          "and": [
            { "u_has_mission": "EXODII_MISSION_WAREHOUSE" },
            { "not": { "compare_string": [ "yes", { "npc_val": "asked_about_exodii_warehouse_mission" } ] } }
          ]
        },
        "effect": { "run_eocs": [ "EOC_exodii_mission_wh_directions_chance" ] }
      },
      { "text": "I don't have time for zombie bait like you.", "topic": "TALK_DONE" }
    ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_CARAVAN_REFUGEE_A2",
    "dynamic_line": { "gendered_line": "You again.  Any good news?  Haven't heard any in a long time.", "relevant_genders": [ "npc" ] },
    "responses": [
      { "text": "What's your story?", "topic": "TALK_CARAVAN_REFUGEE_A_Story" },
      { "text": "No, I don't have any.", "topic": "TALK_DONE" }
    ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_CARAVAN_REFUGEE_A1_Job",
    "dynamic_line": "We're just trying to find a safe place right now.  I think there's a FEMA camp nearby that should have room for us.",
    "responses": [
      { "text": "That's it?  What's your story?", "topic": "TALK_CARAVAN_REFUGEE_A_Story" },
      { "text": "Good luck with that.  <end_talking_leave>", "topic": "TALK_DONE" }
    ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_CARAVAN_REFUGEES_EXODII_MISSION_WAREHOUSE",
    "dynamic_line": {
      "concatenate": [
        "&You describe the warehouse to the best of your ability.  The refugee nods along",
        {
          "compare_string": [ "no", { "npc_val": "exodii_mission_wh_correct" } ],
          "yes": ", then frowns.  \"Nope, not ringing any bells, sorry.\"",
          "no": {
            "gendered_line": ", looking thoughtful.  \"Maybe, yeah.  I saw a weird building sort of like that a while back, but we were on the move and couldn't stop to check it out.\"",
            "relevant_genders": [ "npc" ]
          }
        }
      ]
    },
    "speaker_effect": { "effect": { "npc_add_var": "asked_about_exodii_warehouse_mission", "value": "yes" } },
    "responses": [
      {
        "//": "The other responses are stored in common_talk.json in the exodii folder, to avoid repetition.",
        "text": "Oh well.  Thanks anyway.  I'll go ask around.",
        "topic": "TALK_DONE",
        "condition": { "compare_string": [ "no", { "npc_val": "exodii_mission_wh_correct" } ] },
        "effect": [
          { "math": [ "exodii_mission_wh_chance", "-=", "1" ] },
          { "math": [ "exodii_mission_wh_chance = max( exodii_mission_wh_chance, 1 )" ] }
        ]
      }
    ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_CARAVAN_REFUGEE_A_Story",
    "dynamic_line": "We were at the same little evacuation hut, but it was all messed up, just used condoms and broken bottles and lipstick writing on the walls.  We found another group of refugees like us on the road, but they had all been killed, all ripped up, blood everywhere.  We took their food and made it all the way to a big refugee center, but somebody there with a gun told us there was no room, so we're going to a FEMA camp.  They should have more room and supplies.  No guarantees, but it's a chance.",
    "responses": [
      {
        "text": "Can you give me directions to that FEMA camp?  I want to go there too if it's so great.",
        "topic": "TALK_CARAVAN_REFUGEE_A_FEMA"
      },
      {
        "text": "I haven't been to any refugee center.  Can you tell me where it is?",
        "topic": "TALK_CARAVAN_REFUGEE_A_CENTER",
        "condition": {
          "and": [
            { "not": { "u_has_mission": "MISSION_REACH_REFUGEE_CENTER" } },
            { "not": { "compare_string": [ "yes", { "u_val": "found_refugee_center" } ] } }
          ]
        }
      },
      { "text": "Thanks for the story.  <end_talking_leave>", "topic": "TALK_DONE" }
    ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_CARAVAN_REFUGEE_A_FEMA",
    "dynamic_line": "Of course, we're all in this together.  Let me mark that on your map.",
    "speaker_effect": { "effect": { "assign_mission": "MISSION_REACH_FEMA_CA" } },
    "responses": [
      {
        "text": "I haven't been to any refugee center.  Can you tell me where it is?",
        "topic": "TALK_CARAVAN_REFUGEE_A_CENTER",
        "condition": {
          "and": [
            { "not": { "u_has_mission": "MISSION_REACH_REFUGEE_CENTER" } },
            { "not": { "compare_string": [ "yes", { "u_val": "found_refugee_center" } ] } }
          ]
        }
      },
      { "text": "Thanks for the information.  <end_talking_leave>", "topic": "TALK_DONE" }
    ]
  },
  {
    "id": "MISSION_REACH_FEMA_CA",
    "type": "mission_definition",
    "name": { "str": "Reach FEMA Camp" },
    "goal": "MGOAL_GO_TO_TYPE",
    "difficulty": 2,
    "value": 60000,
    "start": { "assign_mission_target": { "om_terrain": "fema", "reveal_radius": 5, "om_special": "FEMA Camp" } },
    "origins": [ "ORIGIN_SECONDARY" ],
    "destination": "fema",
    "dialogue": {
      "describe": "Things must be better at the camp…",
      "offer": "We're all in this together, looking forward to meeting you there.",
      "accepted": "Everything is going to be all right.",
      "rejected": "No worries friend, good luck to you.",
      "advice": "The hard part is getting there.",
      "inquire": "Any progress on getting to the camp?",
      "success": "Well, success I guess.",
      "success_lie": "Thanks for trying… I guess.",
      "failure": "Such a disappointment…"
    }
  },
  {
    "type": "talk_topic",
    "id": "TALK_CARAVAN_REFUGEE_A_CENTER",
    "dynamic_line": "Here, I'll mark it on your map.  I wouldn't bet they'll treat you any differently than us though.  You might try and bring something to trade, they like that.",
    "speaker_effect": { "effect": { "assign_mission": "MISSION_REACH_REFUGEE_CENTER" } },
    "responses": [
      {
        "text": "Can you give me directions to where you're going too?  I love cartography.",
        "topic": "TALK_CARAVAN_REFUGEE_A_FEMA"
      },
      { "text": "Thanks for the information.  <end_talking_leave>", "topic": "TALK_DONE" }
    ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_CARAVAN_REFUGEE_B1",
    "dynamic_line": "Looking good there.  I like your whole setup.  What's your story?",
    "speaker_effect": { "effect": { "npc_first_topic": "TALK_CARAVAN_REFUGEE_B2" } },
    "responses": [
      { "text": "What are you doing here?", "topic": "TALK_CARAVAN_REFUGEE_B1_Job" },
      { "text": "Not interested.", "topic": "TALK_DONE" }
    ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_CARAVAN_REFUGEE_B2",
    "dynamic_line": "Nice.  Good to see you again.  What do you want from me?",
    "responses": [
      { "text": "What are you doing here?", "topic": "TALK_CARAVAN_REFUGEE_B1_Job" },
      {
        "truefalsetext": { "true": "You should come with me instead.", "false": "You should definitely come with me instead." },
        "trial": { "type": "SKILL_CHECK", "difficulty": 3, "skill_required": "speech" },
        "success": { "topic": "TALK_CARAVAN_REFUGEE_B1_Join_Yes" },
        "failure": { "topic": "TALK_CARAVAN_REFUGEE_B1_Join_No" }
      },
      { "text": "Nothing, just saying hi.", "topic": "TALK_DONE" }
    ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_CARAVAN_REFUGEE_B1_Job",
    "dynamic_line": {
      "gendered_line": "I'm a refugee, but don't get the wrong idea.  I've got big dreams of settling down after this and starting a big family.  I just need to find the right place and the right person.  Last couple of places didn't work out so well.",
      "relevant_genders": [ "npc" ]
    },
    "responses": [
      { "text": "So you're not attached right now?", "topic": "TALK_CARAVAN_REFUGEE_B1_Attached" },
      {
        "truefalsetext": { "true": "You should come with me instead.", "false": "You should definitely come with me instead." },
        "trial": { "type": "SKILL_CHECK", "difficulty": 3, "skill_required": "speech" },
        "success": { "topic": "TALK_CARAVAN_REFUGEE_B1_Join_Yes" },
        "failure": { "topic": "TALK_CARAVAN_REFUGEE_B1_Join_No" }
      },
      {
        "text": "Why, where were you before?",
        "topic": "TALK_CARAVAN_REFUGEE_B1_Directions",
        "condition": {
          "and": [
            { "not": { "u_has_mission": "MISSION_REACH_REFUGEE_CENTER" } },
            { "not": { "compare_string": [ "yes", { "u_val": "found_refugee_center" } ] } }
          ]
        }
      },
      { "text": "Not interested.  <end_talking_leave>", "topic": "TALK_DONE" }
    ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_CARAVAN_REFUGEE_B1_Attached",
    "dynamic_line": "No, I'm not really with them.  We just got stuck together in the same messed up evacuation place.  This one guy was really nice, but they wouldn't let us stay.  They got there first so they told us we needed to find our own place, but if we got anything they wanted they'd trade some of the stuff they have.  I tried to talk them into helping but they were so cold to me.",
    "responses": [
      {
        "truefalsetext": { "true": "You should come with me instead.", "false": "You should definitely come with me instead." },
        "trial": { "type": "SKILL_CHECK", "difficulty": 3, "skill_required": "speech" },
        "success": { "topic": "TALK_CARAVAN_REFUGEE_B1_Join_Yes" },
        "failure": { "topic": "TALK_CARAVAN_REFUGEE_B1_Join_No" }
      },
      {
        "text": "How do I get there?",
        "topic": "TALK_CARAVAN_REFUGEE_B1_Directions",
        "condition": {
          "and": [
            { "not": { "u_has_mission": "MISSION_REACH_REFUGEE_CENTER" } },
            { "not": { "compare_string": [ "yes", { "u_val": "found_refugee_center" } ] } }
          ]
        }
      },
      { "text": "Yeah, I guess it's hard all over.  <end_talking_leave>", "topic": "TALK_DONE" }
    ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_CARAVAN_REFUGEE_B1_Join_Yes",
    "dynamic_line": "This is the beginning of a beautiful thing.  I'm with you.",
    "speaker_effect": { "effect": "follow" },
    "responses": [ { "text": "Yes!", "topic": "TALK_DONE" } ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_CARAVAN_REFUGEE_B1_Join_No",
    "dynamic_line": "Actually, I think I'm on the right track here, but you might have some luck finding a little something something back at the Free Merchant base.  They seemed pretty desperate.",
    "responses": [
      {
        "text": "Of course.  How do I get there?",
        "topic": "TALK_CARAVAN_REFUGEE_B1_Directions",
        "condition": {
          "and": [
            { "not": { "u_has_mission": "MISSION_REACH_REFUGEE_CENTER" } },
            { "not": { "compare_string": [ "yes", { "u_val": "found_refugee_center" } ] } }
          ]
        }
      },
      { "text": "Yes.  I'll be on my way then.", "topic": "TALK_DONE" }
    ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_CARAVAN_REFUGEE_B1_Directions",
    "dynamic_line": "Sure, I can mark it on your map if you like.  Here.",
    "speaker_effect": { "effect": { "assign_mission": "MISSION_REACH_REFUGEE_CENTER" } },
    "responses": [
      { "text": "Thanks for the tip!  <done_conversation_section>", "topic": "TALK_NONE" },
      { "text": "Thanks for the tip!  <end_talking_leave>", "topic": "TALK_DONE" }
    ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_CARAVAN_REFUGEE_C1",
    "dynamic_line": "Hey man.  Do you have any heroin?  I'm in a bit of a bind.",
    "responses": [
      { "text": "Oh, uh, sorry.", "topic": "TALK_DONE" },
      {
        "text": "Never, that heroin is for me and me alone.",
        "condition": { "u_has_item": "heroin" },
        "topic": "TALK_DONE"
      },
      {
        "text": "I think you might need it even more than me.  Here you go.",
        "condition": { "u_has_item": "heroin" },
        "effect": { "u_sell_item": "heroin" },
        "opinion": { "trust": 2, "value": 2 },
        "topic": "TALK_CARAVAN_REFUGEE_C_LOVE"
      }
    ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_CARAVAN_REFUGEE_C_LOVE",
    "dynamic_line": "I love you.",
    "responses": [ { "text": "Oh, uh, thanks.  I guess.", "topic": "TALK_DONE" }, { "text": "No thank you.", "topic": "TALK_DONE" } ]
  }
]
