Debian Codegraph @

data/storyline/act1/dialogs/Ewalds_296.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 = { "Robotic", "Programmaticly Helpful" },
21 MARKERS = { NPCID1 = "Ewald" },
22 BACKSTORY = "$$NAME$$ is a Customer Service Droid. While in the storage room below the town bar, $$NAME$$ fell into a sinkhole.
23 Since then, $$NAME$$\'s previous programming has been used to prevent the town\'s backup nuclear reactor from failing. For now...",
24 RELATIONSHIP = {
25 {
26 actor = "$$NPCID1$$",
27 text = "$$NAME$$ was programmed to work in the town bar for its proprietor, $$NPCID1$$."
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(_"HI THERE! I'll be your humble servant for the duration of your stay at Ewald's bar! We hope you enjoy your stay here and come again! Don't forget to tell ALL your friends about us! I LOVE YOU!")
38 show("node0")
39 end,
40
41 EveryTime = function()
42 if (Tux:has_met("Ewalds_296")) then
43 Npc:says(_"HI THERE! I'll be your humble servant!", "NO_WAIT")
44 Tux:says(_"Uhh, yes, thank you, I know.")
45 end
46
47 if (Tux:has_item_backpack("Nuclear Science for Dummies IV")) then
48 show("node10")
49 end
50
51 if (Ewalds_296_reactor_fix) and
52 (not Ewalds_296_self_sacrifice) then
53 show("node11")
54 end
55
56 if (Ewalds_296_teleported) then
57 show("node30")
58 end
59
60 if (Tux:done_quest("An Explosive Situation")) then
61 hide("node30") show("node31")
62 end
63 end,
64
65 {
66 id = "node0",
67 text = _"Who are you? And why do you talk so... Friendly-like-ish?",
68 code = function()
69 Npc:says(_"I am a 296 Customer Service Droid, designed to make your day memorable!")
70 Tux:says(_"Uh huh. I just-", "NO_WAIT")
71 Npc:says(_"I have installed on me the Service with a Smile software package, copyrighted by MEGASYS CORPORATION, to make sure I'm REALLY happy and appealing to customers!")
72 Npc:says(_"May I interest you in reading the license to you? Perhaps the terms of usage? The privacy policy?")
73 Tux:says(_"Uh, no, I'm fine.")
74 Npc:says(_"Oh, that's a real shame, sir and or madam! We have a special Chef's Surprise today! Would you be interested in-", "NO_WAIT")
75 Tux:says(_"No, I'm fine, really!")
76 hide("node0") show("node1", "node99")
77 end,
78 },
79 {
80 id = "node1",
81 text = _"What is this place? What are you doing with that funny-looking tool? WHAT VILE PLOTS HAVE YOU BEEN BREWING HERE?!",
82 code = function()
83 Npc:says(_"Our GREAT and SUPER AWESOME barman EWALD has been brewing fantastic drinks for your enjoyment-", "NO_WAIT")
84 Tux:says(_"That's NOT what I meant!")
85 hide("node1") show("node2", "node3", "node9")
86 end,
87 },
88 {
89 id = "node2",
90 text = _"I'm giving you one chance to explain yourself, bot. You'd better make it quick.",
91 code = function()
92 Npc:says(_"My Advanced Nuclear Maintenance Program v0.93 tells me that this is a standard Parafunken Triple-Core X41Z5 Nuclear Reactor Backup Power supply. Would you be interested in it?")
93 Tux:says(_"Your... what? Did Ewald actually install that on you?")
94 Npc:says(_"Absolutely!")
95 Npc:says(_"The tool I am holding is a SUPER AWESOME standard-issue Parafunken Geiger Counter. May I suggest a sample?")
96 Tux:says(_"A super awesome- I mean, a Geiger counter? To measure radiation? Interesting. It's making all those funny clicking sounds... What is it saying?")
97 Npc:says(_"It is saying the reactor is nearing terminal radiation overload! AWESOME!")
98 Tux:add_quest("An Explosive Situation", _"I found a 296 belonging to Ewald in the maintenance tunnels underneath the town. It claims to be monitoring a damaged nuclear reactor.")
99 hide("node2", "node3") show("node4", "node5", "node16")
100 end,
101 },
102 {
103 id = "node3",
104 text = _"DIE, YOU EVIL PIECE OF SCRAP METAL!",
105 code = function()
106 --; TRANSLATORS: sir or madam
107 Npc:says(_"Sir or ma-")
108 Tux:says(_"DIE!")
109 Npc:drop_dead()
110 end_dialog()
111 end,
112 },
113 {
114 id = "node4",
115 text = _"Terminal radiation overload? What in the name of ice have you done!?",
116 code = function()
117 Npc:says(_"I've been trying to extract the expired-", "NO_WAIT")
118 Tux:says(_"You... You've been sitting down here, plotting to kill everyone!")
119 next("node3")
120 end,
121 },
122 {
123 id = "node5",
124 text = _"Terminal radiation overload? Isn't that a bit... Dangerous?",
125 code = function()
126 Npc:says(_"My Maintenance Program v0.93 Glossary tells me the condition of 'Terminal Radiation Overload' can cause a nuclear explosion and EXTREME DEATH!")
127 Tux:says(_"Oh. Nice. Does it actually say 'extreme death' in there?")
128 Npc:says(_"It most certainly does! This program is the BEST! We have it in 5 different flavors! Care to try some?")
129 Tux:says(_"... Thanks, I think I'll pass.")
130 Tux:says(_"But... If this nuclear reactor is about to explode... The town up there...")
131 Npc:says(_"My data on 'Nuclear Explosion' says it will vaporize ANYTHING within several hundred kilometers! The entire area will be UNINHABITABLE for several decades! Would you like to order anything?")
132 Tux:update_quest("An Explosive Situation", _"Ewald's 296 has assured me that the nuclear reactor is about to explode and destroy the town! I have to do something!")
133 hide("node4", "node5") show("node6", "node7")
134 end,
135 },
136 {
137 id = "node6",
138 text = _"Why aren't you calling someone? Why aren't you trying to fix this? You have a maintenance program!",
139 code = function()
140 Npc:says(_"You would like to see my manager? I don't think that would be necessary, Dave. I mean, sir and or madam.")
141 Tux:says(_"Fine, don't call anyone, but fix this thing! It's unstable!")
142 Npc:says(_"I've been trying to extract the expired graphite module and replace it with a BRAND NEW, CHEAP one! But my maintenance program does not have data on 'Graphite Module'. I am afraid I can't do it, Dave.")
143 Npc:says(_"... Sir and or madam.")
144 hide("node6") show("node8")
145 end,
146 },
147 {
148 id = "node7",
149 text = _"I suppose I might as well order something while I'm here. Give me the menu, please.",
150 code = function()
151 Npc:says(_"I'm sorry, sir and or madam, we have no menu at the moment.")
152 Tux:says(_"All right, then give me some cold water.")
153 Npc:says(_"I'm sorry, sir and or madam, we're fresh out of water.")
154 Tux:says(_"But you just offered me...")
155 Npc:says(_"Sorry!")
156 hide("node7")
157 end,
158 },
159 {
160 id = "node8",
161 text = _"We need to do something. We can't just sit here and wait for it to blow up!",
162 code = function()
163 Npc:says(_"My DELICIOUS database is insufficient to repair the radiation leak and replace the module!")
164 Tux:says(_"All right, so you need more data... How about a sourcebook? Would that help?")
165 Npc:says(_"The Maintenance program contains references to the popular Subatomic and Nuclear Science for Dummies series, volume IV.")
166 Tux:says(_"Subatomic and Nuclear Science for Dummies, volume IV?. Maybe someone in town has it. I have to go now, there's no time to lose!")
167 Npc:says(_"Would you like the check?")
168 Ewalds_296_needs_sourcebook = true
169 Tux:update_quest("An Explosive Situation", _"If I can get a copy of Subatomic and Nuclear Science for Dummies, Volume IV, the 296 may be able to stop the explosion. I hope someone in town has it!")
170 hide("node8")
171 end_dialog()
172 end,
173 },
174 {
175 id = "node9",
176 text = _"How on Earth did you get here?",
177 code = function()
178 Npc:says(_"While our SUPER AWESOME barman EWALD was restoring his biological energy supply, I went down to the basement to refill the bar taps and get some more soft and tender napkins for our WONDERFUL customers!")
179 Npc:says(_"My balance mechanism suddenly went WILD. The ground started SHAKING and the next thing I knew, I was FALLING!")
180 Tux:says(_"The floor must have given way. From what I've seen, the whole tunnel system isn't very stable.")
181 Npc:says(_"I was looking for LOVELY customers to serve and care for. Then I found this BEAUTIFUL chamber, with this EXPLOSIVE reactor!")
182 hide("node9")
183 end,
184 },
185 {
186 id = "node10",
187 text = _"I have the sourcebook here. Look up whatever you need.",
188 code = function()
189 Npc:says(_"[b]Processing data, please wait... Updating database, this may take a while...[/b]")
190 Npc:says(_"[b]To adjust to the changes, the system must restart.[/b]")
191 Npc:says(_"[b]BEEP![/b]")
192 Tux:says(_". . .")
193 Npc:says(_"... HI THERE! I'll be your humble servant for the duration of your stay in-", "NO_WAIT")
194 Tux:says(_"THE REACTOR! What about the reactor? Can you replace the module now?")
195 Npc:says(_"Yes, the reactor! Your order has been processed, sir and or madam! Please wait patiently!")
196 Ewalds_296_reactor_fix = true
197 Tux:update_quest("An Explosive Situation", _"I gave the book to Ewald's 296. Now all I can do is wait while it attempts to repair the reactor.")
198 Tux:del_item("Nuclear Science for Dummies IV")
199 hide("node10")
200 end_dialog()
201 end,
202 },
203 {
204 id = "node11",
205 text = _"Well? Is the reactor fixed?",
206 code = function()
207 Npc:says(_"My analysis of the reactor determines the graphite module has melted and can not be replaced.")
208 Npc:says(_"The reactor must SPECTACULARLY self-destruct to prevent a nuclear explosion, which would be NOT COOL!")
209 Tux:says(_"Oh, so all we had to do all this time was to blow up the reactor. Great. Well, set the timer and let's get out of here!")
210 Npc:says(_"The self-destruct mechanism is flawed, and the countdown can not function properly. The mechanism must be operated manually.")
211 Tux:says(_"Manually? You mean someone has to stay here and make sure it blows up?")
212 Npc:says(_"Affirmative.")
213 Npc:says(_"... My maintenance program contains the required data for the procedure.")
214 Tux:says(_"You're... Volunteering to do it? But... You'll-", "NO_WAIT")
215 Npc:says(_"Unit 296 will be terminated.")
216 hide("node11", "node99") show("node12", "node13")
217 end,
218 },
219 {
220 id = "node12",
221 text = _"OK then, have fun. See you!",
222 code = function()
223 Npc:says(_"Of course... Have a nice day.")
224 Tux:says(_"Yeah, sure. Crazy bot.")
225 Tux:update_quest("An Explosive Situation", _"The 296 has volunteered to sacrifice itself in order to safely destroy the reactor. It might be admirable, if it weren't a (particularly annoying) bot.")
226 Ewalds_296_self_sacrifice = true
227 hide("node7", "node9", "node12", "node13", "node16") show("node99")
228 end_dialog()
229 end,
230 },
231 {
232 id = "node13",
233 text = _"No. No, I won't let you do it! I can't let you die!",
234 code = function()
235 Npc:says(_"Only this version of the program-", "NO_WAIT")
236 Tux:says(_"I don't care! You're willing to sacrifice yourself to save the people up there. That qualifies as a bot worth saving in my eyes.")
237 Tux:says(_"I am not letting you die.")
238 Npc:says(_"You must not try to stop me, sir and or madam.")
239 hide("node12", "node13") show("node14", "node15")
240 end,
241 },
242 {
243 id = "node14",
244 text = _"I am going to save you, even if... Even if I have to hack you and drag you all the way up!",
245 code = function()
246 Npc:says(_"You wish to fight, sir and or madam?")
247 Tux:says(_"I don't want to hurt you. Follow me, and we can think of a better way to do this.")
248 Npc:says(_"Negative. The reactor can only be safely destroyed using the manual self-destruction mechanism.")
249 Tux:says(_"All right then. I guess I'll just have to force you to come.")
250 Npc:says(_"I cannot allow sir and or madam to come to harm.")
251 Tux:update_quest("An Explosive Situation", _"The 296 bravely volunteered to sacrifice itself in order to blow the reactor up safely. I wasn't about to let it throw its life away like that, but as I prepared to hack it and force it to follow me, I was suddenly teleported into town! Wait... Was that an explosion? Oh no...")
252 Ewalds_296_self_sacrifice = true
253 Ewalds_296_teleported = true
254 Tux:teleport("TeleportHomeTarget")
255 Npc:teleport("296TeleportTarget")
256 hide("node7", "node9", "node12", "node14", "node15", "node16") show("node30", "node99")
257 end_dialog()
258 end,
259 },
260 {
261 id = "node15",
262 text = _"... You're sure you want to do this?",
263 code = function()
264 Npc:says(_"There is no other way, sir and or madam.")
265 Tux:says(_"I understand.")
266 Tux:says(_"Good luck, 296. You won't be forgotten.")
267 Npc:says(_"Thank you, sir and or madam.")
268 Npc:says(_"I must go now. Goodbye.")
269 Tux:update_quest("An Explosive Situation", _"The 296 has bravely volunteered to sacrifice itself in order to blow the reactor up safely. A very courageous droid - I'm sorry to see it go.")
270 Ewalds_296_self_sacrifice = true
271 hide("node7", "node9", "node12", "node14", "node15", "node16") show("node99")
272 end_dialog()
273 end,
274 },
275 {
276 id = "node16",
277 text = _"What's that smashed droid there?",
278 code = function()
279 Npc:says(_"That is a REALLY FLAT 476 Maintenance droid! I found it when I first came here!")
280 Npc:says(_"According to the reactor's BORING repair log, the 476 was supposed to make a monthly system check FIVE DAYS AGO!")
281 Tux:says(_"Oh, great. The one droid that was keeping the reactor in check is now a metallic pancake.")
282 Npc:says(_"We offer DELICIOUS pancakes-", "NO_WAIT")
283 Tux:says(_"I'm not interested!")
284 hide("node16")
285 end,
286 },
287 {
288 id = "node30",
289 text = _"Erm... But didn't you... Uh...",
290 code = function()
291 Npc:says(_"Allow me to clear up your confusion, sir and or madam!")
292 Npc:says(_"My Nick of Time software package allowed me to tap into the town's teleportation network.")
293 Npc:says(_"This COMPLETELY AWESOME set of subroutines let me teleport in an iron bar to take my place at the last possible moment!")
294 Tux:says(_"And now you're-", "NO_WAIT")
295 Npc:says(_"Back in the employ of the GREAT and SUPER AWESOME Ewald!")
296 Tux:says(_"Well, I'm glad to see you're not destroyed.")
297 Tux:end_quest("An Explosive Situation", _"I found Ewald's 296 alive and well in Ewald's bar! I was sure it was destroyed in that explosion I heard, but it's safe and sound. Well, I guess all's well that ends well.")
298 Tux:add_xp(1500)
299 show("node31") hide("node30")
300 end,
301 },
302 {
303 id = "node31",
304 text = _"So, 296, how's it going?",
305 code = function()
306 Npc:says(_"Great, sir and or madam! The business is flourishing and everything is AMAZINGLY back to normal!")
307 Npc:says(_"Would sir and or madam be interested in a refreshing drink, ON THE HOUSE?")
308 Tux:says(_"Why, thank you!")
309 Tux:heat(-50)
310 Npc:says(_"Would sir and or madam want any other service?")
311 if (not Ewalds_296_has_ewalds_password) then
312 show("node32")
313 end
314 show("node33") hide("node31")
315 end,
316 },
317 {
318 id = "node32",
319 text = _"Hmm... How about... Ewald's password?",
320 code = function()
321 Npc:says(_"Our MAGNIFICENT bartender EWALD has an UNBREAKABLE password! His account is the most secure EVER! NO ONE except for him can get on it!")
322 Tux:says(_"What's the password?")
323 Npc:says(_"Five asterisks!")
324 Tux:says(_"...")
325 Npc:says(_"... Maybe I shouldn't have said that.")
326 Ewalds_296_has_ewalds_password = true
327 hide("node32")
328 end,
329 },
330 {
331 id = "node33",
332 text = _"I'd like another drink, please.",
333 code = function()
334 Npc:says(_"Certainly! This one's on the house!")
335 Tux:heat(-10)
336 end,
337 },
338 {
339 id = "node99",
340 text = _"Well, I should really be going now.",
341 code = function()
342 Npc:says_random(_"Thank you, come again!",
343 _"Tell your friends about us!",
344 _"We hope you've enjoyed our service!")
345 end_dialog()
346 end,
347 },
348 }