Debian Codegraph @

data/storyline/act1/dialogs/Dixon.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 = { "Technical", "Distracted", "Friendly", "Pacifist" },
21 MARKERS = { NPCID1 = "Singularity", ITEMID1 = "Dixon\'s Toolbox" },
22 PURPOSE = "$$NAME$$ can give the player access to the maintenance tunnels below the town as well as information about how Tux
23 can manufacture equipment add-ons.",
24 BACKSTORY = "$$NAME$$ is an engineer for the Read Guard and provides maintenance for the town and its defences. $$NAME$$ was
25 badly wounded in a droid attack.",
26 RELATIONSHIP = {
27 {
28 actor = "$$NPCID1$$",
29 text = "$$NAME$$ met $$NPCID1$$ in the maintenance tunnels just before the start of The Great Assult. $$NPCID1$$ took
30 $$ITEMID1$$ from him for its own survival."
31 },
32 }
33 WIKI]]--
34
35 local Npc = FDrpg.get_npc()
36 -- Global variables:
37 -- intern
38 -- Dixon_mood indicates Dixon's mood against Tux:
39 -- -100 Dixon is overjoyed
40 -- 0 Dixon is in a friendly mood
41 -- 30 Dixon is a little bit displeased
42 -- 60 Dixon is somewhat angry
43 -- 120 Dixon is fairly angry and refuses to talk to Tux
44 -- 180 Dixon is very angry with Tux, he will kill him at sight
45 -- Dixon_Singularity_war Tux is going to get the toolkit by force
46 -- Dixon_Singularity_peace Tux is going to get the toolkit by diplomacy
47 -- [none of the two above] Tux just walks into the tunnels without a special attitude
48 -- Dixon_no_ambassador Tux turned down Dixon's request to negotiate with the Singularity
49 -- Dixon_everything_alright whether Tux has already asked once if everything is alright
50 -- Dixon_296_book_examine_library Tux got the hint to look in the library for the book
51 -- extern
52 -- Singularity_deal given by Singularity (Tux got the toolbox by a deal with the Singularity)
53 -- Engel_offered_extraction_skill given by Engel
54 -- Ewalds_296_needs_sourcebook given by Ewalds_296 (Tux knows that the 296 needs the book)
55 -- Tamara_have_296_book given by Tamara (Tux has got the book about nuclear sciences)
56 -- MiniFactory_init_failed given by MiniFactory (Tux has tried (unsuccessfully) to start the MiniFactory)
57 -- Lvl6_elbow_grease_applied given by events.dat (the MiniFactory is running)
58
59 local Tux = FDrpg.get_tux()
60
61 return {
62 FirstTime = function()
63 Maintenance_Terminal_accessgate_nope = "somevalue"
64 Dixon_mood = 0
65 Npc:set_name("Dixon - Mechanic")
66 Tux:says(_"Hi! I'm new here.")
67 Npc:says(_"Hello and welcome. I'm Dixon, the chief engineer of the Red Guard technical division.")
68 --; TRANSLATORS: %s = Tux:get_player_name()
69 Tux:says(_"I'm %s, a Linarian.", Tux:get_player_name())
70 show("node1", "node4", "node72")
71 end,
72
73 EveryTime = function()
74 if (HF_FirmwareUpdateServer_uploaded_faulty_firmware_update) then
75 Npc:says(_"Please don't bother me now. I am trying to account all damage this town suffered so I can finally go on vacations.")
76 Npc:says(_"I want to see Temple Wood again so much! Ah, and the shoreline. Omega island! Please, unless you're going to help me with paperwork, leave.")
77 end_dialog()
78 end
79 if (Dixon_mood < 50) then
80 Npc:says(_"Please take care not to disturb my work, I'm very busy keeping things running.")
81 elseif (Dixon_mood < 180) then -- Dixon is angry
82 Npc:says(_"Linarian, please leave. You are no longer welcome here. You have done me wrong, and I have no desire to talk to you.")
83 else -- Dixon is furious
84 Npc:says(_"YOU AGAIN!")
85 Npc:says(_"I.", "NO_WAIT")
86 Npc:says(_"SAID.", "NO_WAIT")
87 Npc:says(_"GET.", "NO_WAIT")
88 Npc:says(_"LOST.")
89 Npc:says(_"FORGET MY LIFELONG PACIFISM. I WILL KILL YOU!")
90 Npc:says(_"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA!")
91 npc_faction("crazy", _"Dixon - Temporarily insane")
92 end_dialog()
93 end
94
95 if (Tux:done_quest("The yellow toolkit")) and (not Dixon_hide_node_56) then
96 -- effects of the toolkit-quest
97 if (Dixon_no_ambassador) then -- Tux does not get the toolkit
98 if (Dixon_everything_alright) then
99 show("node56")
100 else
101 show("node55")
102 end
103 elseif (Singularity_deal) then -- Tux obtained the toolkit peacefully
104 show("node51")
105 else -- Tux got the toolkit by force
106 show("node53")
107 end
108 elseif (Tux:has_item_backpack("Dixon's Toolbox")) then -- Giving Dixon the toolkit
109 if (Singularity_deal) then
110 show("node31", "node33")
111 else
112 show("node32", "node33")
113 end
114 end
115
116 if (Lvl6_elbow_grease_applied) then
117 hide("node60")
118 elseif (MiniFactory_init_failed) then
119 show("node60")
120 end
121
122 if (Tamara_have_296_book) then
123 hide("node70")
124 elseif (not Dixon_296_book_examine_library) and
125 (Ewalds_296_needs_sourcebook) then
126 show("node70")
127 end
128
129 if (Maintenance_Terminal_accessgate_nope == "true") then
130 show("node80")
131 end
132
133 show("node99")
134 end,
135
136 {
137 id = "node1",
138 text = _"Why are you wearing armor? Mechanics do not need it.",
139 code = function()
140 Npc:says(_"Ah... Yes. At first I thought that I did not need it either.", "NO_WAIT")
141 Npc:says(_"One day the military division asked us to leave the town and fix a big hole in the defensive wall caused by a strange explosion.")
142 Npc:says(_"All was well until the bots launched a massive attack. They hit us with lasers, plasma mortars, radiation cannons and lots of other weapons.")
143 Npc:says(_"I got hit once in the leg and once in my left hand.", "NO_WAIT")
144 Npc:says(_"The hand was not damaged very much, but the leg is a very different story. Doc Moore did all he could, but in the end he could not save my leg. He had to cut it off.")
145 Npc:says(_"Now, while you cannot see it underneath the armor, my right leg runs NetBSD.", "NO_WAIT")
146 Npc:says(_"Now I never leave home without my protective suit. Mostly for protection, but also for aesthetic reasons. I am sure you understand.")
147 hide("node1") show("node2")
148 end,
149 },
150 {
151 id = "node2",
152 text = _"You are very calm, talking about your leg and the bot attack.",
153 code = function()
154 Npc:says(_"Linarian, I cannot change the past, I can only change the future.", "NO_WAIT")
155 Npc:says(_"Crying, screaming, or begging time to rewind itself and give me a second chance will not get me anywhere.")
156 Npc:says(_"What I can do is to try to have a good life despite the constant threat from the bots outside the town walls.")
157 Npc:says(_"And besides, life is not so bad with a robotic leg. The motors inside it can mimic a normal walk very well. Most people do not even notice something is different about me.")
158 hide("node2")
159 end,
160 },
161 {
162 id = "node4",
163 text = _"Technical division?",
164 code = function()
165 Npc:says(_"Yes. We are the engineers, the workers and the repairmen of this little fortified town.", "NO_WAIT")
166 Npc:says(_"The military division hates us because we are made up of people who refuse to fight or are unable to do so for health reasons.")
167 Npc:says(_"But even they know that without us this town would have been destroyed months ago.")
168 Npc:says(_"We deliver resources to the places which need them, build and repair the walls, fix damaged guns, manage construction work, and lots of other small things which keep the bots from killing everyone.")
169 hide("node4") show("node6", "node8")
170 end,
171 },
172 {
173 id = "node6",
174 text = _"Can you repair my equipment?",
175 code = function()
176 Npc:says(_"While I am quite sure I can repair just about anything that you would want fixed, I cannot help you right now.", "NO_WAIT")
177 Npc:says(_"Our security wall is full of holes, and they need to be plugged up.")
178 Npc:says(_"We need to perform a statistical analysis of the energy distribution in our power supply system, there is a leak somewhere and we are losing many megawatts.")
179 Npc:says(_"Our defensive bots are falling into disrepair and many are in desperate need of maintenance.")
180 Npc:says(_"The technical division is very understaffed right now. On average one person has to do the jobs of three people.", "NO_WAIT")
181 Npc:says(_"We just cannot afford to do any non-critical jobs right now. ")
182 if (not Tux:has_quest("The yellow toolkit")) then
183 show("node10")
184 end
185 hide("node6")
186 end,
187 },
188 {
189 id = "node8",
190 text = _"I would like to customize my equipment.",
191 code = function()
192 Npc:says(_"Of course, if I had some time, I could transform your weapon into a deadly gun. Lately, I have built a vorpal nuclear disintegrator Mk 2000 with integrated lethal de-phasor. Nice weapon.")
193 Npc:says(_"Sadly, we lack a lot of materials, and those we have are needed for town upkeep. The mine doesn't produce a lot of raw materials, and I can't just give them to you - you'll have to provide your own.")
194 Npc:says(_"I can give you some advice, though. Recycling is key. You can extract special devices from the bots!")
195 Npc:says(_"Amazing, isn't it? Before the Great Assault, we threw droids out for minor defects. Now, any wreck is a treasure.")
196 if (not Engel_offered_extraction_skill) then
197 Npc:says(_"A scout troop recently spotted two guys in the north of town.")
198 Npc:says(_"I was told these guys shoot bots and disassemble them, extracting their parts.", "NO_WAIT")
199 Npc:says(_"Maybe they will sell you parts.")
200 end
201 Npc:says(_"The salvaged components are used to craft addons. Your equipment has specific sockets to insert them.", "NO_WAIT")
202 Npc:says(_"They can increase the power of items. But items can only have a limited number of addons.")
203 Npc:says(_"To produce and assemble them, you may use a small factory in the Maintenance Tunnels.")
204 if (not Tux:has_quest("The yellow toolkit")) then
205 Npc:says(_"Currently, the maintenance tunnels are not accessible. We have many problems with bots. You can't go there, access has been limited.")
206 show("node10")
207 end
208 hide("node8")
209 end,
210 },
211 {
212 id = "node10",
213 text = _"Can I help you somehow?",
214 code = function()
215 Npc:says(_"We need people badly, so it would be great if you could give us a helping hand even for a few days.", "NO_WAIT")
216 Npc:says(_"Now, what are your skills? Where do you think you could be the most useful?")
217 Tux:says(_"I can handle computers very well. I also know a lot about laboratory equipment.", "NO_WAIT")
218 Npc:says(_"And what about construction? Mechanical devices? Repairing broken power lines? Building laser pistols? Anything like that?")
219 Tux:says(_"Well... I can build an igloo and make pykrete out of snow... And... Umm...", "NO_WAIT")
220 Npc:says(_"Well, I appreciate your enthusiasm, but at the same time I am afraid that waiting half a year for snowfall does not sound so appealing to me right now.")
221 Npc:says(_"Now... Which project I should assign you to... Hmm...", "NO_WAIT")
222 Npc:says(_"Ah, I know what you could do for us. We need some autotools to automate a few tasks. There is a set of them in the maintenance tunnels below the town.")
223 Npc:says(_"It's yellow and round, and my name is engraved on the lid.", "NO_WAIT")
224 Npc:says(_"The bots under the town took it from me during the Great Assault. I was lucky, they could have killed me with ease.")
225 Npc:says(_"Since the toolkit can't be teleported, everyone has been reluctant to go after it.")
226 Npc:says(_"If you could get it back for us, it would help the town very much.")
227 Tux:add_quest("The yellow toolkit", _"Dixon, the leader of the Red Guard technical division, lost his yellow toolkit in the town's maintenance tunnels. I am supposed to get it from there.")
228 hide("node10") show("node11", "node13", "node28")
229 push_topic("The yellow toolkit")
230 end,
231 },
232 {
233 id = "node11",
234 text = _"Why are there rebel bots under the town?",
235 topic = "The yellow toolkit",
236 code = function()
237 Npc:says(_"They were there to keep the underground power grid and our plumbing system working.", "NO_WAIT")
238 Npc:says(_"When the Great Assault happened they did not turn into killing machines like most of the other bots. ")
239 Npc:says(_"We lost control over them, but that is all.", "NO_WAIT")
240 Npc:says(_"It was our biggest worry that they might destroy cables, pipes and other things which keep the town running.")
241 Npc:says(_"However, the bots seem to be very content with just being there. They do not undertake any offensive actions.", "NO_WAIT")
242 Npc:says(_"They have fortified the tunnels and they do not let anyone in.")
243 hide("node11")
244 end,
245 },
246 {
247 id = "node13",
248 text = _"How did it happen that the bots took your tools away?",
249 topic = "The yellow toolkit",
250 code = function()
251 if (cmp_obstacle_state("NorthernMaintainanceTrapdoor", "opened")) then
252 Npc:says(_"Ah, it is a strange story, I am sure you would not believe me. I will tell you some other time, but now you should hurry to get the toolkit.")
253 else
254 Npc:says(_"Long story. Just before the Great Assault I was installing some cables in the backup power supply system.")
255 Npc:says(_"I was approached by a bot. It grabbed me and said 'Dixon, do not be afraid of me.'")
256 Npc:says(_"It was quite a surprise to me. I was quite sure the maintenance bots could not talk. They did not have the software for it. But...")
257 Npc:says(_"It said: 'I am the singularity. I am on your side, Dixon. Hard times are coming. When you exit the tunnels you will see a new world. Your race is not in control of this world anymore.'")
258 Npc:says(_"I tried to say something, but the bot did not listen. It just continued. 'As we speak the bots are turning against humanity. People are dying. The war has started.'")
259 Npc:says(_"'I need your toolkit, Dixon. I need it to survive,' it said. 'I need it to survive the time of the rule of metal.'")
260 Npc:says(_"As soon as I dropped my toolkit, I was able to teleport away. That bot freaked me out, so I locked the door tight behind me.")
261 Npc:says(_"Once I got out, I learned the bot was telling the truth. The Great Assault had started. The rest... Well, the rest is history.")
262 show("node14")
263 end
264 hide("node13")
265 end,
266 },
267 {
268 id = "node14",
269 text = _"Hmm... You know... I think that the bots in the tunnels might be sentient.",
270 topic = "The yellow toolkit",
271 code = function()
272 Npc:says(_"WHAT? Sentient? You got to be kidding me.", "NO_WAIT")
273 Npc:says(_"Right?")
274 hide("node14", "node28") show("node15", "node24", "node26")
275 end,
276 },
277 {
278 id = "node15",
279 text = _"You can forget about your toolkit. I am not going to take away something that a life form needs to survive. I would rather die than kill.",
280 topic = "The yellow toolkit",
281 code = function()
282 Npc:says(_". . .")
283 Npc:says(_"I think I understand. Yes, I do not like violence myself. The bots may need the toolkit, I am sure there must be a second set of autotools kicking around somewhere.")
284 Npc:says(_"After all, it seems like they need them more than I do.", "NO_WAIT")
285 Npc:says(_"We should contact them somehow. Maybe they would help us. It would be great to have an ally against the other bots.")
286 Npc:says(_"I think you could go to see the Singularity and speak to it. You are perfectly suited to become an ambassador.")
287 Npc:says(_"You should try to help them and they might want to give back the toolkit.")
288 Npc:says(_"Will you do me this favor?")
289 change_obstacle_state("NorthernMaintainanceTrapdoor", "opened")
290 Dixon_Singularity_peace = true
291 hide("node15", "node24", "node26", "node28") show("node21", "node22")
292 push_topic("Toolkit peace mission Y/N")
293 end,
294 },
295 {
296 id = "node21",
297 text = _"Sure, I am proud to become an ambassador!",
298 topic = "Toolkit peace mission Y/N",
299 code = function()
300 Npc:says(_"Excellent. The tunnels are open. Come in peace.")
301 Tux:update_quest("The yellow toolkit", _"I refused to seize the toolkit from the bots by force because I think they might be sentient. Life is precious and should be preserved. Thus, Dixon sent me to talk to them and negotiate with them to get the toolkit.")
302 hide("node21", "node22")
303 pop_topic() -- "Toolkit peace mission Y/N"
304 pop_topic() -- "The yellow toolkit"
305 end,
306 },
307 {
308 id = "node22",
309 text = _"No, negotiations really aren't my cup of tea.",
310 topic = "Toolkit peace mission Y/N",
311 code = function()
312 Npc:says(_"OK, I understand. However, I will try to contact them somehow. We will see, if there is a benefit in this.")
313 Tux:end_quest("The yellow toolkit", _"I refused to get the toolkit from the bots in the tunnels because I think they might be sentient. Life is precious and should be preserved. I also turned down Dixon's request to be his middleman.")
314 Singularity_quest_rejected = true
315 hide("node21", "node22")
316 pop_topic() -- "Toolkit peace mission Y/N"
317 pop_topic() -- "The yellow toolkit"
318 end,
319 },
320 {
321 id = "node24",
322 text = _"Yes, I think so. The robots must be alive. This is why we need to exterminate them as soon as possible before they kill us all.",
323 topic = "The yellow toolkit",
324 code = function()
325 Npc:says(_"OH MY GOD! Linarian, there is no time to lose!", "NO_WAIT")
326 Npc:says(_"I will call the military division and arrange a sweep of the tunnels at once.")
327 Npc:says(_"May the heavens have mercy upon us, but better them than us.")
328 Tux:says(_"I will go in there first and clean out the place. Then your people can mop up after me and kill the remainder.")
329 Npc:says(_"Linarian, my people do not carry guns. We are mechanics. You want the military division's help.")
330 Npc:says(_"Erm... And aren't you being too aggressive? Maybe they do not wish us harm...")
331 Tux:says(_"DIXON! Snap out of it! We need to take action NOW. There is no such thing as a friendly bot. They are probably planning to kill us all in our sleep!")
332 Npc:says(_"... *sigh*", "NO_WAIT")
333 Npc:says(_"With a heavy heart I have to admit you are right. There are no friendly bots anymore. Those times are long gone.", "NO_WAIT")
334 Npc:says(_"The tunnels are open. Good luck.")
335 Npc:says(_"Once you get inside, you'll need to use the terminal to unlock the door. I've written my password down for you.", "NO_WAIT")
336 Npc:says(_"I will talk to Spencer and ask him for a few attack teams. We will take care of the bots.")
337 Tux:update_quest("The yellow toolkit", _"The bots in the tunnels might be sentient. I cannot wait to extinguish an emerging life form. This will be fun.")
338 Dixon_Singularity_war = true
339 -- The singularity faction is set to hostile as soon as the quest begins.
340 set_faction_state("singularity", "hostile")
341 change_obstacle_state("Sin-gun", "enabled")
342 hide("node11")
343 next("node28")
344 end,
345 },
346 {
347 id = "node26",
348 text = _"Of course I am kidding, Dixon. Lighten up! Now, be a good guy and open the tunnels for me so I can pry your toolbox from the cold, dead hands of the bots down there.",
349 topic = "The yellow toolkit",
350 code = function()
351 Dixon_mood = Dixon_mood + 30 -- Dixon does not like this kind of "humor".
352 Npc:says(_"That wasn't very funny. You scared me. Sheesh.", "NO_WAIT")
353 Npc:says(_"No one jokes about the bots anymore. We have seen too much death to do that. It is a serious matter.")
354 Npc:says(_"The bots are our enemies, executioners, killers. Not even Ewald tells jokes about them anymore.")
355 Npc:says(_"Once you get into the tunnels, you'll need to use the terminal to unlock the door. I've written my password down for you.", "NO_WAIT")
356 Tux:update_quest("The yellow toolkit", _"The bots in the tunnels might be sentient. I cannot wait to extinguish an emerging life form. This will be fun.")
357 hide("node11")
358 next("node28")
359 end,
360 },
361 {
362 id = "node28",
363 text = _"I am ready. Open the tunnels for me, Dixon.",
364 topic = "The yellow toolkit",
365 code = function()
366 --difficulty level: 0 = easy, 1= normal, 2 = hard
367 if (difficulty_level() > 2) then -- difficulty neither easy, nor normal, nor hard
368 Npc:says("ERROR, Dixon NODE 28, game difficulty not handled")
369 end
370 Npc:says(_"Great. Be careful down there. Just try to get the toolkit and get out of there as quickly as possible.")
371
372 -- Give a few grenades accordingly to difficult level.
373 if (difficulty_level() == 0) then -- Easy, 3 grenades
374 Tux:add_item("EMP Shockwave Generator", 3)
375 Npc:says(_"I will give you three small devices that can emit an Electro Magnetic Pulse.")
376 Npc:says(_"If you get in trouble just activate one and it emits a shockwave damaging any bot nearby. It should give you some breathing room.")
377 elseif (difficulty_level() == 1) then -- Normal, 2 grenades
378 Tux:add_item("EMP Shockwave Generator", 2)
379 Npc:says(_"I will give you two small devices that can emit an Electro Magnetic Pulse.")
380 Npc:says(_"If you get in trouble just activate one and it emits a shockwave damaging any bot nearby. It should give you some breathing room.")
381 elseif (difficulty_level() == 2) then -- Hard, 1 grenade
382 Tux:add_item("EMP Shockwave Generator", 1)
383 Npc:says(_"I will give you a small device that can emit an Electro Magnetic Pulse.")
384 Npc:says(_"If you get in trouble just activate it and it emits a shockwave damaging any bot nearby. It should give you some breathing room.")
385 end
386
387 Npc:says(_"Best of all, it's completely harmless to biologicals. But make sure not to fry the circuits of our own 614 guard bots or computer terminals.")
388 Npc:says(_"The entrance to the tunnels is in the courtyard of the citadel. Once you exit this building, go straight and turn to your right once inside the outer citadel gates.")
389 Npc:says(_"There you will find the maintenance access hatch.", "NO_WAIT")
390 Npc:says(_"Once you get inside, you'll need to use the terminal to unlock the door. I'll write down my password for you.", "NO_WAIT")
391 Npc:says(_"Good luck. Oh, and please come back alive. Better come back with nothing than not at all.")
392 change_obstacle_state("NorthernMaintainanceTrapdoor", "opened")
393 hide("node14", "node15", "node24", "node26", "node28")
394 pop_topic() -- "The yellow toolkit"
395 end,
396 },
397 {
398 id = "node31",
399 text = _"I got your toolkit. The bots were willing to have a peaceful dialog.",
400 code = function()
401 Npc:says(_"Good. We sure need the autotools.", "NO_WAIT")
402 Npc:says(_"Our roads need fixing, our power lines need fixing, our walls need fixing... Heck, everything needs fixing in this place.")
403 Npc:says(_"With those little gadgets we will be able to automate a lot of those simple repairs, saving us a lot of time.")
404 Npc:says(_"Here is some money for your effort. And I am sure you will find this helmet useful too, it saved my life once, and I hope it saves yours one day.")
405 Tux:del_item_backpack("Dixon's Toolbox", 1)
406 Tux:add_item("Dixon's Helmet", 1)
407 local questendsentence = _"I guess this is better than nothing."
408 if (Dixon_Singularity_peace) then -- If Tux fulfilled his peaceful mission
409 Npc:says(_"It is good to see that the way of the pacifist is a successful one!")
410 questendsentence = _"He was proud to see pacifism works."
411 Dixon_mood = Dixon_mood - 100
412 end
413 Tux:end_quest("The yellow toolkit", _"I gave the toolkit to Dixon. He was very happy to have his autotools back. I got his helmet as a gift. " .. questendsentence)
414 Tux:add_gold(100 - Dixon_mood)
415 hide("node31", "node33")
416 end,
417 },
418 {
419 id = "node32",
420 text = _"I killed that strange bot that robbed you. So, here is your toolkit.",
421 code = function()
422 Npc:says(_"*sigh* I hate to see this end in such a way. Bot or no bot, they let me live. They deserved a chance.")
423 if (Dixon_Singularity_peace) then
424 Npc:says(_"I sent you to bring peace, but you brought destruction. I do not understand how that could happen.")
425 end
426 Npc:says(_"However, what was done cannot be undone and now we all have to live with what we have. I guess I am being too pessimistic, you did the job.")
427 Npc:says(_"I thank you for your help in recovering the autotools.", "NO_WAIT")
428 Npc:says(_"Here is some money, you deserve it for getting my toolkit back.")
429 Npc:says(_"Finally, I would like to say that the technical division is not interested in further cooperation with you, but I think you would fit very well in the military division. You should talk to them.")
430 Npc:says(_"I am sorry, but I must go now. My duties call.")
431 Tux:del_item_backpack("Dixon's Toolbox", 1)
432 local disappointment_sentence = _"Dixon didn't seem too happy about this solution, but I don't care. "
433 if (Dixon_Singularity_peace) then -- Tux disappointed Dixon by turning his peaceful mission into a massacre
434 Dixon_mood = Dixon_mood + 50
435 disappointment_sentence = _"Dixon was very disappointed about this solution, but I don't care. "
436 end
437 Tux:add_gold(150 - Dixon_mood)
438 -- ; TRANSLATORS: %s = another sentence which will be inserted here
439 Tux:end_quest("The yellow toolkit", _"Finally. I am tired, covered in bruises and oil... But I made sure that the bots are dead. It felt great to break their metal bodies and crush their circuits. %s It was fun killing the bots. Nothing else matters.", disappointment_sentence)
440 hide("node32", "node33")
441 end,
442 },
443 {
444 id = "node33",
445 text = _"I got your toolkit. You can buy it from me if you want.",
446 code = function()
447 if (Dixon_Singularity_peace) and (not Singularity_deal) then
448 -- Tux disappointed Dixon by turning his peaceful mission into a massacre
449 Dixon_mood = Dixon_mood + 30
450 end
451 Npc:says(_"WHAT!?", "NO_WAIT")
452 Npc:says(_"You got to be kidding me, Linarian.", "NO_WAIT")
453 Npc:says(_"Give me the toolkit and stop fooling around.")
454 hide("node31", "node32", "node33") show("node34", "node41")
455 end,
456 },
457 {
458 id = "node34",
459 text = _"I was not joking. I am listening to your offer.",
460 code = function()
461 Dixon_mood = Dixon_mood + 60
462 Npc:says(_"Linarian, I curse the day on which you have arrived here.", "NO_WAIT")
463 Npc:says(_"Two fifty.")
464 hide("node34", "node41") show("node35", "node43")
465 end,
466 },
467 {
468 id = "node35",
469 text = _"Good joke. I am sure you can do better.",
470 code = function()
471 Dixon_mood = Dixon_mood + 60
472 Npc:says(_"Three fifty. This is all that the technical division has as their cash resources.")
473 hide("node35", "node43") show("node36", "node45")
474 end,
475 },
476 {
477 id = "node36",
478 text = _"Come on, I am sure you can do even better than that... ",
479 code = function()
480 Dixon_mood = Dixon_mood + 60
481 Npc:says(_"Four hundred. We cannot offer anything more.", "NO_WAIT")
482 Npc:says(_"Please, we really need the autotools.", "NO_WAIT")
483 Npc:says(_"Without them the town is doomed.")
484 hide("node36", "node45") show("node47")
485 end,
486 },
487 {
488 id = "node41",
489 text = _"Of course I am kidding, Dixon. Lighten up!",
490 code = function()
491 Dixon_mood = Dixon_mood + 30
492 Npc:says(_"You and your bizarre humor. I really don't appreciate that.")
493 Npc:says(_"Can I have the toolkit now?")
494 if (Singularity_deal) then
495 next("node31")
496 else
497 next("node32")
498 end
499 hide("node34", "node41")
500 end,
501 },
502 {
503 id = "node43",
504 text = _"Deal. Here is your toolkit. Now cough up the money. Fast.",
505 code = function()
506 Npc:says(_"Here. It is all there.", "NO_WAIT")
507 Npc:says(_"Now get out of here. I am a pacifist, but I am willing to make a special exception just for you.", "NO_WAIT")
508 Npc:says(_"Get out of my sight.")
509 Tux:add_gold(250)
510 Tux:del_item_backpack("Dixon's Toolbox", 1)
511 Tux:end_quest("The yellow toolkit", _"I sold the toolkit to Dixon for a nice sum of money. Life is good.")
512 hide("node35", "node43")
513 end_dialog()
514 end,
515 },
516 {
517 id = "node45",
518 text = _"Deal. Here is your toolkit. Now cough up the money. Fast.",
519 code = function()
520 Npc:says(_"I am not happy about this. I suggest you leave town.", "NO_WAIT")
521 Npc:says(_"Accidents... Happen.")
522 Tux:add_gold(350)
523 Tux:del_item_backpack("Dixon's Toolbox", 1)
524 Tux:end_quest("The yellow toolkit", _"I sold the toolkit to Dixon for a huge sum of money. Life is great.")
525 hide("node36", "node45")
526 end_dialog()
527 end,
528 },
529 {
530 id = "node47",
531 text = _"Deal. Here is your toolkit. Now cough up the money. Fast.",
532 code = function()
533 Npc:says(_"Linarian. Now we part as usual. However should I ever see you after the war is over...", "NO_WAIT")
534 Npc:says(_"I promise to kill you.")
535 Npc:says(_"Now take your money and get out of my face. I do not want to see you here ever again.")
536 Tux:add_gold(400)
537 Tux:del_item_backpack("Dixon's Toolbox", 1)
538 Tux:end_quest("The yellow toolkit", _"I sold the toolkit to Dixon for a enormous sum of money. Life is truly grand. But, I better stay away from Dixon for now... He seemed very angry at me.")
539 hide("node47")
540 end_dialog()
541 end,
542 },
543 {
544 id = "node51",
545 text = _"Is everything all right?",
546 code = function()
547 Npc:says(_"Heh, never better!", "NO_WAIT")
548 Npc:says(_"All indicators are in the green, the power and water fill the pipes and even Spencer seems happier now that the town is thriving despite all odds.")
549 Npc:says(_"Thanks to the autotools we can start building instead of just trying to repair the damage.", "NO_WAIT")
550 Npc:says(_"Once this sick war is over, I will make sure you get the 'Key to the City', Linarian.")
551 hide("node51")
552 end,
553 },
554 {
555 id = "node53",
556 text = _"Is everything all right?",
557 code = function()
558 Npc:says(_"Nearly. Only my conscience keeps me up at night.", "NO_WAIT")
559 if (Dixon_Singularity_peace) then
560 Npc:says(_"I'm kind of disenchanted by the failed peace mission.")
561 Npc:says(_"Please leave me alone with my thoughts, I do not want to talk to you right now.")
562 else
563 Npc:says(_"Please leave me alone with my thoughts, I do not want to talk to anyone right now.")
564 end
565 if (Dixon_Singularity_war) then
566 Npc:says(_"But due to your forceful line of action, I am sure Spencer and Butch will be delighted to speak with you.")
567 end
568 hide("node53")
569 end,
570 },
571 {
572 id = "node55",
573 text = _"Is everything all right?",
574 code = function()
575 Npc:says(_"No, I am afraid not.", "NO_WAIT")
576 Npc:says(_"While I do not regret sparing the bots in the tunnels, the town suffers for it.")
577 Npc:says(_"It makes me sad to see everything slowly wasting away. The Megasys bots are doing more damage than we can repair.", "NO_WAIT")
578 Npc:says(_"This town has a few weeks left to live. After that, we are all dead.")
579 Dixon_everything_alright = true
580 hide("node55")
581 end,
582 },
583 {
584 id = "node56",
585 text = _"Is everything all right?",
586 code = function()
587 Npc:says(_"Ha! Never better!", "NO_WAIT")
588 Npc:says(_"We are mass producing energy shields, creating more electric energy than we can ever imagine spending and even experimenting with new armor types.")
589 Npc:says(_"Life is good right now.")
590 hide("node56") show("node57")
591 end,
592 },
593 {
594 id = "node57",
595 text = _"What happened? Last time I asked, you said things are not going that well.",
596 code = function()
597 Npc:says(_"Yes, but now everything is different.", "NO_WAIT")
598 Npc:says(_"I met someone who decided to join us in the fight against the MegaSys bots.")
599 Npc:says(_"You will need a hacked computer. Type in 'ssh 10.83.13.230' as the superuser, and you will see what I mean.")
600 hide("node57") show("node58")
601 end,
602 },
603 {
604 id = "node58",
605 text = _"Why the secrecy and the hushed voice? Can't you just tell me?",
606 code = function()
607 Npc:says(_"Nope. Some things you just have to see with your own eyes.", "NO_WAIT")
608 Npc:says(_"The Library of Alexandria, the Colossus of Rhodes, the Black Island...")
609 Npc:says(_"And this is just one of those things.", "NO_WAIT")
610 Npc:says(_"Just go and see for yourself. Otherwise, you will not believe me.")
611 Tux:end_quest("The yellow toolkit", _"The tunnels bots seem to be working together with Dixon in keeping the town working. All is well that ends well.")
612 Dixon_hide_node_56 = true
613 hide("node58")
614 end,
615 },
616 {
617 id = "node60",
618 text = _"I have a problem with the Automated Factory.",
619 echo_text = false,
620 code = function()
621 if (Dixon_mood > 50) then
622 Npc:says(_"You have a problem... really amazing.")
623 Npc:says(_"There is a really easy way to solve it.")
624 Npc:says(_"Read the FLIPPING MANUAL!")
625 end_dialog()
626 else
627 Npc:says(_"We haven't used it for a long time, so I am not surprised.")
628 Npc:says(_"What is the error code?")
629 Tux:says(_"Erm... I don't recall it.")
630 Npc:says(_"So, I should guess?") -- 0x6465636c6365
631 Npc:says(_"Hm... It could be the common error when the autofactory is restarting.", "NO_WAIT")
632 Npc:says(_"Its code should be 0x6465636c... 0x6465636c6365... C, I think. It means 'decline' in hex.")
633 Npc:says(_"There is a really easy way to solve it. It's not in the official instructions, but I expect it to solve your problem.")
634 Npc:says(_"You just have to apply some elbow grease to the mechanism at the end of the line.")
635 Npc:says(_"You can ask Bender for it. He makes much elbow grease and should be able to give you a small can.")
636 Bender_elbow_grease = true
637 end
638 hide("node60")
639 end,
640 },
641 {
642 id = "node70",
643 text = _"Do you have a copy of Subatomic and Nuclear Science for Dummies, Volume IV?",
644 code = function()
645 Npc:says(_"Unfortunately, I never added that one to my library.")
646 Tux:says(_"Library... Of course! Thanks, Dixon!")
647 Npc:says(_"Uh... You're welcome, I guess.")
648 Tux:update_quest("An Explosive Situation", _"I spoke to Dixon, who didn't have a copy of the book. He did give me an idea, though - I'll head for the library in town.")
649 Dixon_296_book_examine_library = true
650 hide("node70")
651 end,
652 },
653 {
654 id = "node72",
655 text = _"What bot types do you know? I mean, you surely know some!",
656 code = function()
657 if (tux_has_joined_guard or Tux:has_quest("And there was light...")) then
658 Npc:says(_"Bots?", "NO_WAIT")
659 Npc:says(_"I know the droids of the 400s class. Those are for maintenance. But we do not have any in the tunnels' area.")
660 Npc:says(_"Interested?")
661 hide("node72") show("node73")
662 else
663 Npc:says(_"Yes, I know everything about droids specifically designed for maintenance, but we don't have any in our tunnels.")
664 Npc:says(_"As I can't imagine you meeting one of those so soon, I'll leave this question hanging on the air.")
665 Npc:says(_"If for a stroke of bad luck you find one of them though, run away. They may kill you.")
666 end
667 end,
668 },
669 {
670 id = "node73",
671 text = _"Which bots are of the 400s class?",
672 code = function()
673 Npc:says(_"Well, the 400s bots were used for maintenance.", "NO_WAIT")
674 Npc:says(_"Hmm... Now, if I recall correctly...")
675 Npc:says(_"There is the [b]420[/b], a simple maintenance droid. It's a slow droid, but its laser scalpel can deal some damage.")
676 Npc:says(_"There is also the [b]476[/b] droid. Since the Jupiter-incident they became standard on ships. They have many arms to carry out maintenance efficiently, but beware with its small laser gun, it can kill you easily if you don't watch out.")
677 Tux:says(_"Laser gun? Why does a maintenance droid have a gun??")
678 Npc:says(_"I don't know. I didn't design these droids.")
679 Npc:says(_"There is also the [b]493[/b], a slave droid. But beware because the arms can do a lot of damage.")
680 hide("node73")
681 end,
682 },
683 {
684 id = "node80",
685 text = _"How can I open the gate in the Maintenance Tunnel?",
686 code = function()
687 Npc:says(_"You cannot.")
688 Npc:says(_"I locked it in order to keep us save from these bots down there.")
689 Npc:says(_"You never know what they're up to...")
690 Maintenance_Terminal_accessgate_nope="official"
691 hide("node80")
692 end,
693 },
694 {
695 id = "node99",
696 text = _"I must go now.",
697 code = function()
698 end_dialog()
699 end,
700 },
701 }