[
  {
    "type": "talk_topic",
    "id": "TALK_VALHALLIST_LEADER_1",
    "dynamic_line": "Who are you to come before me?",
    "speaker_effect": { "effect": { "npc_first_topic": "TALK_VALHALLIST_LEADER_2" } },
    "responses": [
      { "text": "I don't know, who are you?", "topic": "TALK_VALHALLIST_LEADER_WHO" },
      { "text": "I'll leave.", "topic": "TALK_DONE" }
    ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_VALHALLIST_LEADER_2",
    "dynamic_line": "Hello again.  What do you want?",
    "responses": [
      {
        "text": "Do you think I could join your organization?",
        "topic": "TALK_VALHALLIST_LEADER_Join",
        "condition": { "not": { "u_has_var": "u_joined_valhallists", "type": "general", "context": "meeting", "value": "yes" } }
      },
      {
        "text": "Any jobs you need done?",
        "condition": {
          "and": [
            { "u_has_var": "u_joined_valhallists", "type": "general", "context": "meeting", "value": "yes" },
            { "not": "has_assigned_mission" },
            { "not": "has_many_assigned_missions" }
          ]
        },
        "topic": "TALK_MISSION_LIST"
      },
      {
        "switch": true,
        "default": true,
        "text": "Could you tell me more about yourself?",
        "condition": { "not": { "u_has_var": "u_know_valhallistslore", "type": "dialogue", "context": "backstory", "value": "yes" } },
        "trial": { "type": "PERSUADE", "difficulty": 20 },
        "success": { "topic": "TALK_VALHALLIST_LEADER_Backstory", "opinion": { "trust": 1, "value": 1 } },
        "failure": { "topic": "TALK_VALHALLIST_LEADER_No_Talk" }
      },
      {
        "text": "Could you tell me more about yourself?",
        "condition": { "u_has_var": "u_know_valhallistslore", "type": "dialogue", "context": "backstory", "value": "yes" },
        "topic": "TALK_VALHALLIST_LEADER_Told_U"
      },
      { "text": "I gotta go.", "topic": "TALK_DONE" }
    ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_VALHALLIST_LEADER_WHO",
    "dynamic_line": "That's very funny of you, but I'm not interested in humor.  Since you ask, I'm the head around here, the best warrior who leads.  What I want to know is why you're here, hmm?",
    "responses": [
      { "text": "I'm just passing through, really.", "topic": "TALK_VALHALLIST_LEADER_Traveler" },
      {
        "text": "It's a big claim to say you're the best.  Want to test that?",
        "topic": "TALK_VALHALLIST_LEADER_Fight"
      },
      { "text": "I'll leave.", "topic": "TALK_DONE" }
    ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_VALHALLIST_LEADER_Traveler",
    "dynamic_line": "That's quite common these days, a lot of people have nowhere to go.  Fortunately, myself and my followers have a home protected from the outside world, with enough material to lead a comfortable life.  If need be, we can protect it ourselves.",
    "responses": [
      { "text": "Do you think I could join?", "topic": "TALK_VALHALLIST_LEADER_Join" },
      { "text": "I need to go.", "topic": "TALK_DONE" }
    ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_VALHALLIST_LEADER_Join",
    "dynamic_line": "We don't just take anyone in here, only the strongest and worthy will prevail.  If you want to test your strength, my scouts have noticed a gargantuan rat wandering close to here.  It's already tried to kill somebody once, and since I can't let it live, you're going to be the one to put it to rest.  Once you've done that, I'll let you in.",
    "responses": [
      {
        "text": "I'll kill it for you.  If I don't come back, see you in Valhalla.",
        "topic": "TALK_DONE",
        "condition": { "not": { "u_has_mission": "MISSION_JOIN_VALHALLISTS" } },
        "effect": [ { "add_mission": "MISSION_JOIN_VALHALLISTS" } ]
      },
      {
        "text": "I'm not the strongest person around here, you better get someone else to do it.",
        "condition": { "not": { "u_has_mission": "MISSION_JOIN_VALHALLISTS" } },
        "topic": "TALK_DONE"
      },
      {
        "text": "You already told me.  I better get back to it.",
        "condition": { "u_has_mission": "MISSION_JOIN_VALHALLISTS" },
        "topic": "TALK_DONE"
      }
    ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_VALHALLIST_LEADER_Fight",
    "dynamic_line": "I'll take your offer, but I would advise that you're making an unwise choice in a duel against me.",
    "responses": [
      { "text": "I don't think so.  See you in Valhalla.", "topic": "TALK_DONE", "effect": "hostile" },
      { "text": "You're right, I better not.  Bye.", "topic": "TALK_DONE" }
    ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_VALHALLIST_LEADER_No_Talk",
    "dynamic_line": "No, that information I'd rather not share right now.  Besides, I have work to do.",
    "responses": [ { "text": "<done_conversation_section>", "topic": "TALK_NONE" }, { "text": "<end_talking>", "topic": "TALK_DONE" } ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_VALHALLIST_LEADER_Told_U",
    "dynamic_line": "We already talked about that.  It's something I'd rather not go over again.",
    "responses": [ { "text": "<done_conversation_section>", "topic": "TALK_NONE" }, { "text": "<end_talking>", "topic": "TALK_DONE" } ]
  }
]
