[
  {
    "type": "npc",
    "id": "refugee_PabloNunez",
    "name_unique": "Pablo Nunez",
    "gender": "male",
    "name_suffix": "refugee",
    "class": "NC_REFUGEE_Pablo",
    "attitude": 0,
    "mission": 7,
    "chat": "TALK_REFUGEE_Pablo_1",
    "age": 28,
    "height": 184,
    "str": 10,
    "dex": 8,
    "int": 10,
    "per": 10,
    "personality": { "aggression": -10, "bravery": -5, "collector": 2, "altruism": 3 },
    "faction": "free_merchants"
  },
  {
    "type": "npc_class",
    "id": "NC_REFUGEE_Pablo",
    "name": { "str": "Refugee" },
    "job_description": "I'm just trying to survive.",
    "common": false,
    "//": "Pablo is a young professional who survived with his wife, but she was pregnant and lost the baby.",
    "worn_override": "REFUGEE_Pablo_worn",
    "carry_override": "REFUGEE_Pablo_carried",
    "weapon_override": "REFUGEE_Pablo_wield",
    "traits": [
      { "trait": "QUICK" },
      { "trait": "Exp_Bookkeeping1" },
      { "trait": "SKIN_MEDIUM" },
      { "trait": "eye_color", "variant": "brown" },
      { "trait": "hair_short", "variant": "black" },
      { "trait": "NO_BASH" },
      { "trait": "RETURN_TO_START_POS" }
    ],
    "skills": [
      { "skill": "bashing", "bonus": 1 },
      { "skill": "computer", "bonus": 4 },
      { "skill": "cooking", "bonus": 1 },
      { "skill": "driving", "bonus": 2 },
      { "skill": "fabrication", "bonus": 1 },
      { "skill": "mechanics", "bonus": 1 },
      { "skill": "melee", "bonus": 2 },
      { "skill": "speech", "bonus": 2 },
      { "skill": "swimming", "bonus": 1 }
    ]
  },
  {
    "type": "item_group",
    "id": "REFUGEE_Pablo_worn",
    "subtype": "collection",
    "entries": [
      { "item": "boxer_briefs" },
      { "item": "socks" },
      { "item": "tank_top" },
      { "item": "striped_shirt" },
      { "item": "pants" },
      { "item": "jacket_evac" },
      { "item": "porkpie" },
      { "item": "dress_shoes" }
    ]
  },
  {
    "type": "item_group",
    "id": "REFUGEE_Pablo_carried",
    "subtype": "collection",
    "entries": [ { "item": "knife_swissarmy" } ]
  },
  {
    "type": "item_group",
    "id": "REFUGEE_Pablo_wield",
    "subtype": "collection",
    "entries": [ { "item": "heavy_flashlight", "ammo-item": "battery", "charges": 200 } ]
  },
  {
    "type": "talk_topic",
    "//": "common talk responses",
    "id": [
      "TALK_REFUGEE_Pablo_1_firstmeet",
      "TALK_REFUGEE_Pablo_2",
      "TALK_REFUGEE_Pablo_Background1",
      "TALK_REFUGEE_Pablo_Background2_pregnancy",
      "TALK_REFUGEE_Pablo_Background2_sorry",
      "TALK_REFUGEE_Pablo_Background2_survivors",
      "TALK_REFUGEE_Pablo_Background2_cleared",
      "TALK_REFUGEE_Pablo_Situation",
      "TALK_REFUGEE_Pablo_Tacoma",
      "TALK_REFUGEE_Pablo_Tacoma2",
      "TALK_REFUGEE_Pablo_Recruit"
    ],
    "responses": [
      {
        "text": "I'm trying to put a cleanup crew together to tidy up the back room.  Can you help?",
        "condition": {
          "and": [
            { "u_has_mission": "MISSION_REFUGEE_Boris_CLEANUP" },
            {
              "not": { "npc_has_var": "cleanup_asked", "type": "mission", "context": "Boris_mission_1", "value": "yes" }
            }
          ]
        },
        "topic": "TALK_REFUGEE_Refuse_Boris_Mission_1"
      },
      { "text": "What's your story?", "topic": "TALK_REFUGEE_Pablo_Background1" },
      { "text": "How are things here?", "topic": "TALK_REFUGEE_Pablo_Situation" },
      {
        "text": "Dana wanted me to be the one to let you know: they've got work for you over at the ranch.  You could get out of here if you want.",
        "topic": "TALK_REFUGEE_Pablo_Tacoma2",
        "condition": {
          "and": [
            { "u_has_mission": "MISSION_TACOMA_Nunez" },
            { "u_has_var": "Nunez_Tacoma", "type": "recruit", "context": "general", "value": "phase_3" }
          ]
        }
      },
      { "text": "What were you saying before?", "topic": "TALK_NONE" },
      { "text": "I'd better get going.  Bye, Pablo.", "topic": "TALK_DONE" }
    ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_REFUGEE_Pablo_1",
    "dynamic_line": "*looks up at you with a young faced lined prematurely with concern.  \"Hi there.  I'm Pablo, nice to see a new face.\"",
    "speaker_effect": {
      "effect": [
        { "u_add_var": "u_met_Pablo_Nunez", "type": "general", "context": "meeting", "value": "yes" },
        { "npc_first_topic": "TALK_REFUGEE_Pablo_1a" }
      ]
    },
    "responses": [
      { "text": "Pablo, hey?  Nice to meet you.", "topic": "TALK_REFUGEE_Pablo_1_firstmeet" },
      { "text": "Hi Pablo, nice to meet you.  I gotta go though.", "topic": "TALK_DONE" }
    ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_REFUGEE_Pablo_1a",
    "dynamic_line": {
      "concatenate": [
        "*dusts off his jacket and makes eye contact with you.  \"",
        [ "Hello, nice to see you again.", "It's good to see you're still around." ],
        "\""
      ]
    },
    "responses": [
      { "text": "Hi, Pablo.  What's up?", "topic": "TALK_REFUGEE_Pablo_2" },
      { "text": "Hi Pablo, nice to see you too.  I gotta go though.", "topic": "TALK_DONE" }
    ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_REFUGEE_Pablo_1_firstmeet",
    "dynamic_line": "We don't get many new faces around here.  How can I help you?"
  },
  {
    "type": "talk_topic",
    "id": "TALK_REFUGEE_Pablo_2",
    "dynamic_line": "It's been a rough time, adapting to everything that's going on.  What would you like to know about?"
  },
  {
    "type": "talk_topic",
    "id": "TALK_REFUGEE_Pablo_Background1",
    "dynamic_line": "I was an accountant before.  Just finished my CPA last year and I already had a position as a manager at my firm.  Everything was looking good.  We decided we were ready for a baby.  Hindsight makes us idiots, hey?",
    "responses": [ { "text": "How did you wind up in this place?", "topic": "TALK_REFUGEE_Pablo_Background2" } ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_REFUGEE_Pablo_Background2",
    "dynamic_line": "Dana and I were evacuated early, because of her pregnancy.  They took us to a concentration center, and then we got on a bus to come here.  The bus though, it was rolled over by a giant monster, and many died.  We made it out along with a few others, and we kept going until we made it here.  It wasn't much farther, and for some reason the monster didn't chase us, just kept tearing at the bus.",
    "responses": [
      { "text": "What about the pregnancy?", "topic": "TALK_REFUGEE_Pablo_Background2_pregnancy" },
      { "text": "What happened to the other crash survivors?", "topic": "TALK_REFUGEE_Pablo_Background2_survivors" },
      { "text": "What were you saying before?", "topic": "TALK_NONE" },
      { "text": "I'd better get going.  Bye, Pablo.", "topic": "TALK_DONE" }
    ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_REFUGEE_Pablo_Background2_pregnancy",
    "dynamic_line": "The doctor did what she could but after the accident and the stress of the attack… No.",
    "responses": [ { "text": "I'm sorry for your loss.", "topic": "TALK_REFUGEE_Pablo_Background2_sorry" } ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_REFUGEE_Pablo_Background2_sorry",
    "dynamic_line": "Thanks.  No, really, thank you.  Others have gone through so much I feel like we should suck it up, but Rhy says we should let ourselves mourn properly and she seems to know her stuff."
  },
  {
    "type": "talk_topic",
    "id": "TALK_REFUGEE_Pablo_Background2_survivors",
    "dynamic_line": "\"From the bus?  A few of us made it in the end; the Singh family were on that bus with us.  We were some of the last refugees to arrive.\"  He gestures to three people gathered together a short distance away.  \"They put us into a room for processing, where a bunch of the wounded were being handled as best as they could manage.  They were short staffed though, and they missed one.  We all thought he was just having a nap, but he wasn't,\" Pablo wipes his face with his hand and pauses for a moment.  \"When he got back up as a zombie, there was a huge panic.  Gunshots in a small, crowded room, and trampling… it was really ugly.  We were close to the door and managed to get out right away, but then a couple panicking people closed the place off and left innocent people in there for what seemed like ages, calling it an 'outbreak'.  By the time leveler heads prevailed, there weren't many people left in there to recover.\"",
    "responses": [
      {
        "text": "I've been back to the quarantined area, cleared it out.  It was ugly back there.",
        "topic": "TALK_REFUGEE_Pablo_Background2_cleared",
        "condition": { "u_has_var": "FMShopkeep_Mission1", "type": "mission", "context": "flag", "value": "yes" }
      }
    ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_REFUGEE_Pablo_Background2_cleared",
    "dynamic_line": "Thanks for that, both for taking away the constant worry about all those <zombies> close at hand, and for putting those poor souls at rest at last."
  },
  {
    "type": "talk_topic",
    "id": "TALK_REFUGEE_Pablo_Situation",
    "dynamic_line": {
      "u_compare_var": "refugee_happiness",
      "type": "counter",
      "context": "refugee_center",
      "op": ">=",
      "value": 5,
      "yes": "It's pretty tough here.  People have made so much effort to make things better, and the group is kind of coming together, but I just don't feel like I could ever belong, you know?  I need somewhere with a sky, and a little privacy.",
      "no": "It's pretty tough here.  We're packed into too small a location with too many people.  Everyone is dealing with their own trauma.  Rhy is trying to help out, but she can't be a proper counselor in these circumstances.  I don't know how we're going to survive for long.  As for me, I wish I could be anywhere but here.  I need to see the sky again, or I'm going to go insane."
    },
    "responses": [
      {
        "text": "Why not move to the Tacoma Commune?",
        "topic": "TALK_REFUGEE_Pablo_Tacoma",
        "effect": { "assign_mission": "MISSION_TACOMA_Nunez" },
        "condition": {
          "and": [
            { "u_has_var": "tacoma_started", "type": "knowledge", "context": "flag", "value": "yes" },
            { "not": { "u_has_mission": "MISSION_TACOMA_Nunez" } }
          ]
        }
      },
      {
        "text": "I've got a secure base.  You and your wife could come with me.",
        "topic": "TALK_REFUGEE_Pablo_Recruit",
        "effect": { "u_add_var": "Pablo_ask_recruit", "type": "recruit", "context": "general", "value": "yes" },
        "condition": "u_has_camp"
      }
    ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_REFUGEE_Pablo_Tacoma",
    "dynamic_line": "I heard about that place.  What use would they have for an accountant, though?  If they have work for my wife Dana and I, I'd definitely consider it."
  },
  {
    "type": "talk_topic",
    "id": "TALK_REFUGEE_Pablo_Tacoma2",
    "dynamic_line": "This is amazing news!  Thank you so much!  I've talked to some of the traders who have been there and I really think I can help, mostly with the manual labor but also with the bookkeeping end.  It sounds so much better than this place.  Thanks, my friend!  We'll get packing, and see if we can get a place on the next caravan out.  It'll be a little while I'm sure, but at least our child won't be born in captivity.",
    "speaker_effect": {
      "effect": [
        { "finish_mission": "MISSION_TACOMA_Nunez", "success": true },
        { "math": [ "nunez_travel_timer", "=", "u_val('time_since_cataclysm: days') + 2" ] },
        { "math": [ "nunez_travel_stage", "=", "1" ] }
      ]
    }
  },
  {
    "type": "talk_topic",
    "id": "TALK_REFUGEE_Pablo_Recruit",
    "dynamic_line": "Really?  I might consider it.  Talk to my wife, Dana.  She's put down a lot more roots here, it would be up to her I think.  I'd go anywhere right now."
  },
  {
    "id": "MISSION_TACOMA_Nunez",
    "type": "mission_definition",
    "name": { "str": "Find out if the Nunez family can find work at Tacoma Ranch." },
    "goal": "MGOAL_NULL",
    "difficulty": 2,
    "value": 1000,
    "origins": [ "ORIGIN_SECONDARY" ],
    "dialogue": {
      "describe": "Find out if the Nunez family can find work at Tacoma Ranch.",
      "offer": "n/a",
      "accepted": "n/a",
      "rejected": "n/a",
      "advice": "n/a",
      "inquire": "n/a",
      "success": "n/a",
      "success_lie": "n/a",
      "failure": "n/a"
    }
  }
]
