[
  {
    "id": [ "TALK_FRIEND", "TALK_GIVE_ITEM", "TALK_USE_ITEM", "TALK_RADIO" ],
    "//": "Check if the player is a vampire, not busy, and in person with a follower.",
    "type": "talk_topic",
    "responses": [
      {
        "text": "*Consider making your follower into a ghoul*",
        "condition": { "and": [
          { "u_has_trait": "THRESH_VAMP" },
          { "not": { "npc_has_trait": "THRESH_VAMP" } },
          { "not": { "npc_has_trait": "VAMP_GHOUL" } },
          { "not": { "npc_has_trait": "VAMP_BLOODDOLL" } },
          { "not": "is_by_radio" },
          { "not": "u_driving" },
          { "not": "npc_driving" }
        ] },
        "topic": "TALK_GHOULIFY_MENU_ALLY"
      }
    ]
  },
  {
    "id": [ "TALK_STRANGER_FRIENDLY", "TALK_STRANGER_NEUTRAL" ],
    "//": "Check if the player is a vampire, not busy, and in person with a friendly or neutral npc.",
    "type": "talk_topic",
    "responses": [
      {
        "text": "*Consider making the stranger into a ghoul*",
        "condition": { "and": [
          { "not": { "npc_has_trait": "THRESH_VAMP" } },
          { "not": { "npc_has_trait": "VAMP_GHOUL" } },
          { "not": { "npc_has_trait": "VAMP_BLOODDOLL" } },
          { "not": "is_by_radio" },
          { "not": "u_driving" },
          { "not": "npc_driving" }
        ] },
        "topic": "TALK_GHOULIFY_MENU_FRIENDLY"
      }
    ]
  },
  {
    "id": [ "TALK_GHOULIFY_MENU_ALLY", "TALK_GHOULIFY_MENU_FRIENDLY" ],
    "type": "talk_topic",
    "dynamic_line": "What is it?",
    "//": "The mutually-exclusive trait queries look identical on purpose for role-playing reasons.",
    "responses": [
      {
        "text": "Would you mind becoming my servant?",
        "//": "humans with vampire hostile traits will refuse and possibly attack you for merely being asked to become a ghoul.",
        "condition": {
          "and": [
            { "not":
              { "npc_has_any_trait": [
                "VAMP_BLOODDOLL",
                "VAMP_GHOUL_REFUSED",
                "THRESH_VAMP",
                "VAMP_GHOUL"
              ] }
            },
            { "npc_has_any_trait": [
              "BADTEMPER",
              "KILLER",
              "MOODSWINGS",
              "SPIRITUAL",
              "THRESH_LUPINE"
            ] }
          ]
        },
        "trial": { "type": "PERSUADE", "difficulty": 25, "mod": [ [ "TRUST", 6 ], [ "VALUE", 2 ], [ "ANGER", -6 ] ] },
        "success": {
          "topic": "TALK_GHOULIFY_BADTRAIT_REFUSE",
          "opinion": { "trust": -1, "anger": 1 },
          "effect": [ { "npc_add_trait": "VAMP_GHOUL_REFUSED" } ]
        },
        "failure": { "topic": "TALK_GHOULIFY_BADTRAIT_ATTACK" }
      },
      {
        "text": "Would you mind becoming my servant?",
        "//": "allied humans need to be convinced to become a ghoul.",
        "condition": {
          "and": [
            { "not":
              { "npc_has_any_trait": [
                "VAMP_BLOODDOLL",
                "VAMP_GHOUL_REFUSED",
                "THRESH_VAMP",
                "VAMP_GHOUL"
              ] }
            },
            { "not":
              { "npc_has_any_trait": [
                "BADTEMPER",
                "KILLER",
                "MOODSWINGS",
                "SPIRITUAL",
                "THRESH_LUPINE"
              ] }
            },
            "npc_following"
          ]
        },
        "trial": { "type": "PERSUADE", "difficulty": 25, "mod": [ [ "TRUST", 6 ], [ "VALUE", 2 ], [ "ANGER", -6 ] ] },
        "success": { "topic": "TALK_GHOULIFY_ALLY_ACCEPT" },
        "failure": {
          "topic": "TALK_GHOULIFY_ALLY_REFUSE",
          "effect": [ { "npc_add_trait": "VAMP_GHOUL_REFUSED" } ]
        }
      },
      {
        "text": "Would you mind becoming my servant?",
        "//": "non-allied humans need to be convinced to become a ghoul.",
        "condition": {
          "and": [
            { "not":
              { "npc_has_any_trait": [
                "VAMP_BLOODDOLL",
                "VAMP_GHOUL_REFUSED",
                "THRESH_VAMP",
                "VAMP_GHOUL"
              ] }
            },
            { "not":
              { "npc_has_any_trait": [
                "BADTEMPER",
                "KILLER",
                "MOODSWINGS",
                "SPIRITUAL",
                "THRESH_LUPINE"
              ] }
            },
            { "not": "npc_following" }
          ]
        },
        "trial": { "type": "PERSUADE", "difficulty": 30, "mod": [ [ "TRUST", 6 ], [ "VALUE", 2 ], [ "ANGER", -6 ] ] },
        "success": { "topic": "TALK_GHOULIFY_FRIENDLY_ACCEPT" },
        "failure": {
          "topic": "TALK_GHOULIFY_FRIENDLY_REFUSE",
          "opinion": { "trust": -1, "anger": 1 },
          "effect": [ { "npc_add_trait": "VAMP_GHOUL_REFUSED" } ]
        }
      },
      {
        "text": "*Forcefully make ghoul*",
        "//": "Make ghoul by force. Humans.",
        "condition": { "and": [
          { "not": { "npc_has_trait": "THRESH_VAMP" } },
          { "not": { "npc_has_trait": "VAMP_GHOUL" } },
          { "not": { "npc_has_trait": "VAMP_BLOODDOLL" } }
        ] },
        "topic": "TALK_GHOULIFY_BY_FORCE_HUMAN"
      },
      { "text": "*You decide to talk more instead.*", "topic": "TALK_NONE" },
      { "text": "*You decide not to.*", "topic": "TALK_DONE" }
    ]
  },
  {
    "id": [ "TALK_GHOULIFY_ALLY_ACCEPT", "TALK_GHOULIFY_FRIENDLY_ACCEPT" ],
    "type": "talk_topic",
    "dynamic_line": "Hmmm, so if I serve you I get to become stronger and live forever? That sounds pretty good.",
    "//": "A human was convinced to become a ghoul. NPC gains the Ghoul mutation and joins the player's faction. Player should take a small amount of damage.",
    "responses": [
      {
        "text": "*You bite your wrist, and slowly feed them some blood*",
        "trial": {
          "type": "CONDITION",
          "condition": { "not": "npc_following" }
        },
        "success": { "topic": "TALK_GHOULIFY_ALLY_ACCEPT_AFTERMATH", "effect": [ { "npc_add_trait": "VAMP_GHOUL" } ] },
        "failure": { "topic": "TALK_GHOULIFY_FRIENDLY_ACCEPT_AFTERMATH", "effect": [ { "npc_add_trait": "VAMP_GHOUL" }, "follow" ] }
      }
    ]
  },
  {
    "id": [ "TALK_GHOULIFY_ALLY_ACCEPT_AFTERMATH", "TALK_GHOULIFY_FRIENDLY_ACCEPT_AFTERMATH" ],
    "type": "talk_topic",
    "dynamic_line": "Wow~ This is great. Um, yes, I will serve you loyally, Mistress.",
    "//": "The human is now a ghoul.",
    "responses": [
      { "text": "I am sure you will.", "topic": "TALK_DONE" }
    ]
  },
  {
    "id": [ "TALK_GHOULIFY_ALLY_REFUSE", "TALK_GHOULIFY_FRIENDLY_REFUSE" ],
    "type": "talk_topic",
    "dynamic_line": "I'd rather not.",
    "//": "The human refuses to become a ghoul, and will not change their mind...willingly.",
    "responses": [
      { "text": "Nevermind.", "topic": "TALK_DONE" }
    ]
  },
  {
    "id": [ "TALK_GHOULIFY_BADTRAIT_REFUSE" ],
    "type": "talk_topic",
    "dynamic_line": "Not a chance, vampire.",
    "//": "The human angrily refuses to become a ghoul, and will not change their mind...willingly.",
    "responses": [
      { "text": "I shouldn't have asked...", "topic": "TALK_DONE" }
    ]
  },
  {
    "id": [ "TALK_GHOULIFY_BADTRAIT_ATTACK" ],
    "type": "talk_topic",
    "dynamic_line": "I'll never become a slave to a monster. I'll kill you, vampire!",
    "//": "The human is very angry.",
    "responses": [
      { "text": "Not if I kill you first!", "topic": "TALK_DONE", "effect": "hostile" }
    ]
  },
  {
    "id": [ "TALK_GHOULIFY_BY_FORCE_HUMAN" ],
    "type": "talk_topic",
    "dynamic_line": "Wh-what are you...",
    "//": "You caught your human companion off-guard. Attempt to forcefully make them into a ghoul, though they might be able to avoid you if strong, fast, or hard to grab.",
    "responses": [
      {
        "text": "*Bite your wrist and attempt to force your vitae down their throat*",
        "trial": {
          "type": "CONDITION",
          "condition": { "not":
            { "npc_has_any_trait": [
              "QUICK",
              "ADRENALINE",
              "MARTIAL_ARTS2",
              "STR_UP2",
              "STR_UP3",
              "STR_UP4",
              "STR_ALPHA",
              "SLIMY"
            ] }
          }
        },
        "success": {
          "topic": "TALK_GHOULIFY_BY_FORCE_HUMAN_SUCCESS",
          "effect": [
            "follow",
            { "npc_add_trait": "VAMP_GHOUL" },
            { "npc_lose_trait": "VAMP_GHOUL_REFUSED" }
          ],
          "opinion": { "trust": 10, "fear": 3, "value": -1, "anger": -10 }
        },
        "failure": { "topic": "TALK_GHOULIFY_BY_FORCE_HUMAN_FAILURE" }
      },
      { "text": "Huh? Nothing.", "topic": "TALK_NONE" }
    ]
  },
  {
    "id": "TALK_GHOULIFY_BY_FORCE_HUMAN_SUCCESS",
    "type": "talk_topic",
    "dynamic_line": "Ack.. *blub* *cough* *cough* What did you... So I have to do what you say now?",
    "responses": [
      {
        "text": "Yes you do, slave.",
        "topic": "TALK_DONE"
      }
    ]
  },
  {
    "id": "TALK_GHOULIFY_BY_FORCE_HUMAN_FAILURE",
    "type": "talk_topic",
    "dynamic_line": "I'll never become your slave!",
    "responses": [
      { "text": "Then you can die!", "topic": "TALK_DONE", "effect": "hostile" }
    ]
  },
  {
    "id": [ "TALK_STRANGER_WARY", "TALK_STRANGER_SCARED" ],
    "//": "Check if the player is a vampire, not busy, and in person with a wary or scared npc.",
    "type": "talk_topic",
    "responses": [
      {
        "text": "We'll see who is giving orders after I enslave you!",
       "condition": { "and": [
          { "u_has_trait": "THRESH_VAMP" },
          { "not": { "npc_has_trait": "THRESH_VAMP" } },
          { "not": { "npc_has_trait": "VAMP_GHOUL" } },
          { "not": { "npc_has_trait": "VAMP_BLOODDOLL" } },
          { "not": "is_by_radio" },
          { "not": "u_driving" },
          { "not": "npc_driving" }
        ] },
        "trial": { "type": "INTIMIDATE", "difficulty": 20 },
          "success": { "topic": "TALK_GHOULIFY_BY_FORCE_NEUTRAL_SUCCESS" },
          "failure": { "topic": "TALK_GHOULIFY_BY_FORCE_NEUTRAL_FAILURE", "effect": "hostile" }
      }
    ]
  },
  {
    "id": [ "TALK_STRANGER_AGGRESSIVE" ],
    "//": "Check if the player is a vampire, not busy, and in person with a near-hostile npc.",
    "type": "talk_topic",
    "responses": [
      {
        "text": "We'll see who is giving orders after I enslave you!",
       "condition": { "and": [
          { "u_has_trait": "THRESH_VAMP" },
          { "not": { "npc_has_trait": "THRESH_VAMP" } },
          { "not": { "npc_has_trait": "VAMP_GHOUL" } },
          { "not": { "npc_has_trait": "VAMP_BLOODDOLL" } },
          { "not": "is_by_radio" },
          { "not": "u_driving" },
          { "not": "npc_driving" }
        ] },
        "trial": { "type": "INTIMIDATE", "difficulty": 30 },
          "success": { "topic": "TALK_GHOULIFY_BY_FORCE_NEUTRAL_SUCCESS" },
          "failure": { "topic": "TALK_GHOULIFY_BY_FORCE_NEUTRAL_FAILURE", "effect": "hostile" }
      }
    ]
  },
  {
    "id": "TALK_GHOULIFY_BY_FORCE_NEUTRAL_SUCCESS",
    "type": "talk_topic",
    "dynamic_line": "I'll do whatever you say! Just don't kill me!",
    "responses": [
      {
        "text": "Then come here and become mine. *You bite your wrist to make them drink some of your vitae.",
        "topic": "TALK_GHOULIFY_BY_FORCE_HUMAN_SUCCESS",
        "effect": [
          "follow",
          { "npc_add_trait": "VAMP_GHOUL" },
          { "npc_lose_trait": "VAMP_GHOUL_REFUSED" }
        ],
        "opinion": { "trust": 10, "fear": 3, "value": -1, "anger": -10 }
      }
    ]
  },
  {
    "id": "TALK_GHOULIFY_BY_FORCE_NEUTRAL_FAILURE",
    "type": "talk_topic",
    "dynamic_line": "I'd rather die!",
    "responses": [
      { "text": "Have it your way.", "topic": "TALK_DONE", "effect": "hostile" }
    ]
  }
]