[
  {
    "type": "talk_topic",
    "id": "TALK_OLD_MAGUS",
    "dynamic_line": {
      "compare_string": [ "yes", { "u_val": "dialogue_old_magus_talked_to_old_magus" } ],
      "no": "Huh?  *mumble mumble* …Who are you?",
      "yes": "Oh, you again."
    },
    "responses": [
      {
        "text": "Hello <name_g>.",
        "topic": "TALK_OLD_MAGUS_INTRO",
        "effect": { "u_add_var": "dialogue_old_magus_talked_to_old_magus", "value": "yes" }
      },
      { "text": "Wanna get outta here?", "topic": "TALK_SUGGEST_FOLLOW" },
      { "text": "Let's trade items.", "topic": "TALK_OLD_MAGUS", "effect": "start_trade" },
      {
        "text": "Can I do anything for you?",
        "topic": "TALK_MISSION_LIST",
        "condition": {
          "and": [
            { "not": "has_assigned_mission" },
            { "not": { "compare_string": [ "yes", { "npc_val": "dialogue_old_magus_npc_magus_book_done" } ] } }
          ]
        }
      },
      { "text": "About the mission…", "topic": "TALK_MISSION_INQUIRE", "condition": "has_assigned_mission" },
      {
        "text": "About one of those missions…",
        "topic": "TALK_MISSION_LIST_ASSIGNED",
        "condition": "has_many_assigned_missions"
      },
      { "text": "Goodbye.", "topic": "TALK_DONE" }
    ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_OLD_MAGUS_INTRO",
    "dynamic_line": "I'm busy, what is it?",
    "responses": [
      { "text": "Why don't you go somewhere else?", "topic": "TALK_OLD_MAGUS_LEAVE" },
      { "text": "Let's trade then.", "effect": "start_trade", "topic": "TALK_OLD_MAGUS" },
      { "text": "I'm sorry, I gotta go.", "topic": "TALK_DONE" }
    ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_OLD_MAGUS_LEAVE",
    "dynamic_line": "And leave my tower and all my research?  I think not.",
    "responses": [
      { "text": "Wanna get outta here?", "topic": "TALK_SUGGEST_FOLLOW" },
      { "text": "What can you sell me?", "topic": "TALK_OLD_MAGUS", "effect": "start_trade" },
      { "text": "I'm sorry, I gotta go.", "topic": "TALK_DONE" }
    ]
  }
]
