[
  {
    "type": "effect_type",
    "id": "godco_darryl_bartered"
  },
  {
    "type": "effect_type",
    "id": "godco_darryl_mission1"
  },
  {
    "type": "talk_topic",
    "id": [
      "TALK_GODCO_Darryl_2",
      "TALK_GODCO_Darryl_Mood",
      "TALK_GODCO_Darryl_Story",
      "TALK_GODCO_Darryl_Farm",
      "TALK_GODCO_Darryl_BarterSuccess"
    ],
    "responses": [
      {
        "text": "About that well…",
        "condition": { "npc_has_var": "godco_darryl_mission1", "type": "mission", "context": "completed", "value": "in-progress" },
        "topic": "TALK_MISSION_LIST"
      },
      { "text": "What's your story?", "topic": "TALK_GODCO_Darryl_Story" },
      { "text": "How are things here?", "topic": "TALK_GODCO_Darryl_Mood" },
      { "text": "Nice farm you have here.", "topic": "TALK_GODCO_Darryl_Farm" },
      { "text": "Care to trade?", "topic": "TALK_GODCO_Darryl_Trade" }
    ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_GODCO_Darryl_1",
    "dynamic_line": {
      "u_has_var": "godco_notalk_to_u",
      "type": "dialogue",
      "context": "godco",
      "value": "yes",
      "yes": "What the <swear> are you, sinner?  Get away from me.",
      "no": {
        "npc_has_var": "u_met_godco_darryl",
        "type": "general",
        "context": "meeting",
        "value": "yes",
        "yes": [ "Praise the Lord.", "Welcome back.", "Nice to see you again, survivor." ],
        "no": "Well I'll be damned, a fellow survivor!  I'm Darryl, nice to meet you."
      }
    },
    "responses": [
      {
        "text": "About that well…",
        "condition": { "npc_has_var": "godco_darryl_mission1", "type": "mission", "context": "completed", "value": "in-progress" },
        "topic": "TALK_MISSION_LIST"
      },
      {
        "text": "Nice to meet you too, Darryl.  Neat farm you have here.",
        "effect": { "npc_add_var": "u_met_godco_darryl", "type": "general", "context": "meeting", "value": "yes" },
        "condition": {
          "and": [
            { "not": { "npc_has_var": "u_met_godco_darryl", "type": "general", "context": "meeting", "value": "yes" } },
            { "not": { "u_has_var": "godco_notalk_to_u", "type": "dialogue", "context": "godco", "value": "yes" } }
          ]
        },
        "topic": "TALK_GODCO_Darryl_Farm"
      },
      {
        "text": "Hey Darryl.  Got a minute?",
        "condition": {
          "and": [
            { "npc_has_var": "u_met_godco_darryl", "type": "general", "context": "meeting", "value": "yes" },
            { "not": { "u_has_var": "godco_notalk_to_u", "type": "dialogue", "context": "godco", "value": "yes" } }
          ]
        },
        "topic": "TALK_GODCO_Darryl_2"
      },
      {
        "text": "Hey Darryl.  Care to trade?",
        "condition": {
          "and": [
            { "npc_has_var": "u_met_godco_darryl", "type": "general", "context": "meeting", "value": "yes" },
            { "not": { "u_has_var": "godco_notalk_to_u", "type": "dialogue", "context": "godco", "value": "yes" } }
          ]
        },
        "topic": "TALK_GODCO_Darryl_Trade"
      },
      {
        "text": "How are the chickens?",
        "condition": {
          "and": [
            { "math": [ "darryl_building_coop", "==", "2" ] },
            { "npc_has_var": "u_met_godco_darryl", "type": "general", "context": "meeting", "value": "yes" }
          ]
        },
        "topic": "TALK_GODCO_Darryl_Trade_Eggs"
      },
      {
        "text": "I'm afraid I can't talk right now.",
        "condition": { "not": { "u_has_var": "godco_notalk_to_u", "type": "dialogue", "context": "godco", "value": "yes" } },
        "topic": "TALK_DONE"
      },
      {
        "text": "What's the poor attitude about?",
        "condition": { "u_has_var": "godco_notalk_to_u", "type": "dialogue", "context": "godco", "value": "yes" },
        "topic": "TALK_GODCO_Darryl_You_Mutant"
      },
      {
        "text": "Fuck you <name_b>, I'm outta here.",
        "condition": { "u_has_var": "godco_notalk_to_u", "type": "dialogue", "context": "godco", "value": "yes" },
        "topic": "TALK_DONE"
      }
    ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_GODCO_Darryl_2",
    "dynamic_line": "I guess I can spare a few minutes.  What is it?",
    "responses": [
      { "text": "Can I buy anything?", "topic": "TALK_GODCO_Darryl_Trade" },
      {
        "text": "How are the chickens?",
        "condition": {
          "and": [
            { "u_has_var": "darryl_built_coop", "type": "general", "context": "trade", "value": "yes" },
            { "npc_has_var": "u_met_godco_darryl", "type": "general", "context": "meeting", "value": "yes" }
          ]
        },
        "topic": "TALK_GODCO_Darryl_Trade_Eggs"
      },
      { "text": "Do you have any family?", "topic": "TALK_GODCO_Darryl_Wife" },
      { "text": "Actually I'm just heading out.", "topic": "TALK_DONE" }
    ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_GODCO_Darryl_Mood",
    "dynamic_line": "This uncertainty is eating me inside, to be frank with you.  I'm a simple man: I tend my farm, I scare off vermin, but even I can see somethin' ain't right here.  I've talked to my wife, I had a word with Damien, they told me to have more faith in God.  It's the last sliver of hope I have left, and I was told that's enough.",
    "responses": [
      { "text": "What were you saying before?", "topic": "TALK_NONE" },
      { "text": "I'd better get going.", "topic": "TALK_DONE" }
    ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_GODCO_Darryl_Story",
    "dynamic_line": "Well, I'd rather not get into my life before all this.  I have a farm to maintain, after all.  Would be nice, sharing our tales while sipping cold brew beer.  Not at a time like this.  Now if you'll excuse me, I'll be back to work.",
    "responses": [
      { "text": "Is there anything I can do to help you out?", "topic": "TALK_MISSION_LIST" },
      { "text": "What were you saying before?", "topic": "TALK_NONE" },
      { "text": "I'll leave you to it.", "topic": "TALK_DONE" }
    ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_GODCO_Darryl_Farm",
    "dynamic_line": "Took us three days and four hard-working hands to clear this humble little land.  It's a far-cry from my old garden, it really is.  I heard theories, from Tom of course, that really messed with my head.  You can never know what's in one of them toxic clouds, can ya?  I suspect goo-puker blood.  That putrid oil is a sure way to make any soil infertile, or so that nitwit says.  Here I go again, ramblin' once more.  One of my bad habits.",
    "responses": [
      { "text": "Is there anything I can do to help you out?", "topic": "TALK_MISSION_LIST" },
      { "text": "What were you saying before?", "topic": "TALK_NONE" },
      { "text": "I'll leave you to it.", "topic": "TALK_DONE" }
    ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_GODCO_Darryl_Trade",
    "dynamic_line": "Huh, never would have thought you were interested in the fine art of farming.  Sure, I've got seeds I can say goodbye to… if you have the appropriate money of course.",
    "responses": [
      { "text": "Let's trade, then.", "topic": "TALK_GODCO_Darryl_Trade2" },
      { "text": "You know what?  Nevermind.  What were you saying before?", "topic": "TALK_NONE" },
      { "text": "Actually, I had better go.", "topic": "TALK_DONE" }
    ]
  },
  {
    "id": "TALK_GODCO_Darryl_Trade_Eggs",
    "type": "talk_topic",
    "dynamic_line": "It's finished, and I've got eggs!  I'd be willing to sell ya some, a dozen for seven icons.",
    "responses": [
      {
        "text": "I'll buy some.",
        "topic": "TALK_GODCO_Darryl_1",
        "condition": { "u_has_items": { "item": "icon", "count": 7 } },
        "effect": [ { "u_sell_item": "icon", "count": 7 }, { "u_spawn_item": "egg_chicken", "count": 12 } ]
      },
      { "text": "That's a bit rich for my blood.  I'd better go.", "topic": "TALK_DONE" }
    ]
  },
  {
    "id": "TALK_GODCO_Darryl_Trade2",
    "type": "talk_topic",
    "dynamic_line": "All right, this is what I've got:  I can give cucumber, barley or blackberry seeds for one icon; carrot, buckwheat or cranberry seeds for two icons; oat, sugar beet or potato seeds for three icons.",
    "responses": [
      {
        "text": "I'll buy cucumber seeds.",
        "topic": "TALK_GODCO_Darryl_Trade2",
        "condition": { "u_has_items": { "item": "icon", "count": 1 } },
        "effect": [ { "u_sell_item": "icon", "count": 1 }, { "u_spawn_item": "seed_cucumber", "count": 25 } ]
      },
      {
        "text": "I'll buy barley seeds.",
        "topic": "TALK_GODCO_Darryl_Trade2",
        "condition": { "u_has_items": { "item": "icon", "count": 1 } },
        "effect": [ { "u_sell_item": "icon", "count": 1 }, { "u_spawn_item": "seed_barley", "count": 25 } ]
      },
      {
        "text": "I'll buy blackberry seeds.",
        "topic": "TALK_GODCO_Darryl_Trade2",
        "condition": { "u_has_items": { "item": "icon", "count": 1 } },
        "effect": [ { "u_sell_item": "icon", "count": 1 }, { "u_spawn_item": "seed_blackberries", "count": 25 } ]
      },
      {
        "text": "I'll buy carrot seeds.",
        "topic": "TALK_GODCO_Darryl_Trade2",
        "condition": { "u_has_items": { "item": "icon", "count": 2 } },
        "effect": [ { "u_sell_item": "icon", "count": 2 }, { "u_spawn_item": "seed_carrot", "count": 25 } ]
      },
      {
        "text": "I'll buy buckwheat seeds.",
        "topic": "TALK_GODCO_Darryl_Trade2",
        "condition": { "u_has_items": { "item": "icon", "count": 2 } },
        "effect": [ { "u_sell_item": "icon", "count": 2 }, { "u_spawn_item": "seed_buckwheat", "count": 25 } ]
      },
      {
        "text": "I'll buy cranberry seeds.",
        "topic": "TALK_GODCO_Darryl_Trade2",
        "condition": { "u_has_items": { "item": "icon", "count": 2 } },
        "effect": [ { "u_sell_item": "icon", "count": 2 }, { "u_spawn_item": "seed_cranberries", "count": 25 } ]
      },
      {
        "text": "I'll buy oat seeds.",
        "topic": "TALK_GODCO_Darryl_Trade2",
        "condition": { "u_has_items": { "item": "icon", "count": 3 } },
        "effect": [ { "u_sell_item": "icon", "count": 3 }, { "u_spawn_item": "seed_oats", "count": 25 } ]
      },
      {
        "text": "I'll buy sugar beet seeds.",
        "topic": "TALK_GODCO_Darryl_Trade2",
        "condition": { "u_has_items": { "item": "icon", "count": 3 } },
        "effect": [ { "u_sell_item": "icon", "count": 3 }, { "u_spawn_item": "seed_sugar_beet", "count": 25 } ]
      },
      {
        "text": "I'll buy potato seeds.",
        "topic": "TALK_GODCO_Darryl_Trade2",
        "condition": { "u_has_items": { "item": "icon", "count": 3 } },
        "effect": [ { "u_sell_item": "icon", "count": 3 }, { "u_spawn_item": "seed_potato_raw", "count": 25 } ]
      },
      {
        "text": "Can't you just give them to me for free?  You said you didn't need them.",
        "condition": { "not": { "u_has_effect": "godco_darryl_bartered" } },
        "trial": { "type": "PERSUADE", "difficulty": 25, "mod": [ [ "trust", 5 ] ] },
        "success": {
          "topic": "TALK_GODCO_Darryl_BarterSuccess",
          "effect": [
            { "npc_add_effect": "godco_darryl_bartered", "duration": "PERMANENT" },
            { "u_spawn_item": "seed_potato_raw", "count": 25 }
          ]
        },
        "failure": { "topic": "TALK_GODCO_Darryl_BarterFail", "opinion": { "trust": -6 } }
      },
      { "text": "That's a bit rich for my blood.  I had better go.", "topic": "TALK_DONE" }
    ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_GODCO_Darryl_BarterSuccess",
    "dynamic_line": "Well, you got me there.  I sure ain't one to block a fellow farmer's right to reclaim this God-given earth.",
    "responses": [ { "text": "Thank you.  See you around, Darryl.", "topic": "TALK_DONE" } ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_GODCO_Darryl_BarterFail",
    "dynamic_line": "It really isn't difficult to earn your money here.  Hard labor, like the rest of us.",
    "responses": [ { "text": "…", "topic": "TALK_DONE" } ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_GODCO_Darryl_Wife",
    "dynamic_line": "I've got a wife, Gemma.  She's a grand lady, should be around here somewhere.  She used to teach biology, and we both love gardenin'; that's how we met, ya see.  She 'aint been herself lately, I'm startin' to worry.",
    "responses": [
      { "text": "What about your parents?", "topic": "TALK_GODCO_Darryl_Mom&Dad" },
      { "text": "I'll check on her.  I hope everything works out for you.", "topic": "TALK_DONE" }
    ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_GODCO_Darryl_Mom&Dad",
    "dynamic_line": "Oh, they passed a long time ago.  Wish they could've seen Gemma and I marry…",
    "responses": [
      { "text": "What were you saying before?", "topic": "TALK_NONE" },
      { "text": "I'm sorry for your loss.", "topic": "TALK_DONE" }
    ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_GODCO_Darryl_You_Mutant",
    "dynamic_line": "I've heard of unnatural monsters such as yourself causing chaos after the fall of civilization, and how men have transformed into horrors and gone mad with sin.  This is the judgement of God upon you heathens for your wicked ways, and I want nothing to do with it.",
    "responses": [ { "text": "…", "topic": "TALK_DONE" } ]
  }
]
