Debian Codegraph @

data/storyline/act1/dialogs/Spencer.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 = { "Militaristic", "Amoral" },
21 MARKERS = { NPCID1 = "Francis" },
22 PURPOSE = "$$NAME$$ is the leader of the Red Guard and gives Tux several quests that involve either ensuring the survival
23 of the town, the downfall of the bots or actions Tux can take to join the Red Guard. $$NAME$$ has the final say on
24 whether Tux can join the Red Guard.",
25 RELATIONSHIP = {
26 {
27 actor = "$$NPCID1$$",
28 text = "$$NAME$$ disagrees with $$NPCID1$$ about disposing of people in cryonic stasis. $$NAME$$ wants to dispose of some of
29 these people because he wants resources used by cryonic stasis for the town\'s survival. $$NAME$$ threatened to reveal a
30 secret from $$NPCID1$$\'s past to force compliance."
31 }
32 }
33 WIKI]]--
34
35 local Npc = FDrpg.get_npc()
36 local Tux = FDrpg.get_tux()
37
38 return {
39 FirstTime = function()
40 show("node0")
41 guard_follow_tux = false
42 local guard = FDrpg.get_npc("Town-TuxGuard")
43 guard:set_state("patrol")
44 change_obstacle_state("Dixon-autogun", "enabled")
45 end,
46
47 EveryTime = function()
48 if (MO_HFGateAccessServer_Spencer) then
49 Npc:says(_"Red Guard HQ, Spencer speaking.")
50 Npc:says(_"Are you receiving me?")
51 Tux:says(_"Yes.")
52 Tux:says(_"Spencer, we have a problem.")
53 Npc:says(_"Yes, Richard detected abnormalities with the server. Can you report anything regarding this?")
54 Tux:says(_"Indeed, the server says it is a gate server, not a firmware server.")
55 Npc:says(_"Bah!")
56 Npc:says(_"Must prevent access to the real update server. Can you open the gate?")
57 --; TRANSLATORS: follow the markers on the ground
58 Npc:says(_"Inside, follow the mrkers o e groun")
59 --; TRANSLATORS: Richard says the connection is bad
60 Npc:says(_"Ri ard sa... e c nn cti n *bzzzzzzzzz* bad.")
61 --; TRANSLATORS: good luck
62 Npc:says(_"Goo*sizzle*ck.")
63 --; TRANSLATORS: over
64 Npc:says(_"O*crack*r")
65 Tux:update_quest("Propagating a faulty firmware update", _"Spencer contacted me and said I was supposed to find the real firmware update server. I hope I survive this...")
66 Tux:add_quest("Open Sesame", "It turns out what we thought was the firmware update server was just a gate access server. Spencer speculates the real firmware server is behind this gate. There should be something on the ground I am supposed to follow.")
67 end_dialog()
68 elseif (HF_FirmwareUpdateServer_uploaded_faulty_firmware_update) and (not HF_FirmwareUpdateServer_Spencer) then
69 next("node60")
70 elseif (HF_Spencer_teleported) then
71 hide("node7")
72 if (Spencer_node66) then
73 Spencer_node66=false
74 show("node66")
75 end
76 elseif ((Tux:has_item_equipped("The Super Exterminator!!!") or
77 Tux:has_item_equipped("Exterminator")) and (not HF_FirmwareUpdateServer_uploaded_faulty_firmware_update)) then
78 Npc:says(_"Even a Red Guard Member only points Exterminators to rebels and bots.", "NO_WAIT")
79 Npc:says(_"Unless I am a bot and do not realize it, I must request that you unequip it.")
80 end_dialog()
81 elseif (tux_has_joined_guard) then
82 Npc:says(_"Greetings fellow Red Guard member.")
83
84 hide("node2", "node12")
85 end
86
87 if (Tania_met_Pendragon) and (not Spencer_Tania_decision) then
88 show("node50")
89 end
90
91 if (not Tux:has_quest("Opening access to MS Office")) and
92 (Tux:done_quest("A kingdom for a cluster!")) then
93 show("node37")
94 end
95
96 if (not Tux:has_quest("Propagating a faulty firmware update")) and
97 (Tux:done_quest("Opening access to MS Office")) then
98 show("node44")
99 end
100
101 if (data_cube_lost) and
102 (not Tux:done_quest("Deliverance")) then
103 show("node29")
104 end
105
106 if ((not (Tux_told_Spencer_about_Bob_and_Jim)) and ((Tux:has_met("Bob")) and (knows_spencer_office))) then
107 show("node70")
108 end
109
110 show("node99")
111 end,
112
113 {
114 id = "node0",
115 text = _"Hi! I'm new here.",
116 code = function()
117 Npc:says(_"I'm Spencer. I'm the leader of the Red Guard. Is there anything I can help you with?")
118 knows_spencer_office = true
119 if (Tux:has_quest("Deliverance")) and
120 (not Tux:done_quest("Deliverance")) then
121 show("node20")
122 end
123 hide("node0") show("node1", "node7")
124 end,
125 },
126 {
127 id = "node1",
128 text = _"I want to join the Red Guard.",
129 code = function()
130 Npc:says(_"Hmm... Really? Well, you cannot join just like that, you know...", "NO_WAIT")
131 Npc:says(_"You must prove that you would make a good new member.")
132 hide("node1") show("node2")
133 end,
134 },
135 {
136 id = "node2",
137 text = _"I really want to become a member.",
138 code = function()
139 Npc:says(_"This is not so easy. First you must establish a reputation around here. Ask around, talk to people and build your reputation.")
140 Npc:says(_"Once you're a known character around here, we might let you join the ranks of the Guard.")
141 hide("node2") show("node3", "node12")
142 end,
143 },
144 {
145 id = "node3",
146 text = _"How about some circuits instead?",
147 code = function()
148 Npc:says(_"For 15 million circuits, no less, hehe.")
149 if (Tux:get_gold() >= 15000000) then -- player cheated obviously :-)
150 show("node9")
151 end
152 hide("node3", "node7", "node12") show("node4")
153 end,
154 },
155 {
156 id = "node4",
157 text = _"But I don't have that many circuits!",
158 code = function()
159 Npc:says(_"That much I can tell.")
160 Npc:says(_"Look, I'm just fooling around. We don't let just anyone join the Red Guard.", "NO_WAIT")
161 Npc:says(_"If you seriously want to join, you have to prove yourself first. You might want to ask around town for things you can do.")
162 hide("node4", "node9") show("node7", "node12")
163 end,
164 },
165 {
166 id = "node6",
167 text = _"Maybe I could help somehow?",
168 code = function()
169 Npc:says(_"That would be most kind of you, but I doubt that you will be able to clear out the warehouse for us.")
170 Npc:says(_"But since you are said to be powerful and a former hero, I'll once more put trust into a stranger.")
171 Npc:says(_"I've unlocked the access-way to the warehouse. It's to the north of this town, somewhat hidden in the woods northeast.")
172 Npc:says(_"The stuff we need is on the first floor. Don't go any deeper, there are only bots in there.", "NO_WAIT")
173 Npc:says(_"I wish you the best of luck.")
174 Tux:add_quest("Opening a can of bots...", _"I am supposed to clean out the first level of some warehouse. Sounds easy. It lies nearby, somewhat hidden in the woods north-east of town.")
175 change_obstacle_state("TrapdoorToWarehouse", "opened")
176 hide("node6")
177 end,
178 },
179 {
180 id = "node7",
181 text = _"How is it going?",
182 code = function()
183 if (Tux:has_quest("Opening a can of bots...")) then
184 if (Tux:done_quest("Opening a can of bots...")) then
185 if (Spencer_reward_for_warehouse_given) then
186 Npc:says(_"Thanks to you, we've been able to transport all the goods we need right now. You've really helped us out there.")
187 Npc:says(_"Rest assured that we will never forget your brave activity for our community.")
188 else
189 Npc:says(_"Man, you really did it! I can hardly believe it, but all the bots are gone!", "NO_WAIT")
190 Npc:says(_"Take these 500 circuits as a reward. And be assured that you've earned my deepest respect, Linarian.")
191 Npc:says(_"Our people are transporting the goods as we speak. It can't be too long until new bots from ships in the orbit of the planet will beam down to replace the dead bots.")
192 Tux:add_gold(500)
193 Spencer_reward_for_warehouse_given = true
194 Tux:update_quest("Opening a can of bots...", _"Ouch. It wasn't. At least I am alive, and the warehouse is clear. *Whew*.")
195 end
196 else
197 Npc:says(_"Not too good. Without the supplies from the warehouse we are doomed. So my problems are still the same.")
198 Npc:says(_"Maybe later, when you grow more experienced you might be able to help us after all.")
199 end
200 else
201 Npc:says(_"These are bad times. Interplanetary travel is made impossible by bot ships, so we need to stick to our local resources.")
202 Npc:says(_"We've got a list of stuff we need from the automated underground storage north of town. But the bots there are numerous.")
203 Npc:says(_"And currently I can't spare a single man from the town's defenses. It's quite a difficult situation.")
204 show("node6")
205 end
206 end,
207 },
208 {
209 id = "node9",
210 text = _"I actually do have the 15 million bucks, here take it!",
211 code = function()
212 Npc:says(_"Wow, err, I mean, thanks.")
213 Npc:says(_"You are a Red Guard now.")
214 Npc:says(_"Oh, wait, you cheated, didn't you?")
215 Npc:says(_"There is no way we can have lame cheaters in the Red Guard, forget about it!")
216 Npc:says(_"However, if you did in fact NOT cheat, please tell the developers how you got so much money so they can fix it. :)")
217 Npc:says(_"Contact information can be found at https://www.freedroid.org/Contact")
218 hide("node9")
219 Tux:del_gold(1000000)
220 end,
221 },
222 {
223 id = "node12",
224 text = _"Have I done enough quests to become a member now?",
225 code = function()
226 if (not Tux:done_quest("The yellow toolkit")) then
227 Npc:says(_"I think our teleporter service man, Dixon, has some problem. You might want to talk to him.")
228 elseif (not Dixon_mood) or
229 (Dixon_mood < 50) then
230 Npc:says(_"Dixon told me about the matter with his toolkit. He seemed pretty impressed by you.")
231 elseif (Dixon_mood < 120) then
232 Npc:says(_"Dixon has his toolkit back.", "NO_WAIT")
233 Npc:says(_"He was in bad mood and told me he had to pay you for getting his own property back.")
234 Npc:says(_"I think it is the best for him if we leave him alone the next days.", "NO_WAIT")
235 Npc:says(_"I'm sure he has to do a lot now.")
236 -- Joining the guard, tux has to pay 500 circuits.
237 elseif (Dixon_mood < 180) then
238 Npc:says(_"Dixon has his toolkit back.", "NO_WAIT")
239 Npc:says(_"He seemed quite aggressive and stressed.")
240 Npc:says(_"Poor guy, if we weren't in such a bad situation, he could have some work-free days, but bot attacks continue all the time.", "NO_WAIT")
241 Npc:says(_"You better don't bother him the next days.")
242 -- Tux will have to pay 700 circuits to join the red guard
243 else
244 Npc:says(_"Dixon has his toolkit back.", "NO_WAIT")
245 Npc:says(_"He did rail against you though. He said he had to give you 400 circuits to get his toolkit back, his own property.")
246 Npc:says(_"That was nearly all the money he had. He said you were too greedy to become a good member and he doesn't want to see you anymore.")
247 Npc:says(_"I think everybody deserves to get a chance. Remember this: If you are negatively conspicuous again, we will ban you from our town!")
248 -- Tux needs to pay 800 circuits to join the guard.
249 end
250
251 if (Tux:done_quest("Anything but the army snacks, please!")) then
252 Npc:says(_"When I was eating, Michelangelo told me about his renewed oven energy supply. He seemed very pleased, and so was I.")
253 else
254 Npc:says(_"I think you should visit the town's cook sometime. He's usually in the restaurant kitchen.")
255 end
256
257 if (Tux:done_quest("Novice Arena")) then
258 Npc:says(_"From Butch I hear you've become a novice arena master. Congratulations.")
259 else
260 Npc:says(_"You might want to score some arena victories. That could also help your reputation a lot.")
261 end
262
263 if (Tux:done_quest("Bender's problem")) then
264 Npc:says(_"Helping Bender along was also a smart move. But you should be very careful with that one. He can get mad rather easily. A bit of a security threat, but we can't be too picky.")
265 else
266 Npc:says(_"As far as I know, Bender is still very sick.")
267 end
268
269 if (Tux:done_quest("Opening a can of bots...")) then
270 Npc:says(_"But most importantly, I was very impressed with you when you cleared out the warehouse. That was a huge deed I will never forget.")
271 else
272 Npc:says(_"Personally I'm also worrying about how we will manage to get some necessary supplies from our warehouse. It's filled with bots and we just don't have the manpower to spare to clean them out.")
273 if (not Tux:has_quest("Opening a can of bots...")) then
274 show("node6")
275 end
276 end
277
278 if (get_town_score() > 49) then
279 -- ENOUGH POINTS TO JOIN RG
280 Npc:says(_"OK. Your list of achievements is long enough. You can join us. So I hereby declare you a member of the Red Guard.")
281 Npc:says(_"But now that you are in the Guard, know this: There is only one rule for us guards: We stick together. We survive together or we die together. But we do it together.")
282 Npc:says(_"And now you might want to inspect the guard house. Tell Tybalt to open the door for you. Lukas at the arms counter will give you your armor.")
283 Npc:says(_"I hope you will prove yourself a worthy member of the Red Guard.")
284 display_big_message(_"Joined Town Guard!!")
285 tux_has_joined_guard = true
286 change_obstacle_state("Main Gate Guardhouse", "opened")
287 sell_item("Shotgun shells", 1, "Stone")
288 sell_item(".22 LR Ammunition", 1, "Stone")
289 sell_item("EMP Shockwave Generator", 2, "Duncan") -- RG members can buy bigger bombs, as Duncan said.
290 sell_item("Plasma Shockwave Emitter", 1, "Duncan")
291
292 -- Allows Tux to buy Tier 2 skills
293 Tamara_restock=true
294 sell_item("Source Book of Sanctuary", 1, "Tamara")
295 sell_item("Source Book of Virus", 1, "Tamara")
296 sell_item("Source Book of Dispel smoke", 1, "Tamara")
297 sell_item("Source Book of Energy Shield", 1, "Tamara")
298
299 hide("node3", "node12")
300 else
301 if (get_town_score() > 29) then
302 Npc:says(_"All in all, not half bad. But there are still things you need to do. Once you finish, then we can talk about it.")
303 else
304 Npc:says(_"I can't accept you into the Guard like this. Get going. There are still many things to do for you.")
305 end
306 end
307 end,
308 },
309 {
310 id = "node20",
311 text = _"Francis wanted me to give you a data cube.",
312 code = function()
313 Npc:says(_"Ah, excellent, the list I asked for.")
314 Npc:says(_"It figures he would ask someone to deliver it for him.")
315 Tux:says(_"Why's that?")
316 Npc:says(_"We had a little disagreement, Francis and I. He refused to accept our rule and do the task we gave him.")
317 Npc:says(_"I had to persuade him myself.")
318 Npc:says(_"Well, give me the data cube.")
319 if (Tux:has_item_backpack("Data cube")) then
320 show("node21", "node22", "node25", "node26")
321 else
322 show("node23", "node25", "node26")
323 end
324 hide("node20")
325 push_topic("Deliver the cube")
326 end,
327 },
328 {
329 id = "node21",
330 text = _"(Give the data cube to Spencer)",
331 echo_text = false,
332 topic = "Deliver the cube",
333 code = function()
334 Tux:says(_"Here, take it.")
335 Tux:del_item_backpack("Data cube", 1)
336 Npc:says(_"Thank you for the good work you have done. I think you deserve a small reward.")
337 Tux:add_xp(100)
338 Tux:add_gold(100)
339 Tux:end_quest("Deliverance", _"I gave Spencer the data cube. He gave me a small reward.")
340 data_cube_lost = false
341 hide("node20", "node21", "node22", "node23", "node24", "node25", "node26")
342 pop_topic("Deliver the cube")
343 end,
344 },
345 {
346 id = "node22",
347 text = _"(Lie about the oversight of the data cube)",
348 echo_text = false,
349 topic = "Deliver the cube",
350 code = function()
351 next("node23")
352 end,
353 },
354 {
355 id = "node23",
356 text = _"(Apologize for the oversight of the data cube)",
357 echo_text = false,
358 topic = "Deliver the cube",
359 code = function()
360 if (not data_cube_lost) then
361 Tux:says(_"Oh, erm... Hehe, I think I forgot it somewhere.")
362 else
363 Tux:says(_"Hm, I still don't have the data cube.")
364 end
365 Npc:says(_"... What?")
366 Npc:says(_"Then you better go and look for it. Don't waste my time, Linarian.")
367 data_cube_lost = true
368 hide("node21", "node22", "node23")
369 pop_topic("Deliver the cube")
370 end,
371 },
372 {
373 id = "node24",
374 text = _"(Lie about the loss of the data cube)",
375 echo_text = false,
376 topic = "Deliver the cube",
377 code = function()
378 Tux:says(_"I think I lost the data cube.")
379 Npc:says(_"Come on, you've got to be kidding! ...")
380 Npc:says(_"So I will call one minion for this job. You are very useless, unable to bring a small thing.")
381 Npc:says(_"Get out of my sight!")
382 Tux:end_quest("Deliverance", _"I lied about the data cube and now Spencer thinks I lost it. I won a little time for people in cryonic stasis. But, I couldn't stop Spencer's project.")
383 Tux:add_xp(250)
384 hide("node21", "node22", "node23")
385 end_dialog()
386 end,
387 },
388 {
389 id = "node25",
390 text = _"How did you persuade Francis? Did you beat him up?",
391 topic = "Deliver the cube",
392 code = function()
393 Npc:says(_"No, nothing so violent. Let's just say I know more about Francis than he would like to remember.")
394 Npc:says(_"Francis is someone who is very understandable. I just had to find the right words.")
395 Npc:says(_"Anyway, we have nearly been close friends since.")
396 hide("node25")
397 end,
398 },
399 {
400 id = "node26",
401 text = _"Why didn't Francis want to do this task you gave him? What was it?",
402 topic = "Deliver the cube",
403 code = function()
404 Npc:says(_"We had an unfortunate misunderstanding, so we had a very hard time talking together.")
405 Npc:says(_"I wanted him to go through the people in cryonic freezing in the facility, and make a list of disposable ones and people unlikely to survive. This cube contains that list.")
406 Tux:says(_"Disposable people? Unlikely to survive? Can't they just stay in cryonics indefinitely?")
407 Npc:says(_"No. They take up a lot of space, and keeping them alive takes a lot of power, which is running out. Most of the people there are sick or dying anyway, which is why they're frozen in the first place. We can't afford to waste any resources.")
408 Npc:says(_"We even had to confiscate the town cook's macrowave oven battery, which means we can't eat warm food anymore. We needed it to keep the town's defenses up.")
409 Tux:update_quest("Deliverance", _"I learn incredible information. Apparently the data cube stored a list of people frozen in the cryonic facility. Spencer wants to dispose of some of them because keeping them alive uses up the town's power...")
410 hide("node26") show("node24")
411 end,
412 },
413 {
414 id = "node29",
415 text = _"I would like to talk about the Francis' cube.",
416 code = function()
417 Npc:says(_"Well, I'm listening to you. But you must be quick about it, I've no time to lose.")
418 Npc:says(_"If you found the data cube, just give it.")
419 if (Tux:has_item_backpack("Data cube")) then
420 show("node21", "node22")
421 else
422 show("node23")
423 end
424 hide("node29")
425 push_topic("Deliver the cube")
426 end,
427 },
428 {
429 id = "node37",
430 text = _"I've heard Richard obtained new information on the town.",
431 code = function()
432 Npc:says(_"Yes, that's right, and in fact it might be crucial. As you may have heard, the MS Office is defended by a disruptor shield. They open it only to let out new armies of bots.")
433 Npc:says(_"The data on the cube he obtained indicates the existence of a secret experimental facility in this region. Our findings suggest that they were testing some new form of disruptor shield for MS, so the shield can be controlled from that facility.")
434 Npc:says(_"If the information is true, then you can defeat the control droid and disable the shield permanently via some console or terminal.")
435 Npc:says(_"Then we should be able to get in.")
436 Npc:says(_"We know that MS had a firmware update system, which could be used to propagate a malicious update to disable all bots. It is very alluring, but to perform this trick you need to hack the control droid, which is in the heart of the HF. To enter HF you would have to disable the disruptor shield.")
437 Npc:says(_"This seems like a gift sent from the heavens. Cleaning the Hell Fortress is not going to be easy, though...")
438 hide("node37") show("node38")
439 end,
440 },
441 {
442 id = "node38",
443 text = _"I'd like to participate in this operation.",
444 code = function()
445 Npc:says(_"That's most kind of you to volunteer. So far, I've sent two scouts into the area. They have found the facility entrance and unlocked the gate.")
446 Npc:says(_"That is a good sign, because it shows that the key combinations from the data cube were correct.")
447 Npc:says(_"However, we lost contact with them shortly after they went inside. They also reported heavy bot resistance.")
448 Npc:says(_"I'd be glad if you could take a look. But use the utmost care. We can't afford to lose another guard.")
449 hide("node38") show("node39", "node40")
450 end,
451 },
452 {
453 id = "node39",
454 text = _"OK. I'll be careful. But I'll do it.",
455 code = function()
456 Npc:says(_"Good. The base entrance is somewhat hidden in the caves to the northeast. Best to use the north gate out of town, then head east, and turn north again along the shore.")
457 Npc:says(_"I wish you the best of luck for this operation. It might be that our survival depends on it. Don't wait for assistance.")
458 Npc:says(_"Try to get control over the disruptor shield if you can. The control droid should be somewhere on the lowest level of the installation. Simply destroying the droid might not suffice in disabling the shield, however there should be some terminal around to control it.")
459 Tux:add_quest("Opening access to MS Office", _"Spencer has revealed the information from the data cube evaluation to me. It seems there is an old military research facility north of the town. By defeating the control droid and using a nearby terminal, I should be able to control the disruptor shield at the facility. I can disable disruptor shield, fight my way through the Hell Fortress droids until I reach the main control droid and update it, thereby disabling all bots in the entire area around town in one fell swoop.")
460 change_obstacle_state("DisruptorShieldBaseGate", "opened")
461
462 -- Allows Tux to buy Tier 3 skills
463 Tamara_restock=true
464 sell_item("Source Book of Broadcast Blue Screen", 1, "Tamara")
465 sell_item("Source Book of Broadcast virus", 1, "Tamara")
466 sell_item("Source Book of Killer poke", 1, "Tamara")
467 sell_item("Source Book of Invisibility", 1, "Tamara")
468 sell_item("Source Book of Plasma discharge", 1, "Tamara")
469
470 hide("node39", "node40")
471 end,
472 },
473 {
474 id = "node40",
475 text = _"I don't feel like doing it now. I'd rather prepare some more.",
476 code = function()
477 Npc:says(_"Good. You should be well prepared if you intend to go.")
478 Npc:says(_"Also, there is no need to hurry with this. After all, the installation is not running away, so it's best to take a cautious approach.")
479 hide("node40")
480 end,
481 },
482 {
483 id = "node44",
484 text = _"It's done. Your soldiers were killed, but I managed to reach a computer terminal that controls the shield. Access to the bot factory is now open, after I changed the password on the terminal so as to prevent the bots from enabling the shield again.",
485 code = function()
486 Npc:says(_"Good. We cannot help you much in this final mission, but I can tell you what our recon teams gathered behind the factory doors. You will enter a zone that used to be a MS Office.")
487 Npc:says(_"They carried out some development there, and had part of their patching division and update management department. The actual factory is located behind the office.")
488 Npc:says(_"With a bit of luck, you might not need to access it. We know they have their update server in the office.")
489 Npc:says(_"If you can find it and get it to propagate a faulty update, this could suffice to stopping bots dead in their tracks.")
490 Npc:says(_"Look for the entrance of the office in the crystal fields. I will send a message to the guards so they let you pass. Then you will be on your own.", "NO_WAIT")
491 Npc:says(_"However I'll ask Richard to see if we can contact you as soon as you find the server so we know if you're alive and there is still hope, or if things are going to go back to the way they were before you were taken out of stasis sleep...")
492 Npc:says(_"Good luck.")
493 Tux:add_quest("Propagating a faulty firmware update", _"I can now enter Hell Fortress and find the upgrade server terminal. The fortress gates are in the Crystal Fields. Spencer told the guards to open the doors for me. He said he'd probably contact me when I found the server.")
494 Npc:says(_"Wait. I have a weapon here. It is not an Exterminator, but should save your life in the Hell Fortress.")
495 if (not has_met("Benjamin") or Benjamin_objective == "None") then
496 Npc:says(_"I originally planned to give you a gun, but our gunsmith, Benjamin, did not finished any prototype.")
497 Npc:says(_"We found this whip at the Hell Fortress. I'm not really sure what it was used for, but it should be a good weapon.")
498 Tux:add_item("Energy whip")
499 elseif (Benjamin_objective == "damage") then
500 Npc:says(_"Benjamin started trying to make laser pistols stronger by absorbing the heat, and he ended up creating plasma.")
501 Npc:says(_"It deals much more damage than it claims to, because it blasts. A nice gun, but not a pistol, unfortunately.")
502 Tux:add_item("Electro Laser Rifle")
503 elseif (Benjamin_objective == "firing") then
504 Npc:says(_"Benjamin kept trying to make the laser pistol shoot faster, even if that compromised the damage each hit causes.")
505 Npc:says(_"What he developed shoot so fast, that he could not make it stop. A nice gun, but not a pistol, unfortunately.")
506 Tux:add_item("Laser Pulse Cannon")
507 elseif (Benjamin_objective == "plasma") then
508 Npc:says(_"Benjamin gave up on laser pistols and started enhancing plasma pistols instead.")
509 Npc:says(_"He could not make the bullet faster, but the damage went sky high. A nice gun, but not a pistol, unfortunately.")
510 Tux:add_item("Plasma Cannon")
511 else
512 Npc:says("ERROR, Spencer NODE 44, Benjamin_objective not handled")
513 Tux:add_item("Exterminator") -- as if.
514 end
515
516 if (difficulty_level() > 2) then -- difficulty neither easy, nor normal, nor hard
517 Npc:says("ERROR, Spencer NODE 44, game difficulty not handled")
518 end
519 local dev_count = 2 - difficulty_level()
520 if (not difficulty_level() == 0) then
521 Tux:add_item("Plasma Shockwave Emitter", dev_count)
522 end
523 Npc:says(_"In the name of the Red Guard I wish you the best of luck!")
524 hide("node44") show("node45")
525 end,
526 },
527 {
528 id = "node45",
529 text = _"I will need some time to get myself ready before I clean up Hell Fortress.",
530 code = function()
531 Npc:says(_"You better be ready.")
532 hide("node45")
533 end,
534 },
535 {
536 id = "node50",
537 text = _"I found someone out in the desert.",
538 code = function()
539 Npc:says(_"Great, another mouth to feed.")
540 Npc:says(_"What is this person's name?")
541 hide("node50") show("node51")
542 end,
543 },
544 {
545 id = "node51",
546 text = _"Tania",
547 code = function()
548 if (tux_has_joined_guard) then
549 Npc:says(_"Well, since you are a guard member, I'll let you vouch for this Tania person.")
550 else
551 Npc:says(_"Well, we have enough food for now. I'll let this Tania person in.")
552 end
553
554 if (DocMoore:is_dead()) then
555 Npc:says(_"I'd say you should take her straight away to Doc Moore, but he was found dead earlier.")
556 Npc:says(_"You wouldn't happen to know anything about that, would you?")
557 if (killed_docmoore) then
558 show("node53")
559 end
560 show("node52", "node54")
561 else
562 Npc:says(_"You must take her straight away to Doc Moore. We can't have a disease breaking out.")
563 Spencer_Tania_decision = "doc_moore"
564 Tux:update_quest("Tania's Escape", _"Spencer said it was okay for Tania to enter the town, as long as she goes to see Doc Moore first thing. Now all I have to do is tell her and Pendragon.")
565 end
566 hide("node51")
567 end,
568 },
569 {
570 id = "node52",
571 text = _"No, of course not.",
572 code = function()
573 Npc:says(_"Good.")
574 Npc:says(_"I didn't think it was you, but you never know.")
575 Npc:says(_"About your friend, she can come in provided that she pulls her weight around here.")
576 Spencer_Tania_decision = "free"
577 if (killed_docmoore) then
578 Tux:update_quest("Tania's Escape", _"When I asked about Tania entering the town, Spencer confronted me about Doc Moore's death. I denied everything and he bought it! He says it is OK for Tania to enter the town: I should tell her and Pendragon.")
579 else
580 Tux:update_quest("Tania's Escape", _"When I asked about Tania entering the town, Spencer said Doc Moore was found dead! Oh, and Tania can enter the town. I should go tell her that.")
581 end
582 hide("node52", "node53", "node54")
583 end,
584 },
585 {
586 id = "node53",
587 text = _"He and I had a disagreement, which we settled.",
588 code = function()
589 Npc:says(_"I am the law here. If you have a problem, you come to me.")
590 if (tux_has_joined_guard) then
591 Npc:says(_"I'm going to strip you of your membership in the Red Guard.")
592 tux_has_joined_guard = false
593 change_obstacle_state("Main Gate Guardhouse", "closed")
594 Npc:says(_"Your friend can come in, but we will be watching the two of you closely.")
595 Spencer_Tania_decision = "free"
596 Tux:update_quest("Tania's Escape", _"When I asked about Tania entering the town, Spencer confronted me about Doc Moore's death. I told him the truth, and he kicked me out of the Red Guard. But he let Tania in, Now all I have to do is tell her and Pendragon.")
597 else
598 Npc:says(_"As the law, I pronounce you GUILTY of MURDER.")
599 Npc:says(_"The punishment is death.")
600 Tux:update_quest("Tania's Escape", _"When I asked about Tania entering the town, Spencer confronted me about Doc Moore's death. He found me guilty of murder, and sentenced me to death.")
601 set_faction_state("redguard", "hostile")
602 Tux:kill()
603 end_dialog()
604 end
605 hide("node52", "node53", "node54")
606 end,
607 },
608 {
609 id = "node54",
610 text = _"I killed him just to see what it was like. It was awesome.",
611 code = function()
612 Npc:says(_"You are a sociopath, and a danger to us all!")
613 Npc:says(_"We must stop you before you kill again.")
614 Tux:update_quest("Tania's Escape", _"When I asked about Tania entering the town, Spencer confronted me about Doc Moore's death. He found me too dangerous to live.")
615 set_faction_state("redguard", "hostile")
616 Tux:kill()
617 hide("node52", "node53", "node54")
618 end_dialog()
619 end,
620 },
621 {
622 id = "node60",
623 text = "BUG, REPORT ME! Spencer node60 -- Post Firmware Update",
624 code = function()
625 Npc:says(_"*Fizz*")
626 --; TRANSLATORS: can you hear me; %s = Tux:get_player_name()
627 Npc:says(_"*Crackle*n you hear me? Hello? %s?", Tux:get_player_name())
628 Tux:says(_"Spencer? How are you reaching me?")
629 Npc:says(_"You did it! I just can't... I can't believe you actually did it!")
630 Npc:says(_"The bots outside, they all just dropped! They're scrap metal!")
631 Npc:says(_"We're saved!")
632 Tux:says(_"Whew...")
633 Npc:says(_"But wait! It gets more interesting: we can actually have this conversation face to face.")
634 Npc:says(_"Stand by.")
635 add_obstacle(0, 33.5, 51.05, 282) --"Close" Spencer's office door
636 change_obstacle_type("spencer-opendoor", 321) --Make the obstacle standing for an open door invisible (321=pathblocker)
637 end_dialog()
638 show("node61")
639 end,
640 },
641 {
642 id = "node61",
643 text = _"Hey!",
644 code = function()
645 Npc:says(_"This must be the main server room. It's safer than an interstellar bunker.")
646 Npc:says(_"This is the source of all our suffering.")
647 Npc:says(_"You are truly a living legend, Linarian. I don't know how you did it. I don't know how we can thank you.")
648 Npc:says(_"You've given us life, and hope.")
649 change_obstacle_state("ServerRoomDoor", "opened")
650 hide("node61") show("node62", "node63", "node64")
651 end,
652 },
653 {
654 id = "node62",
655 text = _"What's going on? How did you get in here?",
656 code = function()
657 Npc:says(_"When you uploaded the firmware, every security component for this area just blacked out. Every network in range was suddenly open.")
658 Npc:says(_"Naturally, they were all running on the MegaSys operating system.")
659 if Tux:has_met("Richard") then
660 Npc:says(_"Richard is still back at the citadel; he's happier than a jaybird ever since we uncovered all this networking. He calls it a treasure.")
661 else
662 Npc:says(_"Our computer administrator at the citadel is as happy as he could be since all this secret networking popped up. He calls it a treasure.")
663 end
664 Npc:says(_"The firmware server was one of the things that were hidden in this network, and with all the obfuscations and defenses down, we not only could find it, but had full access.")
665 Npc:says(_"But the most interesting thing we uncovered is a secret teleportation network. It was very well-guarded, we never even knew it existed, but now it's open for us to use.")
666 Npc:says(_"My guess is, the corporate bastards who drove this sweatshop would use it to get in and out of work unnoticed. Grab the money and zap off to some island to relax.")
667 Tux:update_quest("Propagating a faulty firmware update", _"Neutralizing the bot threat in the area wasn't the only thing I'd succeeded in doing: every MegaSys-based security product within range is completely broken now. A new teleportation network was discovered by the Red Guard, which is why Spencer is standing next to me right now.")
668 hide("node62") show("node65")
669 end,
670 },
671 {
672 id = "node63",
673 text = _"I couldn't have done any different.",
674 code = function()
675 Npc:says(_"You are far too modest. I doubt anyone alive right now could have done it.")
676 Npc:says(_"But the work isn't done... Not even close. The entire galaxy is still at war.")
677 Npc:says(_"You saved our little town, and you've proven that we can win this thing.")
678 Npc:says(_"We can't rest now. It's going to be hard and dangerous, but the alternative is death for humanity.")
679 Npc:says(_"As for you, please rest a little at our Town, and then come straight to me, so we can carry on.")
680 Tux:update_quest("Propagating a faulty firmware update", _"*yawn* It wasn't easy, but the town is now safe. I still have a galaxy to save, though! I will only restock quickly at the town, and report again to Spencer.")
681 Spencer_node66=true
682 hide("node63", "node64")
683 end,
684 },
685 {
686 id = "node64",
687 text = _"I only did it for fun, really.",
688 code = function()
689 Npc:says(_"... Oh, it doesn't matter.")
690 Npc:says(_"I suppose no one's perfect...")
691 Npc:says(_"What matters is that we're alive - those of us left, anyway - we have supplies, and we can take what we need from the Fortress now.")
692 Npc:says(_"And, whether or not you intended to, you've proven that we have a chance against the bots. Something worth fighting for. Worth living for.")
693 Npc:says(_"You'll probably be happy to know that the entire galaxy is pretty much your playground now, Linarian. You'll have all the bots in the world to play with, and lots of opportunities to be a hero.")
694 Tux:says(_"Awesome!")
695 Npc:says(_"Please, rest a little at our Town, and then come straight to me, so we can carry on.")
696 Tux:update_quest("Propagating a faulty firmware update", _"I'm so cool. I saved a bunch of people and bashed a bunch of bots. And there's much more where both of those came from! I'm done here, I will quickly restock at town, and then it's time to go help the next dump. All I need to is ask Spencer where I should go next.")
697 Spencer_node66=true
698 hide("node63", "node64")
699 end,
700 },
701 {
702 id = "node65",
703 text = _"Can I use this teleportation network to return to town?",
704 code = function()
705 if Tux:has_met("Richard") then
706 Npc:says(_"Yes, I think you can. I'll contact Richard and tell him to ready the teleporter and link it back to the one in town.")
707 else
708 Npc:says(_"I believe you can, yes. I'll contact our computer expert and tell him to ready the teleporter and link it back to the one in town.")
709 end
710 Npc:says(_"But the way he explained it, this system is very limited by design: if the two teleporters are linked, using one will always take you to the other. So keep that in mind.")
711 Npc:says(_"We'll stay here for a while longer. This place still needs to be investigated.")
712 change_obstacle_type("59-Teleporter", 21)
713 hide("node65")
714 end,
715 },
716 {
717 id = "node66",
718 text = _"I'm ready. Just tell me what to do.",
719 code = function()
720 Npc:says(_"You've faced countless dangers so far. Are you sure you're willing to face more?")
721 Tux:says(_"Bring it on!")
722 Npc:says(_"That's exactly what I wanted to hear.")
723 Npc:says(_"Now listen carefully, this is the plan...")
724 Npc:says(_"We did some research and found out the MegaSys former president is still alive. And the personnel at our citadel was able to track him down! The only problem is the distance. It's not possible to teleport, but do not worry, we already thought on a solution!")
725 Npc:says(_"We found a stratopod, it's supposed to travel short - intra-planetary - distances. Probably someone came here on business and I guess that things didn't turn out so well for them.")
726 Tux:says(_"So I should take this \"stratopod\" and travel there to kick MS big boss for all the evil he brought us?")
727 Npc:says(_"Hm. I was thinking on asking questions, but that will work, too! However, do you know how to pilot?")
728 Tux:says(_"Erm...")
729 Npc:says(_"Thought so. A colleague from us will pilot, so you don't need to worry, he told me he is an ace at flying. He should already be on the craft, inclusive. Just walk on the stairs and it should be OK.")
730 Npc:says(_"He didn't have any certificate but maybe I should just limit my worrying. I'm pretty sure with him piloting it'll be a successful flight.")
731 Tux:end_quest("Propagating a faulty firmware update", _"The town is saved, but there's still a lot to do. I agreed to continue fighting the robot armies with the Red Guard.")
732 Npc:says(_"I'll drop you on the Landing Zone. Just move close to the ship, on the stairs, to board. It'll depart immediately.")
733 Tux:add_quest("A New Mission From Spencer", _"In order to interrogate the former MegaSys president, I need to go to the HF Landing Zone and climb the stairs from the Stratopod there. The pilot is already inside, and he'll bring me to next area which needs me.\n\n I am not sure what expects me there, so I should bring along a secondary weapon, unique items, lots of ammo, recovery items, and money. Ah, mastering some skills like repair is also interesting.")
734
735 -- Let's create the ship and open the gates - in case player want to explore further
736 add_obstacle(62, 64.0, 37.0, 501)
737 enable_event_trigger("All aboard!")
738 change_obstacle_state("HF-RoboFreighter-Gate01", "opened")
739 change_obstacle_state("HF-RoboFreighter-Gate02", "opened")
740 Tux:teleport("HF-LandingZone")
741
742 hide("node65", "node66")
743 Spencer_can_die = true
744 end_dialog()
745 end,
746 },
747 {
748 id = "node70",
749 text = _"Are there members of the Red Guard called Bob and Jim?",
750 code = function()
751 Npc:says(_"They are still alive?! They probably need help!")
752 Tux:says(_"Actually it seems that they are in pretty good shape.")
753 Npc:says(_"Hm... I sent them to find a portal. Did they find it?")
754 if (Tux_heard_Bob_and_Jim_story) then
755 Tux:says(_"Yeah!")
756 Npc:says(_"Excellent!")
757 else
758 Tux:says(_"Em... I'm not sure, but inside the room they were guarding I saw something like it.")
759 Npc:says(_"So they found the portal.")
760 end
761 Npc:says(_"How did they survive?")
762 Tux:says(_"Fortunately, the portal was inside a little fortress and they hid there.")
763 Npc:says(_"Good to hear that. Their mission was not only to find the portal, but to stay there and keep guarding it. So they both survived and keep helping us.")
764 Tux:says(_"Helping? What do you mean?")
765 Npc:says(_"They prevent more bots from teleporting to our continent.")
766 -- TODO: Spencer will later give Tux a quest for bringing them supplies and a radio-device for establishing connection; also he will tell Tux prehistory of portal.
767 Tux_told_Spencer_about_Bob_and_Jim = true
768 hide("node70")
769 end,
770 },
771 {
772 id = "node99",
773 text = _"I'll be going then.",
774 code = function()
775 if (not HF_FirmwareUpdateServer_Spencer) then
776 Npc:says(_"See you later.")
777 else
778 Npc:says(_"Come back soon. There's much to be done.")
779 end
780 end_dialog()
781 end,
782 },
783 }