Debian Codegraph @

data/storyline/act1/dialogs/Chandra.lua

raw
1 ---------------------------------------------------------------------
2 -- This file is part of Freedroid
3 --
4 -- Freedroid is free software; you can redistribute it and/or modify
5 -- it under the terms of the GNU General Public License as published by
6 -- the Free Software Foundation; either version 2 of the License, or
7 -- (at your option) any later version.
8 --
9 -- Freedroid is distributed in the hope that it will be useful,
10 -- but WITHOUT ANY WARRANTY; without even the implied warranty of
11 -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 -- GNU General Public License for more details.
13 --
14 -- You should have received a copy of the GNU General Public License
15 -- along with Freedroid; see the file COPYING. If not, write to the
16 -- Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
17 -- MA 02111-1307 USA
18 ----------------------------------------------------------------------
19 --[[WIKI
20 PERSONALITY = { "Sagely", "Absent-Minded" },
21 MARKERS = { NPCID1 = "Francis" },
22 PURPOSE = "$$NAME$$ gives more explanation of what is going on in the world, particularly about the Linarian race and the
23 town. Chandra raises several questions regarding the story.",
24 RELATIONSHIP = {
25 {
26 actor = "$$NPCID1$$",
27 text = "$$NPCID1$$ and $$NAME$$ know each other. $$NPCID1$$ sent Tux to talk with $$NAME$$ about Linarians."
28 },
29 }
30 WIKI]]--
31
32 local Npc = FDrpg.get_npc()
33 local Tux = FDrpg.get_tux()
34
35 return {
36 FirstTime = function()
37 Npc:says(_"So the rumors are true - a real live Linarian walks among us!")
38 Chandra_bot_information_nodes = 0
39 show("node0")
40 end,
41
42 EveryTime = function()
43 if (not Tux:has_met("Chandra")) then
44 Npc:says(_"Good to see you again. How can I help you?")
45 end
46
47 if (Chandra_node10_show) and
48 (not tux_has_joined_guard) then
49 show("node10")
50 end
51
52 if (Chandra_node16_show) then
53 show("node16")
54 end
55
56 if (Chandra_bot_information_nodes > 1) then
57 show("node17")
58 end
59
60 show("node99")
61 end,
62
63 {
64 id = "node0",
65 text = _"Hi! I'm new here.",
66 code = function()
67 Npc:says(_"Welcome. I am Chandra. Some would call me the local sage.")
68 if (linarian_chandra) and
69 (not Chandra_first_contact) then
70 show("node15")
71 end
72 hide("node0") show("node1", "node2", "node9")
73 end,
74 },
75 {
76 id = "node1",
77 text = _"What can you tell me about this place?",
78 code = function()
79 Npc:says(_"This small town used to be a somewhat successful mining community, exporting rare earth materials and other resources to the rest of the solar system.")
80 Npc:says(_"The mines have depleted recently, however. The town was under a threat of bankruptcy. Living here became harder and many left to seek new opportunities elsewhere.")
81 Npc:says(_"But now after the Great Assault, the rest of the planet gets bombarded by automated bot ships every now and then, so being here isn't so bad at all.")
82 Npc:says(_"Even with the Red Guard in charge.")
83 hide("node1") show("node5", "node10", "node14", "node30")
84 end,
85 },
86 {
87 id = "node2",
88 text = _"Where can I get better equipment?",
89 code = function()
90 Npc:says(_"The shop is to the north, near the gate. Ms. Stone always has a good range of equipment there, with fair prices too.")
91 Npc:says(_"Not that you have much choice.")
92 Npc:says(_"Of course, the Red Guard always has the biggest guns and the best armor, but they do not sell them to non-members.")
93 hide("node2")
94 end,
95 },
96 {
97 id = "node3",
98 text = _"So what's so strange about the attack?",
99 code = function()
100 if (not HF_FirmwareUpdateServer_uploaded_faulty_firmware_update) then
101 Npc:says(_"According to my calculations based on the Fermi estimate, there are about seven million bots active in the region, everything from cleaner bots and servant droids to much more dangerous ones.")
102 Npc:says(_"I think you will agree with me that the following statement is true: If bots, then death to everything alive.")
103 Npc:says(_"Now, I make the assumption that you and I are alive.")
104 Npc:says(_"But, if we are not dead, and if bots are killing everything alive...")
105 else
106 Npc:says(_"According to my calculations based on the Fermi estimate, there used to be about seven million bots active in the region, everything from cleaner bots and servant droids to much more dangerous ones.")
107 Npc:says(_"I think you will agree with me that the following statement is true: If bots, then death to everything alive.")
108 Npc:says(_"Now, I make the assumption that you and I are alive.")
109 Npc:says(_"But, if we are not dead, and if bots were killing everything alive even before you were awaken...")
110 end
111 Npc:says(_"... THEN WE HAVE A CONTRADICTION!")
112 Tux:says(_"Calm down. There must be some logic behind this.")
113 Npc:says(_"There can be none!")
114 Npc:says(_"They could just enter the town and massacre everyone...")
115 Npc:says(_"But they do not even seem to try!")
116 Npc:says(_"This makes no sense at all!")
117 hide("node3")
118 end,
119 },
120 {
121 id = "node4",
122 text = _"Could you explain me about bot respawn?",
123 code = function()
124 Npc:says(_"Respawn? Interesting choice of words. Bots doesn't actually \"respawn\", not literally, but the ships in orbit periodically checks some areas at random and makes a special request so the factory can replace the dead bots.")
125 Npc:says(_"I believe that during the check, they also reboot the droids. Therefore I guess that even if you hack a bot, it'll be only a temporary companion.")
126 Npc:says(_"There might be areas where their signals doesn't reach, but it's just too rare to even consider it.")
127 Npc:says(_"I am not a hacker. A real hacker should understand this better than I.")
128 hide("node4")
129 end,
130 },
131 {
132 id = "node5",
133 text = _"What do you know about the hostile bots?",
134 code = function()
135 Npc:says(_"The phenomenon of hostile bots has occupied my mind for quite some time. There are some strange irrationalities in this behavior, that I cannot explain.")
136 Npc:says(_"This encompasses not only the suddenness of the attack, but also the methods and the scale of it all.")
137 hide("node5") show("node3", "node4", "node6", "node7")
138 end,
139 },
140 {
141 id = "node6",
142 text = _"What types of bots are out there?",
143 code = function()
144 Npc:says(_"There are many. Each kind of bot has a number consisting of three digits. The first one is the most significant, the class of a bot.")
145 Npc:says(_"I know a bit about three classes.")
146 Npc:says(_"The 100s are cleaning bots of old. Therefore, they are quite common. Fortunately for us they aren't as good at killing things as they are at cleaning up the mess afterwards.")
147 Npc:says(_"The 200s are servant bots, designed to come quickly when summoned and be able to lift heavy weights. That makes them more dangerous under most circumstances, so beware of being attacked by more than one at the same time.")
148 Npc:says(_"Right now, an encounter with a 300 type bot equals death, so try to avoid it. They were messenger bots before the Great Assault, which means they have superb visual sensors, and some are very fast.")
149 Npc:says(_"There are many more classes out there. The military used bots, of course, and they were used on ships, but I know almost nothing about those types.")
150 Chandra_bot_information_nodes = 5
151 hide("node6") show("node11", "node12", "node13", "node18", "node19")
152 push_topic("Bot Information")
153 end,
154 },
155 {
156 id = "node7",
157 text = _"I want to leave this place.",
158 code = function()
159 Npc:says(_"We all do, Linarian, we all do.")
160 Npc:says(_"The act in question is made impossible by the quasi-infinite bots outside of the town walls.")
161 Npc:says(_"You cannot live for long out there.")
162 hide("node7") show("node8")
163 end,
164 },
165 {
166 id = "node8",
167 text = _"No, I meant I would like to leave this world.",
168 code = function()
169 Npc:says(_"Simple. Walk outside the town walls, and the bots will send you to the other world within a few minutes.")
170 Npc:says(_"Unless you mean leave the planet, in which case that is impossible.")
171 Npc:says(_"Most likely all of our cosmodromes have been destroyed in the bot attacks.")
172 hide("node8")
173 end,
174 },
175 {
176 id = "node9",
177 text = _"I'm having difficulty overcoming the bots. What can I do?",
178 code = function()
179 Npc:says(_"There are many things you can do. The first is to fight more bots.")
180 Tux:says(_"Erm... Wouldn't that cause me to be beaten up more, and therefore be counter-productive?")
181 Npc:says(_"Your logic is infallible, Linarian, but you are forgetting one thing: the more you fight, the more experienced you become, and the better you become at surviving.")
182 Npc:says(_"Also, if you have the money and can find a supplier, it is wise to invest in better equipment - more protective clothing and better weaponry.")
183 Npc:says(_"My advice is to invest in a ranged weapon. While it can create a huge hole in your wallet, it also creates several in the bots, and is better than a huge hole in you.")
184 Npc:says(_"Currently there is a ban on selling such things. The Red Guard wants to be the only ones with good weapons.")
185 Npc:says(_"Should you fail to find something decent to shoot or swing with, there are always other options.")
186 Npc:says(_"Ewald, the barkeeper, usually sells an assortment of junk, but even he sometimes has something worthwhile on display.")
187 Npc:says(_"There was a person selling grenades, too. Eh... I forgot his name, my memory is not serving me very well today. He's a very mysterious fellow. Perhaps he can help you.")
188 Npc:says(_"Other than that, you are on your own.")
189 hide("node9")
190 end,
191 },
192 {
193 id = "node10",
194 text = _"Do you think I could join the guardians of this town?",
195 code = function()
196 if (guard_follow_tux) then
197 Npc:says(_"The Red Guard...? Only if you're as strong and courageous as they are! There is no one better than the Red Guard! Nothing but top quality men there!")
198 else
199 Npc:says(_"The Red Guard? Unlikely. You'd have to establish a reputation beforehand, and demonstrate that you can make things happen.")
200 Npc:says(_"Also, the Red Guard is not a very popular organization, so if you do join them then you can expect to be hated by nearly everyone here.")
201 Npc:says(_"As the ancients said, 'Boni pastoris est tondere pecus, non deglubere'. A good tax must be a reasonable tax.")
202 end
203 hide("node10")
204 Chandra_node10_show = true
205 end,
206 },
207 {
208 id = "node11",
209 text = _"What bots are in the 100 class?",
210 topic = "Bot Information",
211 code = function()
212 Npc:says(_"I know of two types, the 123 and the 139. The former is a simple cleaning bot, and is fairly weak. The latter is a mobile trash compactor. Don't let your flippers get caught in one of those.")
213 Tux:says(_"I've seen some of those on my way here. They were... Shooting at me.")
214 Npc:says(_"Many strange things have happened since the Great Assault.")
215 Npc:says(_"Anyway, because the class 100 bots are neither fast nor dangerous, the Red Guard often uses them for target practice.")
216 Npc:says(_"If I were you, I would not underestimate them.")
217 Npc:says(_"Nec Hercules contra plures.")
218 Chandra_bot_information_nodes = Chandra_bot_information_nodes - 1
219 hide("node11")
220 end,
221 },
222 {
223 id = "node12",
224 text = _"What bots are in the 200 class?",
225 topic = "Bot Information",
226 code = function()
227 Npc:says(_"In fitting with the lazy nature of humans, there are several servant bots of the 200 class.")
228 Npc:says(_"The 247 is often called the 'Banshee'. Being a simple servant robot, it isn't very well equipped to kill, although its arms are quite strong.")
229 Npc:says(_"Also, as I said, the 200s were built to report quickly. The 247 is no exception, and moves faster than some of us can run. As a killer bot, it has a fast rate of attack. It is not something to be trifled with.")
230 Npc:says(_"The 249 is a cheaper version of the Banshee. It uses a tripedal drive instead of anti-gravity propulsion, and is therefore slower. However, it is much more dangerous: its machine gun has a very high rate of fire.")
231 Tux:says(_"Machine gun?! But... But it's a servant bot!")
232 --; TRANSLATORS: %s =Tux:get_player_name()
233 Npc:says(_"I know, %s. I know.", Tux:get_player_name())
234 Npc:says(_"Let's see... Oh, there is also the 296, which was used for serving drinks. Ewald once had one of those in his bar.")
235 Tux:says(_"Once? What happened to it?")
236 Npc:says(_"No one knows. One day it simply wasn't there. Ewald probably remembers more than I do, though.")
237 Chandra_bot_information_nodes = Chandra_bot_information_nodes - 1
238 hide("node12")
239 end,
240 },
241 {
242 id = "node13",
243 text = _"What other bots are out there?",
244 topic = "Bot Information",
245 code = function()
246 Npc:says(_"Though I do not know the details, I assure you there are many. Robots and automated machinery served almost every purpose you can imagine, and probably some that you can't.")
247 Npc:says(_"They were used by the military, aboard ships, as security droids and more. Right now, however, most of the people who knew them up close are pushing up daisies.")
248 Chandra_bot_information_nodes = Chandra_bot_information_nodes - 1
249 hide("node13")
250 end,
251 },
252 {
253 id = "node14",
254 text = _"Where in the void is this world?",
255 code = function()
256 Npc:says(_"I guess you mean in the universe?")
257 Tux:says(_"Yes, I think that is your name for it.")
258 Npc:says(_"Well, we are in a barred spiral galaxy, twenty-six thousand light years away from the galactic core.")
259 Npc:says(_"The galactic radius is 43,000 light years and the circumference is estimated at 270,000 light years.")
260 Npc:says(_"This is a planetary system of ten planets, and we are presently located on the third one from our star, Sol.")
261 Npc:says(_"I am not an astronomer, so I could be wrong. I am too tired to keep track of what is a planet and what is just an oversized rock.")
262 Tux:says(_"This could be just about anywhere. Your description is too ambiguous.")
263 Npc:says(_"Sorry, star sciences are my weak point.")
264 Tux:says(_"...Right.")
265 hide("node14")
266 end,
267 },
268 {
269 id = "node15",
270 text = _"Chandra? Francis in the cryonic facility mentioned your name.",
271 code = function()
272 Npc:says(_"Oh did he? What exactly did he say about me?")
273 Tux:says(_"He said you might know more about who I am, about Linarians.")
274 Npc:says(_"Hmmm... I'm not so sure about 'who', but he is quite right about my knowledge of Linarians... quite right indeed. What would you like to know, my friend?")
275 if (Chandra_revenge) then
276 end_dialog()
277 end
278 Chandra_node16_show = true
279 hide("node15") show("node20", "node25", "node26", "node29")
280 push_topic("Linarians")
281 end,
282 },
283 {
284 id = "node16",
285 text = _"I wanted to ask you some questions about Linarians.",
286 code = function()
287 Npc:says(_"Yes?")
288 if (Chandra_revenge) then
289 end_dialog()
290 end
291 hide("node16") show("node20")
292 push_topic("Linarians")
293 end,
294 },
295 {
296 id = "node17",
297 text = _"I wanted to ask you some questions about droids.",
298 code = function()
299 Npc:says(_"Yes?")
300 hide("node17")
301 push_topic("Bot Information")
302 end,
303 },
304 {
305 id = "node18",
306 text = _"You mentioned droids from the 300s class had superb visual sensors...",
307 topic = "Bot Information",
308 code = function()
309 Tux:says(_"What exactly are those sensors?")
310 Npc:says(_"A sensor is how a bot perceives the world. It would be wrong to assume that all bots sees the world in exactly the same way.", "NO_WAIT")
311 Npc:says(_"While almost all bots have visual sensors, and some better than others, some more advanced droids have different sensors to avoid being tricked by the enemy.")
312 Npc:says(_"For example, some battle droid might have an [b]X-Ray[/b] sensor to see though the walls, and a command droid might even have an [b]Infrared[/b] sensor to see heatwaves and detect a living being pretending to be dead or invisible.")
313 Npc:says(_"Thankfully only very dangerous bots uses different sensors, so you don't need to worry with them right now. Although I also overheard something interesting once. I'll share this little secret with you...")
314 Npc:says(_"They say that the Red Guard changed some droids sensors in one of the arenas. They can't even go down there right now, is what is said. But you can't trust in all rumors you hear, am I not right?")
315 Chandra_bot_information_nodes = Chandra_bot_information_nodes - 1
316 hide("node18")
317 end,
318 },
319 {
320 id = "node19",
321 text = _"That's all I wanted to know about droids.",
322 topic = "Bot Information",
323 code = function()
324 Npc:says(_"Did you have any other questions?")
325 pop_topic()
326 end,
327 },
328 {
329 id = "node20",
330 text = _"What is a Linarian?",
331 topic = "Linarians",
332 code = function()
333 if (not Chandra_first_contact) then
334 Npc:says(_"Ah yes, I heard that your memory had been affected by stasis. I will share with you what I know.")
335 Npc:says(_"Linarians came to this planet about a century ago. While their specialties can vary, they are most widely known for their nearly-magical skills with computers.")
336
337 if (not guard_follow_tux) then
338 Npc:says(_"[b](Chandra quickly glances around. After verifying that no one else seems to be paying attention to your conversation, he takes a quick breath and continues quietly.)[/b]")
339 Npc:says(_"Since you are asking this question and you have even come into our town, I am assuming that your memory has been completely damaged.")
340 Npc:says(_"What I am about to tell you is not easy to say, nor will it be easy to hear. For that I apologize, but you must know the truth.")
341 Npc:says(_"[b](He pauses for a breath.)[/b]")
342 Npc:says(_"When your people first arrived, there was a miscommunication that resulted in the leaders of Earth acting aggressively. Unfortunately, most of your people did not survive...")
343 Npc:says(_"For that my friend, I am deeply sorry.")
344 Npc:says(_"[b](He hangs his head slightly and you feel he is sincere in his remorse.)[/b]")
345 show("node21", "node22")
346 push_topic("Linarians Attacked")
347 else
348 Npc:says(_"[b](Chandra moves his head ever so slightly as he quickly glances around. After noticing the nearby presence of the Red Guard member, his posture and tone changes. Perhaps you should speak with him again once you lose your escort...)[/b]")
349 Npc:says(_"What else would you like to know?")
350 end
351 else
352 Npc:says(_"Linarians came to this planet about a century ago. While their specialties can vary, they are most widely known for their nearly-magical skills with computers.")
353 Npc:says(_"I'd rather not repeat what I said earlier. It pains me to think of it...")
354 end
355 hide("node20")
356 end,
357 },
358 {
359 id = "node21",
360 text = _"(Calmly accept this information)",
361 echo_text = false,
362 topic = "Linarians Attacked",
363 code = function()
364 Tux:says(_"What happened to the other Linarians that survived first contact?")
365 Npc:says(_"Sadly, I do not know. All that remains are legends. For a time, Linarians wandered the planet performing grand deeds and earning the respect of most of humanity.")
366 Npc:says(_"But as time passed, so did the memories of the great deeds. It is unlikely that you will find many who know more about your people's noble past.")
367 Npc:says(_"Perhaps there are still other Linarians alive here on our planet. Or maybe some went back to your own planet.")
368 Chandra_first_contact = true
369 hide("node20")
370 pop_topic()
371 end,
372 },
373 {
374 id = "node22",
375 text = _"(Respond angrily)",
376 echo_text = false,
377 topic = "Linarians Attacked",
378 code = function()
379 Tux:says(_"Your people slaughtered us?!")
380 Npc:says(_"Yes, this is the truth and it is something most humans regret. It is this regret that has helped erase the Linarians from our history.")
381 Npc:says(_"Humanity does not have a pretty history. We have done many horrible things to each other as well. There are many things we regret so deeply that we wish we could forget.")
382 Npc:says(_"Over time, most people have willingly forgotten our actions and focused on the good deeds the Linarians performed despite our senseless behavior.")
383 Npc:says(_"Even though we tried to celebrate the grand deeds and heroics of the surviving Linarians, the memories faded. The memories turned into legends and myths as the Linarians slowly withdrew from the world.")
384 Npc:says(_"Perhaps there are still other Linarians alive here on our planet. Or maybe some went back to your own planet.")
385 Npc:says(_"Spencer and the Red Guard would not want you to know these things, as you might not be willing to help our failing community.")
386 Npc:says(_"However, to not share this information with you is another transgression that I cannot be a part of. Please %s, we need your help!", Tux:get_player_name())
387 hide("node21", "node22") show("node23", "node24")
388 end,
389 },
390 {
391 id = "node23",
392 text = _"Chandra, it saddens me to hear this. I will keep what you say in mind, but there is too much suffering for me to ignore.",
393 topic = "Linarians Attacked",
394 code = function()
395 Npc:says(_"Oh! This is great news! I was fearful that the truth would not settle well.")
396 Npc:says(_"I should have never doubted the nobility and legendary honor of Linarians.")
397 Chandra_first_contact = true
398 hide("node20")
399 pop_topic()
400 end,
401 },
402 {
403 id = "node24",
404 text = _"(Attack)",
405 echo_text = false,
406 topic = "Linarians Attacked",
407 code = function()
408 Tux:says(_"Stupid humans! How dare you?! Your crimes are unforgivable! You all deserve to be slaughtered by these robots!")
409 Npc:says(_"But...")
410 Tux:says(_"And I am more than happy to help them!")
411 Npc:set_faction("crazy")
412 Chandra_revenge = true
413 end_dialog()
414 end,
415 },
416 {
417 id = "node25",
418 text = _"How come no one seems freaked out by a big fracking penguin?",
419 topic = "Linarians",
420 code = function()
421 Npc:says(_"[b]<chuckles>[/b] This is not the first time the people of Earth have seen one of your kind.")
422 Npc:says(_"Of course, its been almost one hundred years since Linarians first came to this planet. As you might imagine most of the people who were alive then are long gone.")
423 Npc:says(_"But the townspeople were made aware of your existence upon your discovery. Everyone was quickly informed of the legends performed by the Linarians of the past.")
424 Npc:says(_"While you will find some people helpful because of this, others may be a bit more hostile. The hostility is a matter of xenophobia and pride in one's own species.")
425 if (not guard_follow_tux) then
426 Npc:says(_"Don't tell anyone else, but I'm surprised the Red Guard ordered you to be thawed. They are human supremacists to the extreme. For them to accept your help does not make much sense. They must be playing at something. Beware the Red Guard, Linarian.")
427 end
428 hide("node25")
429 end,
430 },
431 {
432 id = "node26",
433 text = _"Why did the Linarians come to this world?",
434 topic = "Linarians",
435 code = function()
436 Npc:says(_"The planet you mean? No one knows that. None of you ever said anything about it.")
437 Npc:says(_"Sorry, I cannot help you with that.")
438 hide("node26")
439 end,
440 },
441 {
442 id = "node29",
443 text = _"That's all I wanted to ask about that.",
444 topic = "Linarians",
445 code = function()
446 Npc:says(_"Did you have any other questions?")
447 pop_topic()
448 end,
449 },
450 {
451 id = "node30",
452 text = _"Where is everybody? Don't tell me only a dozen of people survived!",
453 code = function()
454 Npc:says(_"No, no. The casualties here were much smaller than everywhere else.")
455 Npc:says(_"Most of citizens are currently at the mines. They are doing everything they can to keep the town running.")
456 Npc:says(_"Children, elderly and others who cannot work are upstairs. They are too afraid to come down.")
457 Npc:says(_"The ones who you will find here are Red Guards, shopkeepers, medics, programmers, librarians, etc.")
458 Npc:says(_"So do not worry. Things may be dire, but we weren't wiped off. Yet.")
459 hide("node30")
460 end,
461 },
462 {
463 id = "node99",
464 text = _"Thank you for your wise words.",
465 code = function()
466 Npc:says_random(_"Feel free to come here any time you want.",
467 _"You flatter me.")
468 end_dialog()
469 end,
470 },
471 }