[
  {
    "type": "npc",
    "id": "forge_lord_merchant",
    "//": "The Lord of the Forge of Wonders.",
    "name_unique": "Valzain of Psiom",
    "name_suffix": "Forge Lord",
    "class": "NC_FORGE_LORD",
    "attitude": 0,
    "mission": 3,
    "gender": "male",
    "chat": "TALK_FORGE_LORD",
    "faction": "forge_lords"
  },
  {
    "type": "npc_class",
    "id": "NC_FORGE_LORD",
    "name": { "str": "Wondrous Dreamer" },
    "job_description": "I created this place from dreams and magic.",
    "traits": [ { "trait": "VAULT_DEFENDER" }, { "group": "NPC_starting_traits" }, { "group": "Appearance_demographics" } ],
    "//": "This is a unique NPC who doesn't get randomly selected background traits",
    "common": false,
    "bonus_int": { "rng": [ 20, 25 ] },
    "bonus_per": { "rng": [ 20, 25 ] },
    "shopkeeper_item_group": [ { "group": "NC_FORGE_LORD_SHOP", "rigid": true } ],
    "shopkeeper_price_rules": [ { "group": "NC_FORGE_LORD_ACCEPTED_BOOKS", "price": 2500, "fixed_adj": 0 } ],
    "worn_override": "NC_FORGE_LORD_clothes",
    "skills": [
      {
        "skill": "ALL",
        "level": { "mul": [ { "one_in": 3 }, { "sum": [ { "dice": [ 2, 2 ] }, { "constant": -2 }, { "one_in": 4 } ] } ] }
      },
      { "skill": "mechanics", "bonus": { "one_in": 2 } },
      { "skill": "computer", "bonus": { "one_in": 2 } },
      { "skill": "electronics", "bonus": { "rng": [ 0, 2 ] } },
      { "skill": "speech", "bonus": { "rng": [ 10, 20 ] } }
    ]
  },
  {
    "type": "item_group",
    "id": "NC_FORGE_LORD_clothes",
    "subtype": "collection",
    "entries": [
      { "item": "mbelt_pockets_greater", "prob": 100 },
      { "item": "cloak_morthylla", "prob": 100 },
      { "item": "mboots_escape", "prob": 100 },
      { "item": "breeches", "prob": 100 },
      { "item": "polo_shirt", "prob": 100 }
    ]
  },
  {
    "type": "item_group",
    "subtype": "collection",
    "id": "NC_FORGE_LORD_STORE",
    "items": [
      { "group": "enchanted_combat_items", "count": [ 3, 8 ], "prob": 40 },
      { "group": "enchanted_misc", "count": [ 1, 3 ], "prob": 50 },
      { "group": "enchanted_rings_unusual", "count": [ 1, 2 ], "prob": 20 },
      { "group": "enchanted_rings_rare", "count": [ 1, 2 ], "prob": 30 },
      { "group": "enchanted_wands_greater", "count": [ 1, 2 ], "prob": 30 },
      { "group": "enchanted_wands_lesser", "count": [ 5, 8 ], "prob": 20 },
      { "group": "enchanted_melee_weapons_plus2", "prob": 20 },
      { "group": "enchanted_rings_common", "prob": 20 },
      { "group": "enchanted_rings_uncommon", "prob": 5 },
      { "group": "enchanted_arrows", "prob": 15, "count": [ 1, 2 ] },
      { "group": "group_potion_fruits", "prob": 10, "count": [ 1, 4 ] },
      { "group": "enchanted_bracelets", "prob": 4 },
      { "group": "enchanted_belts", "prob": 2 },
      { "group": "items_of_elvenkind", "prob": 1 },
      { "group": "parabolan_armor", "prob": 15 },
      { "group": "spellbook_loot_1", "prob": 35, "count": [ 1, 3 ] },
      { "group": "group_forge_warp_items", "prob": 30 }
    ]
  },
  {
    "type": "item_group",
    "subtype": "collection",
    "id": "NC_FORGE_LORD_SHOP",
    "items": [
      { "group": "NC_FORGE_LORD_STORE", "count": [ 20, 32 ], "prob": 100 },
      { "item": "denarius", "count": [ 20, 50 ], "prob": 100 }
    ]
  },
  {
    "type": "item_group",
    "subtype": "collection",
    "id": "NC_FORGE_LORD_ACCEPTED_BOOKS",
    "items": [
      { "item": "book_fict_soft_pulp_venus", "prob": 100 },
      { "item": "book_fict_soft_pulp_wtmrw", "prob": 100 },
      { "item": "book_fict_soft_pulp_nogod", "prob": 100 },
      { "item": "book_fict_soft_pulp_ddive", "prob": 100 },
      { "item": "book_fict_soft_pulp_squids", "prob": 100 },
      { "item": "book_fict_soft_pulp_gcapes", "prob": 100 },
      { "item": "book_fict_soft_pulp_yesmurd", "prob": 100 },
      { "item": "book_fict_soft_pulp_flashcc", "prob": 100 },
      { "item": "novel_scifi", "prob": 100 },
      { "item": "book_fict_soft_pulp_venus", "prob": 100 },
      { "item": "book_fict_soft_scifi_dune", "prob": 100 },
      { "item": "book_fict_hard_scifi_dune", "prob": 100 },
      { "item": "book_fict_hard_scifi_talnt", "prob": 100 },
      { "item": "book_fict_hard_scifi_fifth", "prob": 100 },
      { "item": "book_fict_hard_scifi_zamwe", "prob": 100 },
      { "item": "book_fict_soft_scifi_zamwe", "prob": 100 },
      { "item": "book_fict_soft_scifi_cybrd", "prob": 100 },
      { "item": "book_fict_soft_scifi_brave", "prob": 100 },
      { "item": "book_fict_soft_scifi_f451", "prob": 100 }
    ]
  },
  {
    "id": "TALK_FORGE_LORD",
    "type": "talk_topic",
    "dynamic_line": {
      "u_is_wearing": "badge_marshal",
      "yes": [
        "The government doesn't subsidize your purchases here anymore.",
        "Do you have any tales of adventure I could write down?",
        "In case you were wondering, we no longer respect any pre-existing weapon laws."
      ],
      "no": [ "Welcome to the Forge of Wonders.", "Here to trade, I hope?", "Bring me tales and we can trade." ]
    },
    "responses": [
      { "text": "Let's trade.", "effect": "start_trade", "topic": "TALK_FORGE_LORD" },
      { "text": "What are you doing here?", "topic": "TALK_FORGE_LORD_DOING" },
      { "text": "I have some stories for you.", "topic": "TALK_FORGE_LORD_BOOKS_DELIVER" },
      { "text": "Anything interesting being worked on?", "topic": "TALK_FORGE_LORD_ASK_INTERVAL" },
      { "text": "Well, bye.", "topic": "TALK_DONE" }
    ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_FORGE_LORD_BOOKS_DELIVER",
    "dynamic_line": "Excellent.  What new stories have you brought me?",
    "responses": [ { "text": "Well, let's see.", "effect": "start_trade", "topic": "TALK_FORGE_LORD" } ]
  },
  {
    "id": "TALK_FORGE_LORD_DOING",
    "type": "talk_topic",
    "dynamic_line": {
      "compare_string": [ "yes", { "u_val": "general_meeting_u_met_FORGE_LORD" } ],
      "no": "Well here and now I am the law, and the law here is that people purchase my goods, they take them out into the world and they die; or they return to buy more of my goods.  Either way, I write poetry about them.",
      "yes": "Once I was lost in the throes of love, now I've built an empire of material goods.  I've found these two things are equally as powerful, and dangerous."
    },
    "responses": [
      {
        "text": "Good day, sir.",
        "effect": { "u_add_var": "general_meeting_u_met_FORGE_LORD", "value": "yes" },
        "condition": { "not": { "compare_string": [ "yes", { "u_val": "general_meeting_u_met_FORGE_LORD" } ] } },
        "topic": "TALK_FORGE_LORD"
      }
    ]
  },
  {
    "id": "TALK_FORGE_LORD_ASK_INTERVAL",
    "type": "talk_topic",
    "dynamic_line": "My minions are busy putting the final touches on a few exciting projects, check back in <interval> and see what's new.",
    "responses": [ { "text": "May your hammers be accurate.", "topic": "TALK_FORGE_LORD" } ]
  }
]
