[
  {
    "type": "talk_topic",
    "id": "TALK_VALHALLIST_MECHANIC_1",
    "dynamic_line": "Hallo, reisendre.  What is it you want?",
    "speaker_effect": { "effect": { "npc_first_topic": "TALK_VALHALLIST_MECHANIC_2" } },
    "responses": [
      { "text": "Who are you, exactly?", "topic": "TALK_VALHALLIST_MECHANIC_WHO" },
      { "text": "What's your deal here?", "topic": "TALK_VALHALLIST_MECHANIC_Job" },
      { "text": "I don't need anything, just gotta go.", "topic": "TALK_DONE" }
    ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_VALHALLIST_MECHANIC_WHO",
    "dynamic_line": "Oh you know, half of us were from the Ag-Sci program at U Amherst, we'd heard some friends talk about a fort up this way and so when things got really hairy we started wandering this direction.  It was a hell of a journey and we lost several of our friends and found some other refugees on the way.  Some others have come and gone depending on if they feel like life here and a new religion work for them, but that group formed the core of the mechanics here.  We've got a purpose now.",
    "responses": [
      { "text": "What is that purpose?", "topic": "TALK_VALHALLIST_MECHANIC_PURPOSE" },
      { "text": "I have to go.", "topic": "TALK_DONE" }
    ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_VALHALLIST_MECHANIC_PURPOSE",
    "dynamic_line": "That purpose is to serve the true lords of this world, and enter Valhalla on some coming day.  There I will not worry about the wandering dead, but see the might of battle and feast with those worthy.  Odin the Allfather will smile on me that day.",
    "responses": [
      { "text": "Let's talk about something else.", "topic": "TALK_VALHALLIST_MECHANIC_2" },
      { "text": "Good luck with that.", "topic": "TALK_DONE" }
    ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_VALHALLIST_MECHANIC_2",
    "dynamic_line": "Here to do business?  We got a couple vehicles that are almost ready to get back on the road.",
    "responses": [
      { "text": "I'm sorry, who are you again?", "topic": "TALK_VALHALLIST_MECHANIC_WHO" },
      { "text": "What's your deal here?", "topic": "TALK_VALHALLIST_MECHANIC_Job" },
      {
        "text": "Do you mind if we just talk a bit?",
        "condition": { "not": { "npc_has_effect": "asked_to_socialize" } },
        "topic": "TALK_FRIEND_CHAT"
      },
      {
        "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"
      },
      {
        "text": "Would you be willing to sell a car?",
        "condition": { "not": { "npc_has_var": "currently_busy", "type": "general", "context": "trade", "value": "yes" } },
        "topic": "TALK_VALHALLIST_MECHANIC_Buy_Vehicles"
      },
      {
        "text": "I'm here to pick up my order.",
        "condition": { "npc_compare_time_since_var": "npc_making_car", "type": "timer", "context": "trade", "op": ">=", "time": "3 d" },
        "topic": "TALK_VALHALLIST_MECHANIC_Pick_Up_Vehicles"
      },
      {
        "text": "I'm here to pick up my order.",
        "condition": { "npc_compare_time_since_var": "npc_making_car", "type": "timer", "context": "trade", "op": "<", "time": "3 d" },
        "topic": "TALK_VALHALLIST_MECHANIC_Not_Ready"
      },
      { "text": "A pleasure chatting.  Gotta go!", "topic": "TALK_DONE" }
    ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_VALHALLIST_MECHANIC_Job",
    "dynamic_line": "I'm one of the mechanics here.  I do maintenance work on all the vehicles around here, including some non-automotive machinery.",
    "responses": [
      { "text": "Good to know.", "topic": "TALK_NONE" },
      { "text": "A pleasure chatting.  Gotta go!", "topic": "TALK_DONE" }
    ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_VALHALLIST_MECHANIC_Buy_Vehicles",
    "dynamic_line": "Sure, I'll get something for you.  I specialize in bikes of any sort, and I'll have it to you in reasonable time; all payments are upfront in signed chit.  So, what would you like?",
    "responses": [
      {
        "text": "[200$]  I'll take a bicycle.",
        "condition": { "u_has_items": { "item": "signed_chit", "count": 80 } },
        "effect": [
          { "npc_add_var": "npc_making_car", "type": "timer", "context": "trade", "time": true },
          { "npc_add_var": "currently_busy", "type": "general", "context": "trade", "value": "yes" },
          { "npc_add_var": "u_want_bicycle", "type": "general", "context": "trade", "value": "yes" },
          { "u_sell_item": "signed_chit", "count": 80 }
        ],
        "topic": "TALK_DONE"
      },
      {
        "text": "[400$]  I'll take a mountain bike.",
        "condition": { "u_has_items": { "item": "signed_chit", "count": 160 } },
        "effect": [
          { "npc_add_var": "npc_making_car", "type": "timer", "context": "trade", "time": true },
          { "npc_add_var": "u_want_bicycle_dirt", "type": "general", "context": "trade", "value": "yes" },
          { "npc_add_var": "currently_busy", "type": "general", "context": "trade", "value": "yes" },
          { "u_sell_item": "signed_chit", "count": 160 }
        ],
        "topic": "TALK_DONE"
      },
      {
        "text": "[550$]  I'll take an electric bike.",
        "condition": { "u_has_items": { "item": "signed_chit", "count": 220 } },
        "effect": [
          { "npc_add_var": "npc_making_car", "type": "timer", "context": "trade", "time": true },
          { "npc_add_var": "u_want_bicycle_electric", "type": "general", "context": "trade", "value": "yes" },
          { "npc_add_var": "currently_busy", "type": "general", "context": "trade", "value": "yes" },
          { "u_sell_item": "signed_chit", "count": 220 }
        ],
        "topic": "TALK_DONE"
      },
      {
        "text": "[750$]  I'll take a dirt bike.",
        "condition": { "u_has_items": { "item": "signed_chit", "count": 300 } },
        "effect": [
          { "npc_add_var": "npc_making_car", "type": "timer", "context": "trade", "time": true },
          { "npc_add_var": "u_want_motorcycle_enduro", "type": "general", "context": "trade", "value": "yes" },
          { "npc_add_var": "currently_busy", "type": "general", "context": "trade", "value": "yes" },
          { "u_sell_item": "signed_chit", "count": 300 }
        ],
        "topic": "TALK_DONE"
      },
      {
        "text": "[900$]  I'll take a motorcycle.",
        "condition": { "u_has_items": { "item": "signed_chit", "count": 360 } },
        "effect": [
          { "npc_add_var": "npc_making_car", "type": "timer", "context": "trade", "time": true },
          { "npc_add_var": "u_want_motorcycle_sidecart", "type": "general", "context": "trade", "value": "yes" },
          { "npc_add_var": "currently_busy", "type": "general", "context": "trade", "value": "yes" },
          { "u_sell_item": "signed_chit", "count": 360 }
        ],
        "topic": "TALK_DONE"
      },
      {
        "text": "[1,200$]  I'll take a scooter.",
        "condition": { "u_has_items": { "item": "signed_chit", "count": 480 } },
        "effect": [
          { "npc_add_var": "npc_making_car", "type": "timer", "context": "trade", "time": true },
          { "npc_add_var": "u_want_scooter", "type": "general", "context": "trade", "value": "yes" },
          { "npc_add_var": "currently_busy", "type": "general", "context": "trade", "value": "yes" },
          { "u_sell_item": "signed_chit", "count": 480 }
        ],
        "topic": "TALK_DONE"
      },
      {
        "text": "[2,000$]  I'll take a electric scooter.",
        "condition": { "u_has_items": { "item": "signed_chit", "count": 800 } },
        "effect": [
          { "npc_add_var": "npc_making_car", "type": "timer", "context": "trade", "time": true },
          { "npc_add_var": "u_want_scooter_electric", "type": "general", "context": "trade", "value": "yes" },
          { "npc_add_var": "currently_busy", "type": "general", "context": "trade", "value": "yes" },
          { "u_sell_item": "signed_chit", "count": 800 }
        ],
        "topic": "TALK_DONE"
      },
      { "text": "I've changed my mind, I don't want anything.", "topic": "TALK_DONE" }
    ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_VALHALLIST_MECHANIC_Pick_Up_Vehicles",
    "dynamic_line": "It's ready!  I'll pull it around here for ya.",
    "responses": [
      {
        "text": "Thanks.",
        "condition": { "npc_has_var": "u_want_bicycle", "type": "general", "context": "trade", "value": "yes" },
        "effect": [
          { "mapgen_update": "valhallist_place_bicycle", "om_terrain": "pagan_cult_long_wall" },
          { "npc_lose_var": "currently_busy", "type": "general", "context": "trade" },
          { "npc_lose_var": "npc_making_car", "type": "timer", "context": "trade" },
          { "npc_lose_var": "u_want_bicycle", "type": "general", "context": "trade" }
        ],
        "topic": "TALK_DONE"
      },
      {
        "text": "Thanks.",
        "condition": { "npc_has_var": "u_want_bicycle_dirt", "type": "general", "context": "trade", "value": "yes" },
        "effect": [
          { "mapgen_update": "valhallist_place_bicycle_dirt", "om_terrain": "pagan_cult_long_wall" },
          { "npc_lose_var": "currently_busy", "type": "general", "context": "trade" },
          { "npc_lose_var": "npc_making_car", "type": "timer", "context": "trade" },
          { "npc_lose_var": "u_want_bicycle_dirt", "type": "general", "context": "trade" }
        ],
        "topic": "TALK_DONE"
      },
      {
        "text": "Thanks.",
        "condition": { "npc_has_var": "u_want_bicycle_electric", "type": "general", "context": "trade", "value": "yes" },
        "effect": [
          { "mapgen_update": "valhallist_place_bicycle_electric", "om_terrain": "pagan_cult_long_wall" },
          { "npc_lose_var": "currently_busy", "type": "general", "context": "trade" },
          { "npc_lose_var": "npc_making_car", "type": "timer", "context": "trade" },
          { "npc_lose_var": "u_want_bicycle_electric", "type": "general", "context": "trade" }
        ],
        "topic": "TALK_DONE"
      },
      {
        "text": "Thanks.",
        "condition": { "npc_has_var": "u_want_motorcycle_enduro", "type": "general", "context": "trade", "value": "yes" },
        "effect": [
          { "mapgen_update": "valhallist_place_motorcycle_enduro", "om_terrain": "pagan_cult_long_wall" },
          { "npc_lose_var": "currently_busy", "type": "general", "context": "trade" },
          { "npc_lose_var": "npc_making_car", "type": "timer", "context": "trade" },
          { "npc_lose_var": "u_want_motorcycle_enduro", "type": "general", "context": "trade" }
        ],
        "topic": "TALK_DONE"
      },
      {
        "text": "Thanks.",
        "condition": { "npc_has_var": "u_want_motorcycle_sidecart", "type": "general", "context": "trade", "value": "yes" },
        "effect": [
          { "mapgen_update": "valhallist_place_motorcycle_sidecart", "om_terrain": "pagan_cult_long_wall" },
          { "npc_lose_var": "currently_busy", "type": "general", "context": "trade" },
          { "npc_lose_var": "npc_making_car", "type": "timer", "context": "trade" },
          { "npc_lose_var": "u_want_motorcycle_sidecart", "type": "general", "context": "trade" }
        ],
        "topic": "TALK_DONE"
      },
      {
        "text": "Thanks.",
        "condition": { "npc_has_var": "u_want_scooter", "type": "general", "context": "trade", "value": "yes" },
        "effect": [
          { "mapgen_update": "valhallist_place_scooter", "om_terrain": "pagan_cult_long_wall" },
          { "npc_lose_var": "currently_busy", "type": "general", "context": "trade" },
          { "npc_lose_var": "npc_making_car", "type": "timer", "context": "trade" },
          { "npc_lose_var": "u_want_scooter", "type": "general", "context": "trade" }
        ],
        "topic": "TALK_DONE"
      },
      {
        "text": "Thanks.",
        "condition": { "npc_has_var": "u_want_scooter_electric", "type": "general", "context": "trade", "value": "yes" },
        "effect": [
          { "mapgen_update": "valhallist_place_scooter_electric", "om_terrain": "pagan_cult_long_wall" },
          { "npc_lose_var": "currently_busy", "type": "general", "context": "trade" },
          { "npc_lose_var": "npc_making_car", "type": "timer", "context": "trade" },
          { "npc_lose_var": "u_want_scooter_electric", "type": "general", "context": "trade" }
        ],
        "topic": "TALK_DONE"
      }
    ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_VALHALLIST_MECHANIC_Not_Ready",
    "dynamic_line": "Sorry, it's not ready yet.  Wait a bit and come back later.",
    "responses": [ { "text": "Okay.", "topic": "TALK_DONE" } ]
  }
]
