[
  {
    "id": "TALK_LUMBERMILL_FABRICATE",
    "//": "This is all the dialogue related to buying bulk wood. TO-DO - Use variables to refine shop system. See SCRIPT_EFFECTS.md and isolated road fabriation system.",
    "type": "talk_topic",
    "dynamic_line": {
      "npc_has_effect": "currently_busy",
      "yes": "We've still got a few things available, but that last order is gonna take us a while to restock.  Come back in a little while if you're looking for the big stuff.  The crew is fast, so it won't be long.  A few hours at most, I promise.",
      "no": "Sure, we offer various specialty cuts direct to our customers in batches of 10.  Anything larger than these planks is gonna take us a while to refresh, though.  A couple hours, maybe longer if we have to source more wood.  So, what would you like?"
    },
    "responses": [
      { "text": "Nevermind.", "topic": "TALK_NONE" },
      {
        "text": "[10$]  I'll buy some sticks.",
        "effect": [ { "u_buy_item": "stick", "cost": 1000, "count": 10 } ],
        "topic": "TALK_LUMBERMILL_FABRICATE_END"
      },
      {
        "text": "[20$]  I'll buy some long sticks.",
        "effect": [ { "u_buy_item": "stick_long", "cost": 2000, "count": 10 } ],
        "topic": "TALK_LUMBERMILL_FABRICATE_END"
      },
      {
        "text": "[30$]  I'll buy some planks.",
        "effect": [ { "u_buy_item": "2x4", "cost": 3000, "count": 10 } ],
        "topic": "TALK_LUMBERMILL_FABRICATE_END"
      },
      {
        "text": "[100$]  I'll buy some logs.",
        "effect": [
          {
            "u_buy_item": "log",
            "cost": 10000,
            "count": 10,
            "true_eocs": "EOC_BUY_LOGS_TRUE_EFFECT",
            "false_eocs": "EOC_LUMBER_BUY_FALSE_EFFECT"
          }
        ],
        "topic": "TALK_LUMBERMILL_FABRICATE_END",
        "condition": { "not": { "npc_has_effect": "lumbermill_waiting_for_log" } }
      },
      {
        "text": "[120$]  I'll buy some wooden panels.",
        "effect": [
          {
            "u_buy_item": "wood_panel",
            "cost": 12000,
            "count": 10,
            "true_eocs": "EOC_BUY_PANEL_TRUE_EFFECT",
            "false_eocs": "EOC_LUMBER_BUY_FALSE_EFFECT"
          }
        ],
        "topic": "TALK_LUMBERMILL_FABRICATE_END",
        "condition": { "not": { "npc_has_effect": "lumbermill_waiting_for_wood_panel" } }
      },
      {
        "text": "[240$]  I'll buy some large wooden sheets.",
        "effect": [
          {
            "u_buy_item": "wood_sheet",
            "cost": 24000,
            "count": 10,
            "true_eocs": "EOC_BUY_LARGE_PANEL_TRUE_EFFECT",
            "false_eocs": "EOC_LUMBER_BUY_FALSE_EFFECT"
          }
        ],
        "topic": "TALK_LUMBERMILL_FABRICATE_END",
        "condition": { "not": { "npc_has_effect": "lumbermill_waiting_for_wood_sheet" } }
      },
      {
        "text": "[350$]  I'll buy some wooden beams.",
        "effect": [
          {
            "u_buy_item": "wood_beam",
            "cost": 35000,
            "count": 10,
            "true_eocs": "EOC_BUY_BEAM_TRUE_EFFECT",
            "false_eocs": "EOC_LUMBER_BUY_FALSE_EFFECT"
          }
        ],
        "topic": "TALK_LUMBERMILL_FABRICATE_END",
        "condition": { "not": { "npc_has_effect": "lumbermill_waiting_for_wood_beam" } }
      }
    ]
  },
  {
    "id": "TALK_LUMBERMILL_FABRICATE_END",
    "//": "This is all the dialogue related to buying bulk wood. TO-DO - Use variables to refine shop system. See SCRIPT_EFFECTS.md and isolated road fabriation system.",
    "type": "talk_topic",
    "dynamic_line": [ "Is there anything else you want?" ],
    "responses": [
      { "text": "No, that's all.", "topic": "TALK_DONE" },
      {
        "text": "[10$]  I'll buy some sticks.",
        "effect": [ { "u_buy_item": "stick", "cost": 1000, "count": 10 } ],
        "topic": "TALK_LUMBERMILL_FABRICATE_END"
      },
      {
        "text": "[20$]  I'll buy some long sticks.",
        "effect": [ { "u_buy_item": "stick_long", "cost": 2000, "count": 10 } ],
        "topic": "TALK_LUMBERMILL_FABRICATE_END"
      },
      {
        "text": "[30$]  I'll buy some planks.",
        "effect": [ { "u_buy_item": "2x4", "cost": 3000, "count": 10 } ],
        "topic": "TALK_LUMBERMILL_FABRICATE_END"
      },
      {
        "text": "[100$]  I'll buy some logs.",
        "effect": [
          {
            "u_buy_item": "log",
            "cost": 10000,
            "count": 10,
            "true_eocs": "EOC_BUY_LOGS_TRUE_EFFECT",
            "false_eocs": "EOC_LUMBER_BUY_FALSE_EFFECT"
          }
        ],
        "topic": "TALK_LUMBERMILL_FABRICATE_END",
        "condition": { "not": { "npc_has_effect": "lumbermill_waiting_for_log" } }
      },
      {
        "text": "[120$]  I'll buy some wooden panels.",
        "effect": [
          {
            "u_buy_item": "wood_panel",
            "cost": 12000,
            "count": 10,
            "true_eocs": "EOC_BUY_PANEL_TRUE_EFFECT",
            "false_eocs": "EOC_LUMBER_BUY_FALSE_EFFECT"
          }
        ],
        "topic": "TALK_LUMBERMILL_FABRICATE_END",
        "condition": { "not": { "npc_has_effect": "lumbermill_waiting_for_wood_panel" } }
      },
      {
        "text": "[240$]  I'll buy some large wooden sheets.",
        "effect": [
          {
            "u_buy_item": "wood_sheet",
            "cost": 24000,
            "count": 10,
            "true_eocs": "EOC_BUY_LARGE_PANEL_TRUE_EFFECT",
            "false_eocs": "EOC_LUMBER_BUY_FALSE_EFFECT"
          }
        ],
        "topic": "TALK_LUMBERMILL_FABRICATE_END",
        "condition": { "not": { "npc_has_effect": "lumbermill_waiting_for_wood_sheet" } }
      },
      {
        "text": "[350$]  I'll buy some wooden beams.",
        "effect": [
          {
            "u_buy_item": "wood_beam",
            "cost": 35000,
            "count": 10,
            "true_eocs": "EOC_BUY_BEAM_TRUE_EFFECT",
            "false_eocs": "EOC_LUMBER_BUY_FALSE_EFFECT"
          }
        ],
        "topic": "TALK_LUMBERMILL_FABRICATE_END",
        "condition": { "not": { "npc_has_effect": "lumbermill_waiting_for_wood_beam" } }
      }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_BUY_LOGS_TRUE_EFFECT",
    "global": false,
    "effect": [
      { "npc_add_effect": "lumbermill_waiting_for_log", "duration": "2 h" },
      { "npc_add_effect": "currently_busy", "duration": "2 h" }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_BUY_PANEL_TRUE_EFFECT",
    "global": false,
    "effect": [
      { "npc_add_effect": "lumbermill_waiting_for_wood_panel", "duration": "3 h" },
      { "npc_add_effect": "currently_busy", "duration": "3 h" }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_BUY_LARGE_PANEL_TRUE_EFFECT",
    "global": false,
    "effect": [
      { "npc_add_effect": "lumbermill_waiting_for_wood_sheet", "duration": "3 h" },
      { "npc_add_effect": "currently_busy", "duration": "3 h" }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_BUY_BEAM_TRUE_EFFECT",
    "global": false,
    "effect": [
      { "npc_add_effect": "lumbermill_waiting_for_wood_beam", "duration": "4 h" },
      { "npc_add_effect": "currently_busy", "duration": "4 h" }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_LUMBER_BUY_FALSE_EFFECT",
    "global": false,
    "effect": [  ]
  }
]
