Debian Codegraph @

data/storyline/act1/dialogs/Sorenson.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 = { "Mentally Unstable", "Brilliant", "Possessed" },
21 MARKERS = { NPCID1 = "Tamara" },
22 PURPOSE = "$$NAME$$ will help to improve Tux\'s abilities and sell skills books.",
23 BACKSTORY = "$$NAME$$ is one of the most brilliant programmers ever to have lived. A former Mega System employee, she is
24 rumoured to have sold her soul to the devil in order to improve her coding skills. Like all such deals, this one has
25 had consequences she could not have foreseen. It is said that she can be released from her burden, but that no human
26 could bear to release her. When she left Mega System, she ran a library with her sister. $$NAME$$ locked down the
27 town\'s teleport system after The Great Assault saving the town from being overrun by bots. $$NAME$$ speaks rather
28 broken English due to her obsessive coding.",
29 RELATIONSHIP = {
30 {
31 actor = "$$NPCID1$$",
32 text = "$$NAME$$ and $$NPCID1$$ are half-sisters who have not talked to each since $$NPCID1$$ locked $$NAME$$ in
33 her bedroom for staring into computer screens too much."
34 },
35 }
36 WIKI]]--
37
38 local Npc = FDrpg.get_npc()
39 local Tux = FDrpg.get_tux()
40
41 return {
42 FirstTime = function()
43 show("node20", "node30", "node40", "node50")
44 end,
45
46 EveryTime = function()
47 Tux:says(_"Um... Hello?")
48 Npc:says(_"AH! A Visitor! Come in! Come in!")
49 Tux:says(_"I think I should go now. Right now. See you later.")
50 Npc:says(_"No, don't go. I will not let you go before we talk. Important things.")
51 Npc:says(_"I can help you understand computers... Greater than ever before.")
52 show("node99")
53 end,
54
55 {
56 id = "node20",
57 text = _"Who are you?",
58 code = function()
59 Npc:says(_"I? Sorenson is a great computer person.")
60 Npc:says(_"Knows the deep codes. Walks the paths.")
61 Npc:says(_"Sees the light of all chips. Knows how to use every keyboard.")
62 Tux:says(_"Erm...")
63 Npc:says(_"Sees the bit. Knows the bytes. Explores the great networks.")
64 Npc:says(_"The best friend of the clean and pure code.")
65 Npc:says(_"The great light on the night sky of the hollow web of computer power.")
66 Tux:says(_"Yes, I get the idea...")
67 Npc:says(_"Seeker of clean languages. The great knower of obscure secrets.")
68 Npc:says(_"The one who speaks to hard drives. The best --")
69 Tux:says(_"I KNOW! I KNOW!")
70 Npc:says(_"Oh!")
71 Npc:says(_"Sorenson did not tell you most yet.")
72 Npc:says(_"She did not tell you she is the great controller of light.")
73 Npc:says(_"She did not tell you she is the walker of the dark corridors --")
74 Tux:says(_"STOP! STOP! I CANNOT TAKE THIS ANYMORE! MY HEAD HURTS!")
75 Npc:says(_"Apology is being extended by me. Sorenson overdid it.")
76 Npc:says(_"Sorenson the coder greets you.")
77 Npc:set_name("Sorenson - Mystery coder")
78 hide("node20")
79 end,
80 },
81 {
82 id = "node30",
83 text = _"Why are you like this? What happened to you?",
84 code = function()
85 Npc:says(_"Was learning COBOL. Pain. Torture. Horrible screaming.")
86 Npc:says(_"Sorenson asked for help. Many days and nights.")
87 Npc:says(_"Light arrived. Light offered help. Sorenson changed.")
88 Npc:says(_"Free person now.")
89 hide("node30") show("node31")
90 end,
91 },
92 {
93 id = "node31",
94 text = _"What is this COBOL?",
95 code = function()
96 Npc:says(_"COBOL is the mind-crippler.")
97 Npc:says(_"Don't use it. Forget the cursed name. COBOL is pain. COBOL is hate.")
98 hide("node31")
99 end,
100 },
101 {
102 id = "node40",
103 text = _"I see you have a huge source code book collection. Mind if I buy some from you?",
104 code = function()
105 Npc:says(_"Of course not. Trade is good.")
106 trade_with("Sorenson")
107 hide("node40") show("node41")
108 end,
109 },
110 {
111 id = "node41",
112 text = _"Can I take a look at your books again?",
113 code = function()
114 Npc:says(_"Yes. Sure. Of course.")
115 trade_with("Sorenson")
116 end,
117 },
118 {
119 id = "node50",
120 text = _"You got me curious. How can you help me understand computers better?",
121 code = function()
122 Npc:says(_"Simplicity! Sign this contract. No need to read it.")
123 Npc:says(_"You trust Sorenson, right?")
124 push_topic("Sorenson contract") show("node51", "node79")
125 end,
126 },
127 {
128 id = "node51",
129 text = _"Sure. I'll sign it.",
130 topic = "Sorenson contract",
131 code = function()
132 Npc:says(_"Go0d. H3re is th3 con7ract. S1gn it!")
133 Tux:says(_"Ok, here go --")
134 Npc:says(_"N0! 1n bl00d!")
135 hide("node51") show("node52", "node55", "node78")
136 end,
137 },
138 {
139 id = "node52",
140 text = _"Um... Your voice sounds strange. Is everything fine?",
141 topic = "Sorenson contract",
142 code = function()
143 Npc:says(_"519n 7h3 c0n7r4c7!!!!")
144 hide("node52") show("node53")
145 end,
146 },
147 {
148 id = "node53",
149 text = _"Please calm down. You must speak clearly and slowly. Please stop breathing smoke like that, it bothers my throat. And what is the deal with the red glowing eyes? You should see a doctor. ",
150 topic = "Sorenson contract",
151 code = function()
152 Npc:says(_"519n 17!!!!")
153 hide("node53")
154 end,
155 },
156 {
157 id = "node55",
158 text = _"Sure, no problem... Now, how shall I sign this?",
159 topic = "Sorenson contract",
160 code = function()
161 hide("node52", "node53", "node55", "node78", "node79")
162 show("node60", "node61", "node62", "node63", "node64", "node65", "node66")
163 end,
164 },
165 {
166 id = "node60",
167 text = _"Tux.",
168 echo_text = false,
169 topic = "Sorenson contract",
170 code = function()
171 next("node70")
172 end,
173 },
174 {
175 id = "node61",
176 text = _"Tux, the Linarian",
177 echo_text = false,
178 topic = "Sorenson contract",
179 code = function()
180 next("node70")
181 end,
182 },
183 {
184 id = "node62",
185 text = _"I accept the contract, Tux",
186 echo_text = false,
187 topic = "Sorenson contract",
188 code = function()
189 next("node70")
190 end,
191 },
192 {
193 id = "node63",
194 text = _"Elbereth",
195 echo_text = false,
196 topic = "Sorenson contract",
197 code = function()
198 --; TRANSLATORS: aaaa! It burns! I'm melting!
199 Npc:says(_"4444! 17 burn5! 7'm m3171n9!")
200 --; TRANSLATORS: aaaaaaaaaaaaaa
201 Npc:says(_"44444444444444444!")
202 Npc:drop_dead()
203 end,
204 },
205 {
206 id = "node64",
207 text = _"Francis",
208 topic = "Sorenson contract",
209 code = function()
210 --; TRANSLATORS: Ha! Your soul is mine, Franics!
211 Npc:says(_"H4! Y0ur s0ul 15 min3, Francis!")
212 --; TRANSLATORS: What? Not working?
213 Npc:says(_"Wh47? N07 w0rk1b9?")
214 Tux:says(_"Erm. I have a confession to make. My name is not Francis.")
215 Npc:says(_"N0000000000!!!!!!!")
216 npc_faction("crazy", _"COBOL Programmer - Madly Enraged")
217 hide("node64")
218 end_dialog()
219 end,
220 },
221 {
222 id = "node65",
223 text = _"The great destroyer of evil, the purger of all things foul, the friend of mankind, the third duke of Linarius, esquire, Doctorate of Computer Sciences, high priest of Kernelius, the ray of light in the darkness, the bender of spoons, His Great Magnificence, Tux.",
224 topic = "Sorenson contract",
225 code = function()
226 Npc:says(_"Huh?")
227 Tux:says(_"I... Don't feel... good... Blood loss... So... Cold...")
228 --; TRANSLATORS: NO! Idiot!
229 Npc:says(_"N0! Idi07!")
230 Tux:kill()
231 -- hide("node65")
232 end,
233 },
234 {
235 id = "node66",
236 text = _"X",
237 echo_text = false,
238 topic = "Sorenson contract",
239 code = function()
240 --; TRANSLATORS: No! Stupid illiterate penguin! DIE!!
241 Npc:says(_"N0! S7up1d illi73r4t3 p3n9u1n! D13!!")
242 hide("node66")
243 npc_faction("crazy", _"COBOL Programmer - Madly Enraged")
244 end_dialog()
245 end,
246 },
247 {
248 id = "node70",
249 --; TRANSLATORS: huh? I don't feel good.
250 text = _"Huh? I d0n'7 f33l g00d.",
251 topic = "Sorenson contract",
252 code = function()
253 Npc:says_random(_"Yes! I am free! At last I am free!",
254 _"Yes! I am free!",
255 _"Yes! I am free at last!")
256 --; TRANSLATORS: Wait... I feel... horrible...
257 Tux:says(_"W417... 1 f331... H0rr1b13...")
258 Npc:says(_"Yes, fool! You have freed me! I can finally die! Goodbye idiot!")
259 Tux:improve_skill("programming")
260 hide("node60", "node61", "node62", "node63", "node64", "node65", "node66")
261 Npc:drop_dead()
262 end,
263 },
264 {
265 id = "node78",
266 topic = "Sorenson contract",
267 text = _"In blood? Yuck. I am not going to do this, blood is too messy for a binding legal contract. Forget about it.",
268 code = function()
269 --; TRANSLATORS: Nooooooo! Time to die, mortal fool!
270 Npc:says(_"N00oo00oo0! T1m3 to d1e, m0rtal foo1!")
271 hide("node78")
272 npc_faction("crazy", _"COBOL Programmer - Madly Enraged")
273 end_dialog()
274 end,
275 },
276 {
277 id = "node79",
278 topic = "Sorenson contract",
279 text = _"There is no way I will sign something without reading it. Forget about it.",
280 code = function()
281 --; TRANSLATORS: Nooooooo! Time to die, mortal fool!
282 Npc:says(_"N00oo00oo0! T1m3 to d1e, m0rta1 foo1!")
283 hide("node79")
284 npc_faction("crazy", _"COBOL Programmer - Madly Enraged")
285 end_dialog()
286 end,
287 },
288 {
289 id = "node99",
290 text = _"I really must be going now. Goodbye.",
291 code = function()
292 Npc:says(_"Please come back later, Linarian. We must talk again.")
293 end_dialog()
294 end,
295 },
296 }