[
  {
    "type": "talk_topic",
    "id": "TALK_NPC_HOMELESS_SURVIVOR",
    "dynamic_line": {
      "compare_string": [ "yes", { "u_val": "dialogue_first_meeting_talked_to_homeless" } ],
      "yes": "Hello there.  Nice to see you again.",
      "no": "Who are you?"
    },
    "speaker_effect": { "effect": { "npc_add_var": "dialogue_first_meeting_talked_to_homeless", "value": "yes" } },
    "responses": [
      {
        "text": "Nice to meet you.",
        "topic": "TALK_NPC_HOMELESS_SURVIVOR_INTRO",
        "condition": { "not": { "compare_string": [ "yes", { "npc_val": "dialogue_first_meeting_talked_to_homeless" } ] } }
      },
      {
        "text": "Pleasure to see you again.",
        "topic": "TALK_NPC_HOMELESS_SURVIVOR_INTRO",
        "condition": { "compare_string": [ "yes", { "npc_val": "dialogue_first_meeting_talked_to_homeless" } ] }
      },
      { "text": "<end_talking_bye>", "topic": "TALK_DONE" }
    ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_NPC_HOMELESS_SURVIVOR_INTRO",
    "dynamic_line": "So, what's up?",
    "responses": [
      { "text": "What are you doing here?", "topic": "TALK_NPC_HOMELESS_SURVIVOR_STORY" },
      {
        "text": "I'd like to ask you a few questions.",
        "topic": "TALK_FRIEND_CONVERSATION",
        "condition": { "compare_string": [ "yes", { "npc_val": "dialogue_first_meeting_talked_to_homeless" } ] }
      },
      { "text": "Care to trade?", "topic": "TALK_NPC_HOMELESS_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_HOMELESS_SURVIVOR_STORY",
    "dynamic_line": [
      {
        "gendered_line": "I was homeless before everything went down, just camping out here for a while.  Stuck up <name_b>s shunned me for my condition, but they're all dead now.  I guess I'm better off than they are.",
        "relevant_genders": [ "npc" ]
      },
      {
        "gendered_line": "I guess you probably wouldn't have noticed this place before shit hit the fan, but I've been down here for quite a while.",
        "relevant_genders": [ "u" ]
      },
      "Nothing to it.  Before <the_cataclysm>, it didn't take much to find yourself here.  And I guess it just made sense to stay.  We seem to be doing better than most, anyway.",
      "Surviving, as I always have.  Is that what you mean?",
      {
        "gendered_line": "It's hard to say exactly what I'm doing out here, but I guess one thing just leads to another and… well, you're just being nice when you ask, aren't you?  It doesn't matter now anyway.  I'm here and I'm still alive.",
        "relevant_genders": [ "npc" ]
      }
    ],
    "responses": [ { "text": "Hm.", "topic": "TALK_NONE" } ]
  }
]
