[
  {
    "type": "npc",
    "id": "old_guard_red",
    "name_unique": "Red",
    "class": "NC_SOLDIER",
    "attitude": 7,
    "mission": 3,
    "chat": "TALK_OLD_GUARD_RED",
    "faction": "old_guard",
    "mission_offered": [ "MISSION_OLD_GUARD_DINO_1" ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_OLD_GUARD_RED",
    "dynamic_line": {
      "u_has_var": "talked_to_red",
      "type": "dialogue",
      "context": "first_meeting",
      "value": "yes",
      "no": "You there, wanderer.  You have the look of someone who hates dinosaurs.  Are you ready to take this country back?",
      "yes": {
        "u_has_var": "asked_about_kill_dinos",
        "type": "dialogue",
        "context": "dino",
        "value": "yes",
        "no": "You're back.  I knew you were a killer.  Are you ready to take this country back?",
        "yes": "It's a good day to shoot some dinos."
      }
    },
    "speaker_effect": { "effect": { "u_add_var": "talked_to_red", "type": "dialogue", "context": "first_meeting", "value": "yes" } },
    "responses": [
      {
        "text": "Dinosaurs?  What are you talking about?",
        "topic": "TALK_RED_DINOSAURS",
        "condition": { "not": { "u_has_var": "asked_about_kill_dinos", "type": "dialogue", "context": "dino", "value": "yes" } },
        "effect": { "u_add_var": "asked_about_kill_dinos", "type": "dialogue", "context": "dino", "value": "yes" }
      },
      { "text": "Let's trade items.", "topic": "TALK_OLD_GUARD_RED", "effect": "start_trade" },
      {
        "text": "How can I help?",
        "topic": "TALK_MISSION_LIST",
        "condition": { "u_has_var": "asked_about_kill_dinos", "type": "dialogue", "context": "dino", "value": "yes" }
      },
      {
        "text": "Mission update for you, Red.",
        "topic": "TALK_MISSION_INQUIRE",
        "condition": { "and": [ "has_assigned_mission" ] }
      },
      { "text": "Anyway.  Take care, Red.", "topic": "TALK_DONE" }
    ]
  },
  {
    "id": "TALK_RED_DINOSAURS",
    "type": "talk_topic",
    "dynamic_line": "They just started showing up about the same time it all fell apart.  They attack the caravans and the bandits both.  Hungry bastards.  All dinosaurs are shoot on sight.  We don't eat them, they're probably poisoned with whatever got the dead ones.  Just leave them for the crows.  Same with the eggs.",
    "responses": [
      { "text": "Kill all dinosaurs, interesting…", "topic": "TALK_MISSION_LIST" },
      { "text": "Probably not important.", "topic": "TALK_OLD_GUARD_RED" }
    ]
  },
  {
    "id": "MISSION_OLD_GUARD_DINO_1",
    "type": "mission_definition",
    "name": { "str": "Secure Area" },
    "description": "We lost another trade caravan.  Whatever did the damage is still out there.  Investigate the trade route and eliminate the threat.",
    "goal": "MGOAL_KILL_MONSTER",
    "difficulty": 5,
    "value": 100000,
    "start": {
      "assign_mission_target": { "om_terrain": "field", "reveal_radius": 5, "random": true, "search_range": 30 },
      "update_mapgen": { "place_monster": [ { "group": "GROUP_DINOSAUR_DANGEROUS", "x": 12, "y": 12, "target": true } ] }
    },
    "origins": [ "ORIGIN_SECONDARY" ],
    "followup": "MISSION_OLD_GUARD_DINO_2",
    "end": { "opinion": { "trust": 1, "value": 1 } },
    "dialogue": {
      "describe": "We need help…",
      "offer": "It sounds like you get it.  There is something out there scaring the merchants.  They got away safe but lost a grain shipment, you're welcome to it if you can haul it back.  Check out the area and report anything you find.",
      "accepted": "Thanks, keeping the people safe is what we try and do.",
      "rejected": "Come back when you get a chance, we really need to start reclaiming the region.",
      "advice": "Search the bushes for any trace?  I'm not an expert tracker but you should be able to find something.",
      "inquire": "How is the search going?",
      "success": "Great work, wasn't sure what I was sending you after.",
      "success_lie": "What good does this do us?",
      "failure": "It was a lost cause anyways…"
    }
  },
  {
    "id": "MISSION_OLD_GUARD_DINO_2",
    "type": "mission_definition",
    "name": { "str": "Lost in the Woods" },
    "description": "We lost a scout searching the woods for a lost family.  Find the scout or take out what got them.",
    "goal": "MGOAL_KILL_MONSTER",
    "difficulty": 7,
    "value": 100000,
    "start": {
      "assign_mission_target": { "om_terrain": "forest", "reveal_radius": 5, "random": true, "search_range": 40 },
      "update_mapgen": { "place_monster": [ { "group": "GROUP_DINOSAUR_MEGA_CARNIVORE", "x": 12, "y": 12, "target": true } ] }
    },
    "origins": [ "ORIGIN_SECONDARY" ],
    "followup": "MISSION_OLD_GUARD_DINO_3",
    "end": { "opinion": { "trust": 2, "value": 2 } },
    "dialogue": {
      "describe": "We need help…",
      "offer": "Seems like the only news we get here is bad.  A weirdo family was staying outside the center, I don't know why.  They said something about germs.  Anyway, they're gone, vanished in the night.  We sent a scout out to find them but now they're gone too.  We have a pretty good idea of where in the woods the scout was searching.  Bring back anyone you can alive and end whatever is keeping them.",
      "accepted": "Thanks, keeping the people safe is what we try and do.",
      "rejected": "Come back when you get a chance, we really need to start reclaiming the region.",
      "advice": "Try not to make too much noise.  Visibility is bad in the woods so it's all about sound.",
      "inquire": "How is the search going?",
      "success": "Great work, wasn't sure what I was sending you after.",
      "success_lie": "What good does this do us?",
      "failure": "It was a lost cause anyways…"
    }
  },
  {
    "id": "MISSION_OLD_GUARD_DINO_3",
    "type": "mission_definition",
    "name": { "str": "Protect the cattle" },
    "description": "Someone or something in the swamps is stealing cattle.  Stop it.",
    "goal": "MGOAL_KILL_MONSTER",
    "difficulty": 9,
    "value": 100000,
    "start": {
      "assign_mission_target": { "om_terrain": "forest_water", "reveal_radius": 5, "random": true, "search_range": 50 },
      "update_mapgen": { "place_monster": [ { "group": "GROUP_DINOSAUR_ZOMBIE", "x": 12, "y": 12, "target": true } ] }
    },
    "origins": [ "ORIGIN_SECONDARY" ],
    "followup": "MISSION_OLD_GUARD_DINO_4",
    "end": {
      "opinion": { "trust": 1, "value": 1 },
      "effect": [ { "u_buy_monster": "mon_zachycephalosaurus_chain", "count": 1, "name": "Betty" }, { "u_spawn_item": "meth" } ]
    },
    "dialogue": {
      "describe": "We need help…",
      "offer": "This is probably a waste of time, but a nearby farmer has been complaining that someone or something has been stealing a lot of their cattle.  We don't normally bother with little things like this, but our food supplies are getting low and the farmers are threatening to cut us off if we won't help.  I've marked on your map where the farmers think the cattle are going.",
      "accepted": "Thanks, keeping the people safe is what we try and do.",
      "rejected": "Come back when you get a chance, we really need to start reclaiming the region.",
      "advice": "Maybe bring a rope to bring the cattle back or something for them to eat.  They can be ornery cusses if you don't know how to treat them.",
      "inquire": "How is the search going?",
      "success": "Oh.  Oh no.  We didn't think the dinosaurs could raise and we've killed so many of them.  We might be in trouble here.  Here's one now, I'll rip it apart!  Wait, I can see in its dead eyes that it loves us and wants to help us.  I'll just end up killing it, I'm barely holding it together here.  You'd better take it.",
      "success_lie": "What good does this do us?",
      "failure": "It was a lost cause anyways…"
    }
  },
  {
    "id": "MISSION_OLD_GUARD_DINO_4",
    "type": "mission_definition",
    "name": { "str": "Kill 50 dinos" },
    "description": "Kill 50 dinos",
    "goal": "MGOAL_KILL_MONSTER_SPEC",
    "monster_species": "DINOSAUR",
    "monster_kill_goal": 50,
    "difficulty": 9,
    "value": 100000,
    "origins": [ "ORIGIN_SECONDARY" ],
    "followup": "MISSION_OLD_GUARD_DINO_5",
    "end": {
      "opinion": { "trust": 1, "value": 1 },
      "effect": [ { "u_buy_monster": "mon_zachycephalosaurus_chain", "count": 1, "name": "Stromer" }, { "u_spawn_item": "meth" } ]
    },
    "dialogue": {
      "describe": "We need help…",
      "offer": "While we were out on a hunting party a couple of those big ugly ones came back and ate a whole mob of the dead I wanted to take out.  We lost a lot of soldiers too while we were out too, good ones, and they died bad.  Slow.  I made sure of it, the traitors.  These dinosaurs have gone too far.  They're making us crazy.  We need to rack up some serious numbers to catch up.  We need some serious risk taking, I'm talking explosives and fire and drugs and rock and roll here.  I don't care if it's living dinos or dead, they all need to be taken down.",
      "accepted": "Kill all dinos.",
      "rejected": "I'm right on the edge soldier.  Whose side are you on here?",
      "advice": "You can kill a lot of dinos without taking a lot of pills, but I don't see how.",
      "inquire": "You hit your numbers yet?",
      "success": "That's what I like to hear.  We got our numbers too, and we chained down a couple too.  I had to take out a few more soldiers who didn't make their numbers, so this is good.  We're doing good.",
      "success_lie": "What good does this do us?",
      "failure": "It was a lost cause anyways…"
    }
  },
  {
    "id": "MISSION_OLD_GUARD_DINO_5",
    "type": "mission_definition",
    "name": { "str": "Kill me a T Rex" },
    "description": "Kill me a T Rex",
    "goal": "MGOAL_KILL_MONSTER",
    "difficulty": 9,
    "value": 100000,
    "start": {
      "assign_mission_target": { "om_terrain": "field", "reveal_radius": 5, "random": true, "search_range": 60 },
      "update_mapgen": { "place_monster": [ { "monster": "mon_tyrannosaurus", "x": 12, "y": 12, "target": true } ] }
    },
    "origins": [ "ORIGIN_SECONDARY" ],
    "end": {
      "opinion": { "trust": 1, "value": 1 },
      "effect": [ "npc_die", { "u_buy_monster": "mon_zyrannosaurus_chain", "count": 1, "name": "Wilma" }, { "u_spawn_item": "meth" } ]
    },
    "dialogue": {
      "describe": "We need help…",
      "offer": "I have a special mission I need to complete before these dinos finish killing me off, and I need you to bring me something special.  Go kill me a T Rex.  We're going to be gods.  It's all going to be worth it.",
      "accepted": "MY LIFE FOR YOU.",
      "rejected": "I'm right on the edge soldier.  Whose side are you on here?",
      "advice": "You're a dino killing machine like me.  You know what to do.",
      "inquire": "You got my body yet?",
      "success": "All right, we've got the body here.  Watch this, I'm going to climb into its dead mouth and when you see me again I'll be a god.  *SWALLOW*",
      "success_lie": "What good does this do us?",
      "failure": "It was a lost cause anyways…"
    }
  }
]
