[
  {
    "type": "npc",
    "id": "tacoma_PabloNunez",
    "name_unique": "Pablo Nunez",
    "gender": "male",
    "name_suffix": "bookkeeper",
    "class": "NC_TACOMA_Pablo",
    "attitude": 0,
    "mission": 7,
    "chat": "TALK_TACOMA_Pablo_1",
    "age": 28,
    "height": 184,
    "str": 10,
    "dex": 8,
    "int": 10,
    "per": 10,
    "personality": { "aggression": 1, "bravery": 3, "collector": 1, "altruism": 3 },
    "faction": "free_merchants"
  },
  {
    "type": "npc_class",
    "id": "NC_TACOMA_Pablo",
    "name": { "str": "Bookkeeper" },
    "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": "TACOMA_Pablo_worn",
    "carry_override": "TACOMA_Pablo_carried",
    "weapon_override": "TACOMA_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": 3 },
      { "skill": "computer", "bonus": 4 },
      { "skill": "cooking", "bonus": 1 },
      { "skill": "driving", "bonus": 2 },
      { "skill": "fabrication", "bonus": 2 },
      { "skill": "mechanics", "bonus": 2 },
      { "skill": "melee", "bonus": 3 },
      { "skill": "speech", "bonus": 2 },
      { "skill": "swimming", "bonus": 1 }
    ]
  },
  {
    "type": "item_group",
    "id": "TACOMA_Pablo_worn",
    "subtype": "collection",
    "entries": [
      { "item": "boxer_briefs" },
      { "item": "socks" },
      { "item": "tank_top" },
      { "item": "striped_shirt" },
      { "item": "pants" },
      { "item": "armor_scrapsuit" },
      { "item": "helmet_scrap" },
      { "item": "motorbike_boots" }
    ]
  },
  {
    "type": "item_group",
    "id": "TACOMA_Pablo_carried",
    "subtype": "collection",
    "entries": [ { "item": "knife_swissarmy" } ]
  },
  {
    "type": "item_group",
    "id": "TACOMA_Pablo_wield",
    "subtype": "collection",
    "entries": [ { "item": "bat_metal" } ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_TACOMA_Pablo_1",
    "dynamic_line": "*looks up at you from a ledger, takes a moment to place you, then smiles broadly.  \"Great to see you, my friend.  To what do I owe the pleasure?\"",
    "responses": [
      { "text": "Hi, Pablo!  How are things going here?", "topic": "TALK_TACOMA_Pablo_2" },
      { "text": "Hello, Pablo!  What's with the trailer?", "topic": "TALK_TACOMA_Pablo_Trailer1" },
      {
        "text": "Hey, Pablo!  I heard you might be willing to trade for propane?",
        "topic": "TALK_TACOMA_Pablo_Propane1",
        "condition": { "u_has_var": "propane_scavenging", "context": "knowledge", "value": "knows" }
      },
      {
        "text": "Hey, Pablo!  Dana said you had some plans to build a bakery?",
        "topic": "TALK_TACOMA_Pablo_Bakery1",
        "condition": { "u_has_var": "tacoma_bakery", "context": "knowledge", "value": "knows" }
      },
      { "text": "Just popping in to say hi.  Talk to you later!", "topic": "TALK_DONE" }
    ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_TACOMA_Pablo_2",
    "dynamic_line": "Can't complain,\" he stretches his neck and pops his shoulder.  \"No, really, I can't.  The work is hard, but people here really want to *do* something, not just hide inside and hope someone saves us.  I've been helping doing general labor a bit, but also working out an inventory system for our supplies.  It's already helped us get a few important bits in earlier than we'd have noticed otherwise.  Post-apocalyptic accounting, ha!  Who'd have thought?\"",
    "responses": [
      { "text": "Keeping inventory is similar to accounting?  Really?", "topic": "TALK_TACOMA_Pablo_Accounting1" },
      { "text": "What were you saying before?", "topic": "TALK_NONE" },
      { "text": "Well, I'd better go.", "topic": "TALK_DONE" }
    ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_TACOMA_Pablo_Accounting1",
    "dynamic_line": "If you want the honest truth, only a bit.  It's not much like filing income tax.  Still, I know my way around a spreadsheet and I don't mind staring at numbers all day.  I think people were dubious at first, but now that it's starting to show real value they're coming around.\"",
    "responses": [
      { "text": "What were you saying before?", "topic": "TALK_NONE" },
      { "text": "Well, I'd better go.", "topic": "TALK_DONE" }
    ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_TACOMA_Pablo_Trailer1",
    "dynamic_line": "Oh, Dana tells that story better than me.  Basically we found it at an old trailer park and she liked the bakery, so we figured out a way to get it back here.  We definitely earned some cred for coming with our own shelter.",
    "responses": [
      { "text": "What were you saying before?", "topic": "TALK_NONE" },
      { "text": "Well, I'd better go.", "topic": "TALK_DONE" }
    ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_TACOMA_Pablo_Bakery1",
    "dynamic_line": "Yeah, she would say that.\"  He makes intense eye contact.  \"Not just a bakery, my friend.  A real, post apocalyptic, honest-to-god culinary experience!  We're planning to grow food and crops here.  Central's plan is to import our crops directly, and pay us for our work.  I don't think they've even thought much about transport, outside just shipping them back home.  If we do local site processing we can prevent storage losses, and make higher value material to sell out!  And Central still benefits from having a dedicated bread basket!",
    "responses": [
      { "text": "Do you know anything about building a 'culinary experience'?", "topic": "TALK_TACOMA_Pablo_Bakery2" },
      { "text": "What were you saying before?", "topic": "TALK_NONE" },
      { "text": "Well, I'd better go.", "topic": "TALK_DONE" }
    ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_TACOMA_Pablo_Bakery2",
    "dynamic_line": "I'm being a bit tongue-in-cheek there.  Really I want some big wood fired ovens, tools for milling grain, tinning and canning equipment, stuff like that.  We'll make flour, jam, pickles, bread, maybe some sauerkraut and things.  All the old school ways of preserving food, from before fridges were commonplace.",
    "responses": [
      { "text": "Okay, but do you know anything about that?", "topic": "TALK_TACOMA_Pablo_Bakery3" },
      { "text": "What were you saying before?", "topic": "TALK_NONE" },
      { "text": "Well, I'd better go.", "topic": "TALK_DONE" }
    ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_TACOMA_Pablo_Bakery3",
    "dynamic_line": "Well…\" he tugs jokingly at his collar as though letting off steam.  \"I know a bit.  I used to make pickles and jams as a hobby.  With my mom.  When I was a teenager.  But I know the principles!  And Dana knows more than you'd think about grain and flour because she's a huge nerd for her craft.  We do have some knowledge gaps between design and implementation though.",
    "responses": [
      { "text": "What kind of gaps?", "topic": "TALK_TACOMA_Pablo_Bakery4" },
      { "text": "What were you saying before?", "topic": "TALK_NONE" },
      { "text": "Well, I'd better go.", "topic": "TALK_DONE" }
    ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_TACOMA_Pablo_Bakery4",
    "dynamic_line": "Not where you might think.\"  He sets aside his ledger and pulls out a page of bullet-point notes written in neat block letters.  \"Everyone is on board with the idea and the amount of actual building to get it online is small enough that the carpenters are willing to help out, so I don't need any assistance with design.  For the really short term I basically just need materials.  I've been collecting spare wood, but to get a good wood-fired oven I need to secure a source of firebrick.  In the longer run, Dana knows the principles of milling, but I need a resource book if I want to set up a functioning mill, first a muscle-powered one and then a windmill for long term.  I wish I'd thought of asking Jenny.  She's a mechanical engineer, but she would probably know how to get me started at least.  I'm also still looking into how to make a good vermin-proof cellar.  Longer term, I will need to work my way around our reliance on sugar, salt, and vinegar from before the cataclysm, but our stocks of those will hold out for months while I sort things out.",
    "speaker_effect": {
      "effect": [
        { "u_add_var": "tacoma_mill", "context": "message_jenny", "value": "known" },
        { "u_add_var": "tacoma_bakery", "context": "firebricks", "value": "known" },
        { "u_add_var": "tacoma_bakery", "context": "rootcellar", "value": "known" }
      ]
    },
    "responses": [
      { "text": "What were you saying before?", "topic": "TALK_NONE" },
      { "text": "Well, I'd better go.", "topic": "TALK_DONE" }
    ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_TACOMA_Pablo_Bakery-Firebricks1",
    "dynamic_line": "Seriously?  You've already done so much.  I won't say no, though.",
    "speaker_effect": {
      "effect": [
        { "assign_mission": "MISSION_TACOMA_Pablo_Firebricks" },
        { "u_add_var": "tacoma_bakery", "context": "firebricks", "value": "helped" }
      ]
    },
    "responses": [
      { "text": "No problem.  What were you saying before?", "topic": "TALK_NONE" },
      { "text": "Well, I'd better go look into that.", "topic": "TALK_DONE" }
    ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_TACOMA_Pablo_Bakery-Engineer1",
    "dynamic_line": "I… I honestly don't know why I didn't think of that.  I could even have asked the supply caravans to do it.  If it comes down to it though, I trust you more than them.  Would you mind?",
    "speaker_effect": {
      "effect": [
        { "assign_mission": "MISSION_TACOMA_Pablo_Message" },
        { "u_add_var": "tacoma_mill", "context": "message_jenny", "value": "helped" }
      ]
    },
    "responses": [
      { "text": "Sure.  What were you saying before?", "topic": "TALK_NONE" },
      { "text": "Sure, I'll see what I can do.", "topic": "TALK_DONE" }
    ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_TACOMA_Pablo_Bakery-RootCellar1",
    "dynamic_line": "Oh… oh, ok!  It's a good thing you showed me this, my basic guesses missed some important points.  Thanks, this will be helpful for a lot more than just the bakery.",
    "speaker_effect": { "effect": { "npc_add_var": "tacoma_bakery", "context": "rootcellar", "value": "helped" } },
    "responses": [
      { "text": "No problem.  What were you saying before?", "topic": "TALK_NONE" },
      { "text": "Any time!  But I'd better go.", "topic": "TALK_DONE" }
    ]
  },
  {
    "type": "talk_topic",
    "id": [
      "TALK_TACOMA_Pablo_2",
      "TALK_TACOMA_Pablo_Trailer1",
      "TALK_TACOMA_Pablo_Accounting1",
      "TALK_TACOMA_Pablo_Bakery1",
      "TALK_TACOMA_Pablo_Bakery-Firebricks1",
      "TALK_TACOMA_Pablo_Bakery-Engineer1",
      "TALK_TACOMA_Pablo_Bakery-RootCellar1"
    ],
    "//": "table of contents",
    "insert_before_standard_exits": true,
    "responses": [
      {
        "text": "I heard you might be willing to trade for propane?",
        "topic": "TALK_TACOMA_Pablo_Propane1",
        "condition": { "u_has_var": "propane_scavenging", "context": "knowledge", "value": "knows" }
      },
      {
        "text": "Dana said you had some plans to build a bakery?",
        "topic": "TALK_TACOMA_Pablo_Bakery1",
        "condition": { "u_has_var": "tacoma_bakery", "context": "knowledge", "value": "knows" }
      },
      {
        "text": "I don't mind keeping my eye out for some firebricks for you.",
        "topic": "TALK_TACOMA_Pablo_Bakery-Firebricks1",
        "//": "temporarily disabled by making the condition impossible to achieve.",
        "condition": {
          "and": [
            { "u_has_var": "tacoma_bakery", "context": "firebricks", "value": "known_deleted" },
            { "not": { "u_has_var": "tacoma_bakery", "context": "firebricks", "value": "helped" } }
          ]
        }
      },
      {
        "text": "I can pass a note to Jenny about helping with the mill designs, if you want.",
        "topic": "TALK_TACOMA_Pablo_Bakery-Engineer1",
        "//": "temporarily disabled by making the condition impossible to achieve.",
        "condition": {
          "and": [
            { "u_has_var": "tacoma_mill", "context": "message_jenny", "value": "known_deleted" },
            { "not": { "u_has_var": "tacoma_mill", "context": "message_jenny", "value": "helped" } }
          ]
        }
      },
      {
        "text": "[Survival 4, Fabrication 4] I know how to build a good root cellar.  Here, let me show you.",
        "topic": "TALK_TACOMA_Pablo_Bakery-RootCellar1",
        "condition": {
          "and": [
            { "math": [ "u_skill('survival')", ">=", "4" ] },
            { "math": [ "u_skill('fabrication')", ">=", "4" ] },
            { "u_has_var": "tacoma_bakery", "context": "rootcellar", "value": "known" },
            { "not": { "npc_has_var": "tacoma_bakery", "context": "rootcellar", "value": "helped" } }
          ]
        }
      }
    ]
  },
  {
    "id": "MISSION_TACOMA_Pablo_Firebrick",
    "type": "mission_definition",
    "name": { "str": "Get Pablo some fire bricks." },
    "goal": "MGOAL_FIND_ITEM",
    "difficulty": 2,
    "value": 1000,
    "origins": [ "ORIGIN_SECONDARY" ],
    "item": "fire_brick",
    "count": 20,
    "dialogue": {
      "describe": "Find some fire bricks to help Pablo build an oven.",
      "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"
    }
  },
  {
    "id": "MISSION_TACOMA_Pablo_Message",
    "type": "mission_definition",
    "name": { "str": "Pass a message to Jenny Forcette." },
    "goal": "MGOAL_NULL",
    "difficulty": 2,
    "value": 1000,
    "origins": [ "ORIGIN_SECONDARY" ],
    "dialogue": {
      "describe": "Ask Jenny Forcette if she can help Pablo Nunez with his mill designs.",
      "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"
    }
  }
]
