# What people say. Read at startup by the game and the server (src/model/people/Dialog.cpp).
#
# A conversation ("talk") is every [node TALK.NAME] section with the same TALK. Each person's role
# picks one: quartermaster, surveyor, engineer, botanist, pilot, medic, director, researcher,
# technician, dockmaster, shopkeeper, officer, doctor, broker, traveller, trader, barkeep,
# farmer, archaeologist, prospector, miner, spacer (a ship's crew), and outlaw (all three hostile roles). It opens on
# its "root" node.
#
#   text = What the person says.
#   text if met = A line used instead when the condition holds. The first text whose condition
#                 holds is spoken, so put the plain one last.
#   reply = What you answer -> NODE         (NODE "end" closes the conversation)
#   reply if survival = Shown only when the condition holds -> NODE
#   reply = An answer that does something -> NODE ! EFFECT ARGUMENT
#   back = NODE                              ("Something else." back to NODE, and "Goodbye.")
#
# Effects: give_fuel, give_pickaxe, give_jetpack, heal, start_quest QUEST_ID, hire (the people for
# hire where the speaker works, on the Fleet page's Crew tab), sign_on (an escape pod's survivor
# joins the player's crew), rescue (an escape
# pod's survivor rides with the player), hand_over (the dockmaster or a director takes a survivor
# from the player, and the server pays), open_shop (the
# speaker's shop, the employment office's job board, or the dockmaster's services; for the people
# of a trading post, farm or dig, the counter nearest where they work).
#
# Conditions are flags joined by '&' (and) and '|' (or); '!' negates one. Who is talking (step 37a):
# their species, human, tikkari, sethra or oruk, and in:NATION for the nation whose system it is
# (in:republic, in:ascendancy, in:hives, in:concord, in:dominion, in:reaches), so each species
# speaks its own way in the same role and humans vary by nation. Flags: has_survivor (the
# player carries a rescued survivor), breathable,
# survival, hurt, hasPickaxe, gaveFuel, gaveJetpack, met, fauna (the world has species), sites
# (structures nearby), cold (below -10 C), hot (above 40 C), manyPlanets, for each quest in the
# player's log has:ID, active:ID and done:ID, and for the station's people at:KIND (the kind of
# room or shop they work in: general, employment, dockmaster...).
#
# {name} puts in a value: player, npc, holder (who holds the system), planet, planetClass, atmosphere, system, nearest (the
# closest other world), station, sites, planets, tempC, fauna (a list), faunaCount, faunaFirst,
# keyInteract, keyLand, keyJournal, keyQuantum, keyMap, keyDock, and for the station's people post. {@name} puts in a [snippet name]: its first
# text whose condition holds.

[snippet something_else]
text = Something else.

[snippet goodbye]
text = Goodbye.

[snippet world]
text = {planet} is a {planetClass} world.

[snippet air]
text if breathable = The air is breathable, so you can leave the helmet off.
text = The air is {atmosphere}. Keep your helmet sealed and watch your oxygen.

[snippet temperature]
text if cold = It's {tempC} C out here. Insulated gear, or you'll freeze.
text if hot = It's {tempC} C. Stay in the shade and keep a suit on.
text = Around {tempC} C, which is about as kind as frontier worlds get.

[snippet climate]
text = {@air} {@temperature}

# ---------------------------------------------------------------- Research outposts

[node director.root]
text if has_survivor = Who's that with you? A survivor? Bring them in, we'll look after them.
text if met = Welcome back to {station}, {player}.
text = A visitor! We don't get many. I'm {npc}, I run {station}. Mind the airlock, it sticks.
reply if has_survivor = I found them at a crashed pod. Can you take them? -> end ! hand_over
reply = What do you study here? -> what
reply = Any of your people want to fly with me? -> end ! hire
reply = Anything interesting nearby? -> around
reply = What's this world like? -> site
reply = Goodbye. -> end

[node director.what]
text = Long-term survey of {planet}. Geology, atmosphere, anything that grows or crawls. The labs are
  through the corridors; my people will talk your ear off if you let them.
back = root

[node director.around]
text if sites = Our scans picked up {sites}. Worth a look if you're heading that way.
text = Nothing out there but terrain, as far as our scans go.
back = root

[node director.site]
text = {@world} {@climate}
back = root

[node researcher.root]
text if met = Oh, it's you. Don't touch the samples.
text = {npc}, research staff. Sorry, I've been staring at spectra all day. Can I help you?
reply = What are you working on? -> work
reply = Is it safe outside? -> air
reply = Seen anything strange? -> ruins
reply = Goodbye. -> end

[node researcher.work]
text if fauna = Behaviour studies. We've tagged {faunaCount} species so far: {fauna}. The {faunaFirst} are
  my favourite.
text = Core samples. The rock on {planet} has layers going back further than anyone expected.
  Something shaped this place.
back = root

[node researcher.air]
text if breathable = {@climate}
text = {@climate} Keep your helmet sealed outside the station.
back = root

[node researcher.ruins]
text if sites = There's {sites} out there. I'd go myself if the director let me out of the lab.
text = Nothing on the scans nearby. Just us and the rocks.
back = root

[node technician.root]
text if met = Still here? Grab a wrench or get out of the way.
text = {npc}, maintenance. If it hums, blinks or leaks, it's mine.
reply = How do you keep this place running? -> power
reply = Any tips? -> fix
reply = Goodbye. -> end

[node technician.power]
text = Solar for the days, the reactor for the nights. The relay dish keeps us talking to orbit,
  when the weather lets it.
back = root

[node technician.fix]
text = Doors open when you walk up to them. Lights are panels in the ceiling, fittings are in the
  fabricator under PROPS. Press {keyInteract} to talk, not to poke the reactor.
back = root

# ---------------------------------------------------------------- Trading posts, farms and digs
# The people of step 30's places. {station} is the place's name.

[node trader.root]
text if met = Back again, {player}. Same prices as yesterday.
text if sethra = Welcome, welcome! {npc}, at your ssservice. Ssshelves full, pricesss fair, and I buy almost anything.
text if tikkari = I am {npc}. We trade what the hive does not need for what it does. Show me your hold.
text if oruk = {npc}. I trade. You trade. Nobody talks too much.
text = Welcome to {station}. I'm {npc}. If it's on the shelves it's for sale, and I'll buy most of
  what you've dug up.
reply = Let's trade. -> end ! open_shop
reply = Anyone here looking for a berth? -> end ! hire
reply = Who comes through here? -> who
reply = What's around here? -> around
reply = Goodbye. -> end

[node trader.who]
text = Prospectors, mostly, and settlers with a hold full of ore and nothing to eat. A ship from
  the station now and then. Someday there'll be a board out in the yard with work on it.
back = root

[node trader.around]
text if sites = The ones who come in talk about {sites}.
text = Rocks and weather, as far as anyone's told me.
back = root

[node barkeep.root]
text if met = Back for another, {player}?
text if sethra = Sssit, sssit. I am {npc}. The drink is ssstrong and the gossip is ssstronger.
text if tikkari = I am {npc}. Sit. Eat. The hive feeds those who work.
text if oruk = {npc}. Drink. Don't spill it on me.
text = Pull up a stool. I'm {npc}. Food's hot and the drink's mostly clean.
reply = What's on? -> end ! open_shop
reply = Anyone here looking for a berth? -> end ! hire
reply = Heard anything? -> rumour
reply = Goodbye. -> end

[node barkeep.rumour]
text if sites = People in here won't stop talking about {sites}.
text = Quiet lately. That corner table's for folks looking for work, once there's work to hire for.
back = root

[node farmer.root]
text if met = Still here, {player}? There's always weeding.
text = {npc}. This is {station}. We grow what we eat and sell what we don't.
reply = Can I buy food? -> end ! open_shop
reply = How does anything grow out here? -> grow
reply = Goodbye. -> end

[node farmer.grow]
text if breathable = Good air, water from the ground, and stubbornness. The pens keep the herd off the
  crops; the fences keep the wild ones out, most nights.
text = It doesn't, without a lot of help.
back = root

[node archaeologist.root]
text if met = Mind the trench, {player}. It's deeper than it looks.
text = {npc}, with the institute. We're digging out {station}. Careful where you step.
reply = Do you trade? -> end ! open_shop
reply = What have you found? -> finds
reply = Goodbye. -> end

[node archaeologist.finds]
text = A wall under the court, older than the court itself. Whoever built this built on something
  else. We pay for survey data and specimens; it keeps the lights on.
back = root

[node prospector.root]
text if met = Any luck out there?
text = Name's {npc}. Just in to sell a load and buy beans.
reply = Find anything good? -> luck
reply = Goodbye. -> end

[node prospector.luck]
text if sites = I came past {sites}. Didn't stop.
text = Iron, mostly. Copper if you're lucky and dig deep.
back = root

[node miner.root]
text if met = Back again? Mind the edge.
text = {npc}. This is {station}. Hard hats are optional, sense isn't.
reply = Do you sell ore? -> end ! open_shop
reply = How deep does it go? -> deep
reply = Goodbye. -> end

[node miner.deep]
text = The rigs bore straight down till they hit bedrock or fill their crates. We empty the crates,
  sell the ore and buy food. That's the job.
back = root

# An escape pod's survivor (step 30c). "rescue" takes them with the player: they ride along, a
# Survivor item named for them, until handed over at the station's dockmaster or an outpost's
# director ("hand_over"), which pays.

[node survivor.root]
text if met = You came back! Can we go now?
text = Oh thank the stars. I'm {npc}. My ship broke up in orbit and this pod is all that came down.
  I've been here for days.
reply = I'll get you out of here. -> taken ! rescue
reply = I'm short a hand. Sign on with my crew? -> signed ! sign_on
reply = What happened? -> what
reply = I'll be back. -> end

[node survivor.what]
text = Raiders, or a reactor fault, I don't know. Alarms, the pod, then the ground. Please, the station
  or any outpost. Anywhere with people.
back = root

[node survivor.signed]
text = Crew? Anything, as long as it flies away from here. I can carry and I can learn. You won't
  regret it.
reply = Welcome aboard. -> end

[node survivor.taken]
text = Thank you. I'll keep my head down and my hands off the controls.
reply = Hold on tight. -> end

# ---------------------------------------------------------------- The landing crew (--crew)

[node quartermaster.root]
text if met = Back again, {player}? The stores are open.
text = {player}! Good, you made it down in one piece. I'm {npc}, I keep the crew's stores. Need
  anything?
reply if !gaveFuel = Any spare fuel? -> fuel ! give_fuel
reply if gaveFuel = Any spare fuel? -> fuel
reply if survival & !hasPickaxe = I lost my pickaxe. -> pick ! give_pickaxe
reply = What's it like out there? -> site
reply = Goodbye. -> end

[node quartermaster.fuel]
text if gaveFuel = I already gave you my spare canisters. Mine some more, or ask me after the supply
  drop.
text = Four canisters of reactor fuel. Feed them into a ship's fuel intake, not your mouth.
back = root

[node quartermaster.pick]
text = Stone head, good grip. Rock, ice and metal all come apart faster with it. Try not to lose
  this one.
back = root

[node quartermaster.site]
text = {@world} {@climate}
back = root

[node surveyor.root]
text if met = {player}. Any news from the beacons?
text = Surveyor {npc}. Command wants this site mapped before we commit to a camp, and I can't be
  everywhere at once.
reply if done:test.survey = The survey is finished. -> done
reply if active:test.survey = How's the survey going? -> progress
reply if !done:test.survey & !active:test.survey = I can run the survey for you. -> start ! start_quest test.survey
reply = Tell me about this world. -> site
reply = What else is in this system? -> system
reply = Goodbye. -> end

[node surveyor.start]
text = The beacons are marked on your visor. Walk to each one and the readings log themselves. Your
  journal ({keyJournal}) tracks the rest.
back = root

[node surveyor.progress]
text = Still waiting on beacon readings. Follow the markers; check the journal ({keyJournal}) if
  you lose track.
back = root

[node surveyor.done]
text = All beacons logged. That's a clean survey, thank you. Command owes us both a drink.
back = root

[node surveyor.site]
text = {@world} {@climate}
back = root

[node surveyor.system]
text if manyPlanets = {planets} worlds circle {system}. {nearest} is the next one out; open the star
  map ({keyMap}) to plot a course.
text = {planet} is all alone around {system}. Quiet neighbourhood.
back = root

[node engineer.root]
text if met = Back in one piece. What broke?
text = Mind the wiring. {npc}, engineering. If it burns fuel or holds air, it's mine.
reply = How do I fly a ship? -> fly
reply = Tell me about the quantum drive. -> quantum
reply = How do I keep a ship's air in? -> air
reply if survival & !gaveJetpack = Got a spare jetpack? -> jetpack ! give_jetpack
reply if survival & gaveJetpack = Got a spare jetpack? -> jetpack
reply = Goodbye. -> end

[node engineer.fly]
text = Walk up to a cockpit and press {keyInteract} to take the seat. Thrust to lift off; near the
  ground, {keyLand} sets her down on the gear. Tap {keyInteract} again to climb out.
back = root

[node engineer.quantum]
text = Quantum drive only spools outside an atmosphere. Point the nose at your target and hold
  {keyQuantum}. She drops out on her own before she hits anything big.
back = root

[node engineer.air]
text = Life support only fills sealed rooms. Doors, windows and hull plates, no gaps. Press
  {keyInteract} on the unit to switch it on.
back = root

[node engineer.jetpack]
text if gaveJetpack = One per customer. I need the other pack for the reactor shroud.
text = Scout jetpack. Jump, then hold jump in the air to burn. Let go to cut the thrust. It refills
  while you stand on something.
back = root

[node botanist.root]
text if met = Careful where you step, there are seedlings everywhere.
text = Look at this soil, it's... sorry. {npc}, botany and xenobiology. Don't step on anything green.
reply = What lives here? -> life
reply = Is it safe out there? -> air
reply = Any advice on digging? -> dig
reply = Goodbye. -> end

[node botanist.life]
text if fauna = I've catalogued {faunaCount} species so far: {fauna}. They're mostly harmless if you
  give them room.
text = Nothing bigger than microbes on {planet}, as far as I can tell. Lonely, but at least nothing
  bites.
back = root

[node botanist.air]
text = {@climate}
back = root

[node botanist.dig]
text = Topsoil breaks by hand. For rock, ice and anything metal you'll want a pickaxe. And put the
  blocks back where you found them, ideally.
back = root

[node pilot.root]
text if met = Still grounded? Shame. Skies are clear.
text = {npc}, flight. I got us down here; I'll get us out again. Probably.
reply = Any flying tips? -> tips
reply = Where should I go next? -> where
reply = Goodbye. -> end

[node pilot.tips]
text = Ease off the throttle before you land, and keep the nose level. Gear first, pride second. A
  ship that's lost its hull won't take off until it's patched.
back = root

[node pilot.where]
text if manyPlanets = {nearest} is the closest hop from {planet}. Take a ship up past the air, line
  her up and let the quantum drive do the rest.
text = Nowhere else to go in this system. Enjoy the view.
back = root

[node medic.root]
text if hurt = {npc}, medical. You look rough. Sit down a moment.
text = {npc}, medical. You look fine. Let's keep it that way.
reply if hurt = Patch me up. -> heal ! heal
reply if !hurt = Patch me up. -> heal
reply = Any survival tips? -> tips
reply = Goodbye. -> end

[node medic.heal]
text if hurt = There. Patched, hydrated and lectured. Try not to fall off anything for a while.
text = Nothing to patch. Come back when you've done something reckless.
back = root

[node medic.tips]
text = Long falls hurt; good boots soften them. Watch your oxygen without a breathable sky, and
  dress for the temperature. Sprinting tires you out fast.
back = root

# ---------------------------------------------------------------- The station (design 19.1)
#
# Its staff at their posts and the travellers passing through. {station} is the station's name and
# {post} the room or shop where the speaker works; {keyDock} asks for a pad.

[node dockmaster.root]
text if active:tutorial.station = So you're the one who saw off those raiders. Welcome to {station}, {player}.
  The company pays for news like that.
text if sethra & met = Yesss, {player}, back again. The padsss are as you left them. Ask with {keyDock}.
text if tikkari & met = {player}. The hive remembers you. Your pad waits, as before. Ask with {keyDock}.
text if oruk & met = You again. Ask for a pad with {keyDock}. Don't make me say it twice.
text if met = {player}. Pads are where they were. Ask with {keyDock} when you want one.
text if sethra = Dockmassster {npc}, at your ssservice. Welcome to {station}. Every pad has its fee, and every fee isss fair. Mossstly.
text if tikkari = I am {npc}, Carrier of this hive's dock. We have counted your ship. Ask before you land. All here ask.
text if oruk = {npc}. I keep the pads. You land where I say, when I say, or you don't land.
text if human & in:ascendancy = Dockmaster {npc}, by the house's leave. Papers first, then a pad. Subjects to the lower berths.
text if human & in:reaches = {npc}. Pads are first come. Pay in coin, not promises, and don't start anything on my deck.
text if human & in:concord = {npc}, dockmaster for {holder}. A pad's a contract here. Keep your end and we're friends.
text = Dockmaster {npc}. Welcome to {station}. If you came in without asking for a pad, don't do it
  again.
reply = Service my ship. -> end ! open_shop
reply if has_survivor = I've brought a survivor from a crashed pod. -> end ! hand_over
reply if !has:chain.raiders.1 = These raiders. Can I help? -> chain_raiders
reply if active:chain.raiders.3 = About the hideout. -> chain_raiders_hideout
reply = Where do I find work? -> work
reply = How do I dock? -> dock
reply = What's on the station? -> sections
reply = Who runs this place? -> company
reply = Goodbye. -> end

[node dockmaster.work]
text = The job board's on the concourse, by the way in from here. New work every day: ore,
  culls, salvage, raider bounties, outpost runs. Further out and rougher pays more, and it all
  comes back through me.
back = root

[node dockmaster.dock]
text = Target the station and press {keyDock}. I'll light a free pad for you. Fly through the shield,
  set down inside the lamps, and she's held for you while you're aboard.
back = root

[node dockmaster.sections]
text = Hangar's here. The concourse is the round hall in the middle: shops, the cantina, the
  gallery. Dormitories on one side, the station office on another, engineering is staff only.
back = root

[node dockmaster.company]
text if sethra = {holder}, of course. Who elssse? Every bolt of this place is in their ledger, and so am I.
text if tikkari = The station is the hive's. We do not own it. We keep it, for those who come after.
text if oruk = {holder}. Clan business. Not yours.
text if in:ascendancy = {holder}, for the throne. Ask nothing else about it near an officer.
text if in:reaches = Nobody runs it, friend. {holder} likes to think they do.
text if !in:republic = {holder}. They own the hull and lease the units. I keep ships from hitting each other.
text = The charter company. They own the hull and lease the units. I just keep ships from hitting
  each other.
back = root

[node shopkeeper.root]
text if at:employment & met = Back for more work, {player}? The board's behind me.
text if at:employment = {post}. I'm {npc}. If you fly and you're not choosy, there's work on the
  board behind me.
text if at:survey & active:chain.surveyor.3 = Did you find them? Please, the cave. Hurry.
text if sethra & met = Ah, you return. A good sssign. Let usss trade, yesss?
text if tikkari & met = You return. We have kept count of what you bought.
text if oruk & met = Back. Buy something or move.
text if sethra = Welcome to {post}. I am {npc}. Everything has a price, and the price isss always ssspoken. Yesss, that will do.
text if tikkari = {post}. I am {npc}. The hive made these goods well. Pay the price on the tag. We do not haggle.
text if oruk = {npc}. This is {post}. You want something, point at it.
text if human & in:ascendancy = {post}, under licence of {holder}. Citizens first, then the rest of you.
text if human & in:reaches = {post}. I'm {npc}. Prices are what the last freighter charged me, plus a bit.
text if met = Back again. Have a look around.
text = Welcome to {post}. I'm {npc}.
reply if at:employment = Show me the jobs. -> end ! open_shop
reply if at:employment = I'm looking for crew. -> end ! hire
reply if at:employment = How does the work pay? -> pay
reply if !at:employment = Let's trade. -> end ! open_shop
reply if at:survey & !has:chain.surveyor.1 = You look worried. -> chain_surveyor
reply if at:cantina & !has:chain.cantina.1 = I'm new on the station. -> chain_cantina
reply if !at:employment = How do prices work here? -> stock
reply = How's business? -> business
reply = Goodbye. -> end

[node shopkeeper.pay]
text = The company posts the jobs and pays on the spot when you're done, once a run. Take one, do it,
  and come back for the next.
back = root

[node shopkeeper.stock]
text if sethra = The lisst price is for strangersss. Friends of the house pay lesss. Sssomeday, perhaps, that isss you.
text if tikkari = The price is the price. It was the price yesterday. It will be tomorrow.
text if oruk = Price is on the tag. You don't like it, the airlock is that way.
text = Company prices, same every day. I sell at list and buy at half, so don't buy things to sell
  them back.
back = root

[node shopkeeper.business]
text if at:employment = Never short of work out here. Short of people willing to do it, mostly.
text if sethra = Busssy, busssy. Every war is good for sssomeone, and we sell to both sides.
text if tikkari = The hive's work goes on. It does not need to be good. It needs to be done.
text if oruk = Good. The clans pay in metal. Outsiders pay double.
text = Steady. The board keeps crews busy, and busy crews buy.
back = root

[node officer.root]
text if met = Still behaving, {player}?
text if sethra = Officer {npc}. The housse keeps the peace here. Ssstay peaceful and we never meet again.
text if tikkari = I am {npc}, of the Wardens. The hive's law is old. Learn it before you break it.
text if oruk = {npc}. Blooded. You draw a weapon on this deck, I take your hand for it.
text if human & in:ascendancy = Officer {npc}, Huntsmen's Lodge. Subjects keep their eyes down here. Citizens show their papers.
text = Station officer {npc}. Keep your weapons holstered and your hands off the hull, and we'll get
  along.
reply = What happens if I break something? -> rules
reply = What's in the sealed section? -> sealed
reply = Goodbye. -> end

[node officer.rules]
text = You won't. The station's plating doesn't come off, and the company would bill you if it did.
back = root

[node officer.sealed]
text = An annex still being fitted out. Bare frames and crates. Nothing to see until the crews
  finish it.
back = root

[node doctor.root]
text if hurt = {npc}, station medbay. Sit down, you're bleeding on my floor.
text = {npc}, station medbay. You look healthy. Keep it that way.
reply if hurt = Patch me up. -> heal ! heal
reply if !hurt = Patch me up. -> heal
reply = Any advice for out there? -> advice
reply = Goodbye. -> end

[node doctor.heal]
text if hurt = Done. Rest a little before you fly.
text = Nothing to patch. Come back when you've done something reckless.
back = root

[node doctor.advice]
text = Watch your oxygen, eat when you can, and don't stand near anything that growls.
back = root

[node broker.root]
text if met = {player}. Looking for work?
text = Name's {npc}. I find work for people with ships. Interested?
reply if !has:station.ore = Got any work? -> ore
reply if active:station.ore = About the ore. -> ore_wait
reply if done:station.ore & !has:station.fauna = Anything else? -> fauna
reply if active:station.fauna = About the survey. -> fauna_wait
reply if done:station.fauna = Any more work? -> later
reply if done:chain.cantina.3 & !has:chain.supply.1 = That drink. You said you had better work. -> chain_supply
reply if active:job.survey = About the survey contract. -> job_survey
reply if active:job.prospect = About the prospecting. -> job_prospect
reply if active:job.bulk = About the ore order. -> job_bulk
reply if active:job.cull = About the cull. -> job_cull
reply if active:job.specimen = About the specimens. -> job_specimen
reply if active:job.wreck = About the wreck. -> job_wreck
reply if active:job.relay = About the relay. -> job_relay
reply if active:job.raiders = About the bounty. -> job_raiders
reply if active:job.derelict = About the derelict. -> job_derelict
reply if active:job.delivery = About the delivery. -> job_delivery
reply if active:job.supply = About the supplies. -> job_supply
reply if active:job.landmark = About the landmark. -> job_landmark
reply if active:job.trade_delivery = About the trading post's crate. -> job_trade_delivery
reply if active:job.farm_delivery = About the farm's fuel. -> job_farm_delivery
reply if active:job.pirates = About the pirate camp. -> job_pirates
reply if active:job.freighter = About the freighter. -> job_freighter
reply if active:job.sensor = About the sensor station. -> job_sensor
reply if active:job.rescue = About the escape pod. -> job_rescue
reply = Goodbye. -> end

[node broker.ore]
text = The shipwrights need iron ore. Bring me twelve and I'll pay you in plate.
reply = I'll get it. -> taken ! start_quest station.ore
reply = Not now. -> root

[node broker.ore_wait]
text = Twelve iron ore. Any world with rock has some. Hand it to me when you have it.
back = root

[node broker.fauna]
text = A buyer wants wildlife records. Scan three species, any world, and come back.
reply = I'll do it. -> taken ! start_quest station.fauna
reply = Not now. -> root

[node broker.fauna_wait]
text = Three species. Open your visor scanner and point it at whatever moves.
back = root

[node broker.taken]
text = Good. Come and find me when it's done.
back = root

[node broker.later]
text = That's all I have. The job board on the concourse always has more, and it pays in credits.
back = root

# The board's jobs: a word from the broker on each one a player has under way.

[node broker.job_survey]
text = The survey office pays for a world nobody's logged properly. Three species, two kinds of
  country, the map from orbit, then sell them the data. They'll take it for the contract even if
  they bought one off you before.
back = root

[node broker.job_prospect]
text = The syndicate wants a grade, not a guess. Get down to the cave they marked, analyse a vein
  of what they're after, then the cave mouth itself. Tell me what it reads.
back = root

[node broker.job_bulk]
text = Ore's ore to the shipwrights. Mine it anywhere, bring the lot to the dockmaster.
back = root

[node broker.job_cull]
text = They've been going for survey teams. Kill the number on the contract, on that world, then
  tell the dockmaster. The herds there will be thinner for it.
back = root

[node broker.job_specimen]
text = The collector wants that species and no other. Horns come off the bodies; eggs come out of
  their homes, and the parents won't thank you. Bring them to me.
back = root

[node broker.job_wreck]
text = The burnt consoles on its flight deck still hold good plate and glass. Break them out. The
  dockmaster wants to hear when it's done.
back = root

[node broker.job_relay]
text = Same fault as every relay out there: the transmitter console in the shed. Plates, glass and
  an advanced circuit, and a steady hand with the welder.
back = root

[node broker.job_raiders]
text = Fly out of that world's air and they'll find you. Disabled counts as destroyed. If the first
  pair isn't enough, there's always another.
back = root

[node broker.job_derelict]
text = Every one of them, mind. The dockmaster won't pay for half a job.
back = root

[node broker.job_delivery]
text = The crate goes in any container at the outpost. Don't open it.
back = root

[node broker.job_supply]
text = Cook it or make it, I don't care which, as long as it's fresh. Hand it to me.
back = root

[node broker.job_landmark]
text = The outpost only has a bearing. Fly over the world and look for the odd shape on the ground,
  then scan it up close.
back = root

[node broker.job_trade_delivery]
text = The post's trader takes goods off every ship that lands. Any container there will do.
back = root

[node broker.job_farm_delivery]
text = The farmer pumps water up for the fields. No fuel, no crop. Hand the canisters over in
  person.
back = root

[node broker.job_pirates]
text = There's a lookout on a tower, so they'll see you coming. Use the crates for cover. All of
  them, or the dockmaster won't pay.
back = root

[node broker.job_freighter]
text = The cargo pods along the keel burnt out in the landing. Break them out. The hold's full
  of crates nobody's claimed, so help yourself.
back = root

[node broker.job_sensor]
text = Plates, glass and a circuit, same as any weld. The readings come back the moment it's fixed.
back = root

[node broker.job_rescue]
text = The pod's beacon is still calling, so someone's alive. Talk them into coming with you, then
  bring them to the dockmaster.
back = root

# Barks (cities.md section 9): one line someone out walking says as they pass. Twelve snippets,
# bark.0 to bark.11; a passer-by says one of them, and the first text whose condition holds is
# theirs. "dark" holds while the city's power is out.

[snippet bark.0]
text if dark = Lights out again. Somebody's getting sacked.
text if sethra = Mind your ssstep.
text if tikkari = Excuse this one.
text if oruk = Move.
text if in:ascendancy = By your leave.
text = Morning. Or whatever it is.

[snippet bark.1]
text if dark = Can't see a thing. Watch the kerb.
text if sethra = Busssy today. Good for trade.
text if tikkari = The hive is loud today.
text if oruk = Too many of you.
text = Busy today.

[snippet bark.2]
text if dark = If the trams are stopped, I'm walking home.
text if sethra = The tram isss late. The tram isss alwaysss late.
text if tikkari = The tram keeps its time. We keep ours.
text if oruk = I walk. Trams are for the soft.
text = Did the tram go already?

[snippet bark.3]
text if sethra = Rentsss. Do not ssspeak to me of rentsss.
text if tikkari = There is room for all. There is always room.
text if oruk = This city stinks of commerce.
text if in:ascendancy = Another levy. For the house's glory, they say.
text if in:republic = Third form this week. For one licence.
text = Rent's up again.

[snippet bark.4]
text if sethra = A ship came in heavy thisss morning. Sssomeone isss rich.
text if tikkari = Many ships. The port counts them all.
text if oruk = More outsiders at the port.
text = Port's full. Good luck getting a pad.

[snippet bark.5]
text if dark = Stay near the wall. People get ideas in the dark.
text if sethra = You have the look of a ssspender. The market isss that way.
text if tikkari = You are new. Keep to the marked ways.
text if oruk = You're lost. I can smell it.
text = You look lost.

[snippet bark.6]
text if sethra = I know a man who knowsss a man.
text if tikkari = Work waits. It does not wait long.
text if oruk = Out of my way. I have work.
text = Late. Late, late, late.

[snippet bark.7]
text if sethra = The cantina watersss its ssspirits. Everyone knowsss.
text if tikkari = The resin sellers shout. It is not our way.
text if oruk = Meat here is cooked. Barbaric.
text = Don't eat at the terminal. Trust me.

[snippet bark.8]
text if dark = Security's jumpy tonight. Keep your hands where they can see them.
text if in:ascendancy = Eyes down near the forum. The guard is counting heads.
text if in:reaches = No law here but who's watching. Remember that.
text if sethra = Sssecurity isss out. Sssmile, and keep walking.
text if tikkari = The wardens walk today. Walk as they expect.
text if oruk = The guards are slow. I have seen it.
text = Security's about. Walk nice.

[snippet bark.9]
text if sethra = Fine weather for a deal.
text if tikkari = The air is good today.
text if oruk = Too bright.
text = Nice out, for once.

[snippet bark.10]
text if sethra = Sssomeone hasss been asking about the company tower. Not me.
text if tikkari = The tower's lights never rest. Nor do its people.
text if oruk = That tower. Glass. One good blow.
text = They never switch that tower off, do they.

[snippet bark.11]
text if dark = Whole city's dark. That's not a fuse.
text if sethra = Ssstay sssafe, ssstranger.
text if tikkari = Walk well.
text if oruk = Hm.
text = Take care.

[node traveller.root]
text if met = Still here? Me too.
text if sethra = Greetingsss. {npc}, of a modessst house. Passsing through, as everyone isss.
text if tikkari = I am {npc}. My hive sent me. I go where I am sent.
text if oruk = What.
text if human & in:reaches = Name's {npc}. Passing through, if my luck holds and my engines do.
text = Hi. I'm {npc}, just passing through {station}.
reply = Where are you headed? -> headed
reply = Anything worth seeing? -> seeing
reply = Goodbye. -> end

[node traveller.headed]
text = Out to the belts, if my ship gets fixed. The pads are full of people saying the same.
back = root

[node traveller.seeing]
text = Look up when you cross the concourse. The dome has a window right over the atrium.
back = root

# ---------------------------------------------------------------- A ship's crew (step 36)
#
# The people who fly and work a ship (design 9.2). {post} is their job ("gunner"), and job:KEY is a
# flag for it: pilot, gunner, engineer, medic, cook, hacker or hauler.

[node spacer.root]
text if job:pilot = Eyes on the board, please. I'm flying.
text if job:gunner = Can't talk long. I'm on the gun.
text if job:engineer = Mind the panels, they bite. I'm {npc}. I keep her running.
text if job:medic = Hurt? Sit down. Not hurt? Stand clear of my bay.
text if job:cook = Not mealtime yet. I'm {npc}, and this is my galley.
text if sethra = I am {npc}. I work thisss ship, and I work it well, for a fair ssshare.
text if tikkari = I am {npc}. This ship is my hive now. I work it.
text if oruk = {npc}. I work. You talk. One of us is useful.
text = I'm {npc}. I work this ship.
reply = What do you do aboard? -> job
reply = Goodbye. -> end

[node spacer.job]
text if job:pilot = I fly her. Course, speed, docking. Someone has to watch the board while the rest walk about.
text if job:gunner = I sit on a turret and keep the sky clear. Quiet days I clean the lenses.
text if job:engineer = Power, engines, shields. When something breaks I'm the one under it.
text if job:medic = Cuts, burns, the odd hole. Nobody gets better faster on this ship than in my bay.
text if job:cook = I feed the crew. A long run with an empty galley is how mutinies start.
text = Whatever needs doing. Hauling, mostly. Crates don't carry themselves.
back = root

# ---------------------------------------------------------------- Outlaws never talk

[node outlaw.root]
text = Wrong place to be.
reply = Goodbye. -> end

# ---------------------------------------------------------------- The fighter's log (the crash start)
#
# Opens when you sit in your wrecked fighter's cockpit. Besides the usual values: {breaches},
# {gear}, {wrecked}, {cannons}, {fuel} and {fuelNeed}, and flags hull_ok, gear_ok, clear, parts_ok,
# cannons_ok and fuel_ok. Only wrecks from before step 16 have hull breaches.

[node fighter_log.root]
text if done:tutorial.crash & !active:tutorial.survey = Log closed. Systems nominal. Survey filed.
text if hull_ok & gear_ok & parts_ok & fuel_ok = All systems answer. She will fly. Take her up past the air
  and the survey array does the rest.
text = Survey fighter log, emergency power. Hard landing on {planet}. Pilot alive. Beacon lit, no answer
  on any band. Orders stand: survey {planet}, then report to the {system} station.
reply = Damage report. -> damage
reply = What are my orders? -> orders
reply = What do I do first? -> first
reply = Close the log. -> end

[node fighter_log.damage]
text if hull_ok = Landing gear: {gear} of 3. Burnt-out parts: {wrecked}. Cannons: {cannons} of 2. Fuel: {fuel}
  of {fuelNeed} needed to reach orbit. {@damage_note}
text = Hull breaches: {breaches}. Landing gear: {gear} of 3. Burnt-out parts: {wrecked}. Fuel: {fuel} of
  {fuelNeed} needed to reach orbit. {@damage_note}
back = root

[node fighter_log.orders]
text = First survey of {planet}, a world nobody has set foot on. Log its wildlife, its land and its
  ore with your helmet's visor scanner. The ship's array maps the rest from orbit. Survey data pays at the
  station, and the station is past the gate.
back = root

[node fighter_log.first]
text = {@first_step}
back = root

[snippet damage_note]
text if !gear_ok & clear = She needs three working landing gear under her. Weld the crushed ones whole.
text if !gear_ok = The landing gear is crushed and buried, and the hull lies on the ground. Dig her free and
  weld each leg whole.
text if !hull_ok = Patch the holes with hull plate.
text if !parts_ok = Weld the burnt parts back, or break them out for what they hold.
text if !fuel_ok = Feed fuel canisters into the intake: iron plate and crystal make them.
text if !cannons_ok = She will fly with a burnt cannon, but weld it before you meet anyone in orbit.
text = Nothing else is wrong with her.

[snippet first_step]
text if !hasPickaxe = Salvage what can't be saved: break out a burnt part with your hands. Then make
  a stone pickaxe from the field menu in the inventory.
text = Dig the buried landing gear out from under her first, then weld each leg whole.

# ---------------------------------------------------------------- Story chains
#
# The people who start the station's four chains (quests.txt, chain.*), and the lost surveyor.

[node shopkeeper.chain_surveyor]
text = My colleague flew a survey two days ago and went quiet. The beacon cut out, the office says
  wait. I don't want to wait. Will you look? I'll mark where the signal was.
reply = I'll find them. -> chain_taken ! start_chain surveyor
reply = Not now. -> root

[node shopkeeper.chain_cantina]
text = New faces want a bunk, a proper meal and a friend or two. I can help with all three. Start
  with a bunk: passes are at my counter.
reply = Sounds good. -> chain_taken ! start_chain cantina
reply = Maybe later. -> root

[node shopkeeper.chain_taken]
text = Thank you. Come and find me when you have news.
back = root

[node dockmaster.chain_raiders]
text = They've been jumping ships leaving the air for weeks. Beat a pair of them in orbit and bring
  me something off their wrecks that says where they come from. I'll make it worth your while.
reply = I'll do it. -> chain_taken ! start_chain raiders
reply = Not now. -> root

[node dockmaster.chain_raiders_hideout]
text = That nav chip says it all. Clear them out of that outpost and they'll go quiet for a while.
back = root

[node dockmaster.chain_taken]
text = Good hunting. Keep your shields up.
back = root

[node broker.chain_supply]
text = A research outpost I deal with is in trouble: no food coming in, and its power went in a
  storm. It needs rations, then light, then its survey work done. It pays well, and the company
  will remember you.
reply = Count me in. -> taken ! start_chain supply
reply = Not now. -> root

[node stranded.root]
text if active:chain.surveyor.4 = You came. I'd stopped believing anyone would. The air's nearly gone.
  Tell the office I'm alive, and I'll walk out on what's left in my tank.
text = ...
reply = Hang on. I'll tell them. -> end
