| 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", "Focused", "Vengeful" }, |
| 21 |
MARKERS = { NPCID1 = "Geist", }, |
| 22 |
PURPOSE = "$$NAME$$ improves Tux\'s skills.", |
| 23 |
BACKSTORY = "$$NAME$$ and $$NPCID1$$ have become bot hunters after the loss their mother to a bot attack. $$NAME$$ use to |
| 24 |
construct bots, and now finances himself by recovering bot parts and selling them. He speaks broken English (with some |
| 25 |
German). His family name is Fleischer (in English - \"butcher\"). $$NAME$$ is mistrustful of the Red Guard.", |
| 26 |
RELATIONSHIP = { |
| 27 |
{ |
| 28 |
actor = "$$NPCID1$$", |
| 29 |
text = "$$NPCID1$$ and $$NAME$$ are brothers." |
| 30 |
}, |
| 31 |
} |
| 32 |
WIKI]]-- |
| 33 |
|
| 34 |
local Npc = FDrpg.get_npc() |
| 35 |
local Tux = FDrpg.get_tux() |
| 36 |
|
| 37 |
return { |
| 38 |
FirstTime = function() |
| 39 |
if (HF_FirmwareUpdateServer_uploaded_faulty_firmware_update) then |
| 40 |
show("Engel_postfirmwareupdate_FirstTime") |
| 41 |
else |
| 42 |
show("node0", "node6") |
| 43 |
end |
| 44 |
end, |
| 45 |
|
| 46 |
EveryTime = function() |
| 47 |
if ((HF_FirmwareUpdateServer_uploaded_faulty_firmware_update) and (not Engel_post_firmware_update)) then |
| 48 |
show("Engel_postfirmwareupdate") |
| 49 |
elseif (Tux:get_program_revision("Extract bot parts") > 0) then |
| 50 |
show("node18") |
| 51 |
end |
| 52 |
show("node99") |
| 53 |
end, |
| 54 |
|
| 55 |
{ |
| 56 |
id = "node0", |
| 57 |
text = _"Hi! I'm new here. ", |
| 58 |
code = function() |
| 59 |
--; TRANSLATORS: Fleischer is a name, but also means "butcher" |
| 60 |
Npc:says(_"Hello. We are the Fleischer brothers.") |
| 61 |
--; TRANSLATORS: Engel = Angel, Geist = Ghost or Spirit |
| 62 |
Npc:says(_"I am Engel. He is Geist, and he does not know the language.") |
| 63 |
Npc:set_name("Engel - Hunter") |
| 64 |
Geist:set_name("Geist - Hunter") |
| 65 |
hide("node0") show("node1") |
| 66 |
end, |
| 67 |
}, |
| 68 |
{ |
| 69 |
id = "node1", |
| 70 |
text = _"What are you doing here?", |
| 71 |
code = function() |
| 72 |
Npc:says(_"Revenge.") |
| 73 |
Npc:says(_"The bots have killed our mother. Now we kill them.") |
| 74 |
Npc:says(_"No mercy. We hunt them.") |
| 75 |
hide("node1") show("node2", "node11", "node13") |
| 76 |
end, |
| 77 |
}, |
| 78 |
{ |
| 79 |
id = "node2", |
| 80 |
text = _"Can I help you somehow?", |
| 81 |
code = function() |
| 82 |
--; TRANSLATORS: Nein = No |
| 83 |
Npc:says(_"Nein. Let us die as warriors. That is all we ask for.") |
| 84 |
hide("node2") show("node3") |
| 85 |
end, |
| 86 |
}, |
| 87 |
{ |
| 88 |
id = "node3", |
| 89 |
text = _"If you keep standing here more bots will come and they will kill you. Go somewhere safe, and set up defense there.", |
| 90 |
echo_text = false, |
| 91 |
code = function() |
| 92 |
Tux:says(_"If you keep standing here more bots will come and --") |
| 93 |
--; TRANSLATORS: Sehr gut = Very good or very well. |
| 94 |
Npc:says(_"Sehr gut. Let them come. We are ready.") |
| 95 |
Npc:says(_"What a beautiful day. Yes.") |
| 96 |
hide("node3") show("node5") |
| 97 |
end, |
| 98 |
}, |
| 99 |
{ |
| 100 |
id = "node5", |
| 101 |
text = _"You are insane. Get out of here while you still can.", |
| 102 |
code = function() |
| 103 |
Npc:says(_"No.") |
| 104 |
Npc:says(_"Every day since this mess started I come here to fight the bots.") |
| 105 |
Npc:says(_"Today will be no different.") |
| 106 |
Npc:says(_"Do not try to stop us. We have our rifles loaded.") |
| 107 |
hide("node5") show("node7") |
| 108 |
end, |
| 109 |
}, |
| 110 |
{ |
| 111 |
id = "node6", |
| 112 |
text = _"Where can I get some help?", |
| 113 |
code = function() |
| 114 |
Npc:says(_"Nowhere. This is the end of the world. There is no help.") |
| 115 |
Npc:says(_"There is a town a bit south from here, but if I were you, I would not go there.") |
| 116 |
--; TRANSLATORS: Rot = red |
| 117 |
Npc:says(_"The Rot Guard is the ruler there, and cruelty is their solution to everything.") |
| 118 |
Npc:says(_"Real freedom is really dead.") |
| 119 |
hide("node6") |
| 120 |
end, |
| 121 |
}, |
| 122 |
{ |
| 123 |
id = "node7", |
| 124 |
text = _"You guys are totally nuts. Get a life.", |
| 125 |
echo_text = false, |
| 126 |
code = function() |
| 127 |
Tux:says(_"You guys are tota --") |
| 128 |
Npc:says(_"WHAT?! What is it that you want to say?") |
| 129 |
Tux:says(_"Erm... I --") |
| 130 |
--; TRANSLATORS: Backpfeife = Slap in the face; Gesicht = face / backpfeigengesicht: a face badly in need of a slap into it |
| 131 |
Npc:says(_"WHAT!? SPIT IT OUT, BACKPFEIFENGESICHT!") |
| 132 |
Tux:says(_"Er... You guys are really great and I admire your bravery in the face of certain death.") |
| 133 |
--; TRANSLATORS: donner = thunder; wetter = weather : Thunderstorm; here 'Donnerwetter' means "wow!". |
| 134 |
Npc:says(_"Donnerwetter, you are a funny one.") |
| 135 |
Npc:says(_"I hope that one day we shall meet again, maybe in a better time.") |
| 136 |
--; TRANSLATORS: -- gut = good |
| 137 |
Npc:says(_"Maybe then you will tell us other gut jokes that you know.") |
| 138 |
Npc:says(_"Maybe one day...") |
| 139 |
hide("node7") |
| 140 |
end, |
| 141 |
}, |
| 142 |
{ |
| 143 |
id = "node11", |
| 144 |
text = _"What did you use to do before you became a hunter?", |
| 145 |
code = function() |
| 146 |
Npc:says(_"I was a bot constructor. Built the killers of my mother.") |
| 147 |
Npc:says(_"Now I sell the parts that I remove from the bots to buy more ammunition and food.") |
| 148 |
hide("node11") show("node12", "node14") |
| 149 |
end, |
| 150 |
}, |
| 151 |
{ |
| 152 |
id = "node12", |
| 153 |
text = _"I want to know how to extract modules from the bots.", |
| 154 |
code = function() |
| 155 |
if (Tux:get_program_revision("Extract bot parts") > 4) then |
| 156 |
--; TRANSLATORS: schon = already , alles = everything/all |
| 157 |
Npc:says(_"I schon told you alles I know about that.") |
| 158 |
hide("node12", "node15") |
| 159 |
else |
| 160 |
Engel_offered_extraction_skill = true |
| 161 |
Npc:says(_"Yes.") |
| 162 |
--; TRANSLATORS: Schaltkreise = circuits |
| 163 |
Npc:says(_"I will sell the information for a lot of Schaltkreise.") |
| 164 |
Npc:says(_"Interested?") |
| 165 |
show("node15", "node98") |
| 166 |
push_topic("Extract bot parts") |
| 167 |
end |
| 168 |
end, |
| 169 |
}, |
| 170 |
{ |
| 171 |
id = "node13", |
| 172 |
text = _"Can I join your hunt?", |
| 173 |
code = function() |
| 174 |
--; TRANSLATORS: nein = no |
| 175 |
Npc:says(_"Nein. Our problem. Our hunt.") |
| 176 |
hide("node13") |
| 177 |
end, |
| 178 |
}, |
| 179 |
{ |
| 180 |
id = "node14", |
| 181 |
text = _"What happens to these bot parts?", |
| 182 |
code = function() |
| 183 |
Tux:says(_"Are they used to build other bots?") |
| 184 |
--; TRANSLATORS: bauen = to build, to construct ; in this context more like 'create' ;; nette = nice |
| 185 |
Npc:says(_"Most of them are used to bauen little nette gadgets.") |
| 186 |
Npc:says(_"You can use them to make weapons better or make you stronger.") |
| 187 |
Tux:says(_"How does this work?") |
| 188 |
Npc:says(_"I don't know.") |
| 189 |
Npc:says(_"But these gadgets are very nice for making your equipment better.") |
| 190 |
Tux:says(_"So they are kind of add-ons?") |
| 191 |
Npc:says(_"Yes.") |
| 192 |
--; TRANSLATORS: Stadtmenschen = townspeople |
| 193 |
Npc:says(_"Ask the Stadtmenschen if you want to know more.") |
| 194 |
|
| 195 |
if (not Tux:has_met("Dixon")) then |
| 196 |
--; TRANSLATORS: Rot = red |
| 197 |
Npc:says(_"I think the Rot Guard makes them.") |
| 198 |
--; TRANSLATORS: Gluck (should actually be 'Glueck' but there is no ue character in the font) = luck, fortune |
| 199 |
Npc:says(_"If you have Gluck, they won't kill you directly.") |
| 200 |
end |
| 201 |
|
| 202 |
Npc:says(_"But I don't know more about these gadgets.") |
| 203 |
Npc:says(_"Asking me more questions about that makes no sense...") |
| 204 |
hide("node14") |
| 205 |
end, |
| 206 |
}, |
| 207 |
{ |
| 208 |
id = "node15", |
| 209 |
text = _"I'm ready. Please show me how to extract bot parts. (costs 50 circuits, 1 training point)", |
| 210 |
topic = "Extract bot parts", |
| 211 |
code = function() |
| 212 |
next("node17") |
| 213 |
end, |
| 214 |
}, |
| 215 |
{ |
| 216 |
id = "node17", |
| 217 |
topic = "Extract bot parts", |
| 218 |
code = function() |
| 219 |
local rev = Tux:get_program_revision("Extract bot parts") |
| 220 |
|
| 221 |
if (rev > 4) then -- Max level |
| 222 |
next("node70") |
| 223 |
elseif (Tux:can_train(50, 1)) then |
| 224 |
Tux:del_gold(50) |
| 225 |
Tux:del_points(1) |
| 226 |
Tux:improve_program("Extract bot parts") |
| 227 |
next("node" .. 20 + 10 * rev) -- Learn next rev; shows one of the nodes 20, 30, 40, 50, 60 |
| 228 |
else -- Can't train |
| 229 |
if (Tux:get_gold() >= 50) then -- Training points were the problem |
| 230 |
Npc:says(_"Hmmm...") |
| 231 |
Npc:says(_"You look green. Toughen up. Get some experience, kill some bots.") |
| 232 |
Npc:says(_"Then we can talk.") |
| 233 |
else -- No $$$ |
| 234 |
Npc:says(_"Hmmm...") |
| 235 |
--; TRANSLATORS: No money, no help. |
| 236 |
Npc:says(_"Kein Geld, keine Hilfe.") |
| 237 |
Npc:says(_"Come back with some circuits.") |
| 238 |
end |
| 239 |
|
| 240 |
pop_topic() -- "Extract bot parts" |
| 241 |
end |
| 242 |
end, |
| 243 |
}, |
| 244 |
{ |
| 245 |
id = "node18", |
| 246 |
text = _"Your lessons are very helpful, but at the same time difficult to understand.", |
| 247 |
code = function() |
| 248 |
Npc:says(_"If you want me to repeat something, don't hesitate to ask.") |
| 249 |
local rev = Tux:get_program_revision("Extract bot parts") |
| 250 |
for i = 0, 4 do |
| 251 |
if (rev > i) then show("node" .. 19 + 10*i) else break end -- show some of the nodes 19, 29, 39, 49, 59 |
| 252 |
end |
| 253 |
push_topic("Extract bot parts") |
| 254 |
end, |
| 255 |
}, |
| 256 |
{ |
| 257 |
id = "node19", |
| 258 |
text = _"Could you please repeat the lesson about Entropy Inverters?", |
| 259 |
topic = "Extract bot parts", |
| 260 |
code = function() |
| 261 |
hide("node19") next("node20") |
| 262 |
end, |
| 263 |
}, |
| 264 |
{ |
| 265 |
id = "node20", -- 1st LESSON |
| 266 |
topic = "Extract bot parts", |
| 267 |
code = function() |
| 268 |
Npc:says(_"Let us start with Entropy Inverters. This is quite simple.") |
| 269 |
--; TRANSLATORS: sehr = very |
| 270 |
Npc:says(_"Just take a hammer and hit the bot sehr hard on the head.") |
| 271 |
Npc:says(_"When you have the head open wide, look around for a part which looks like two circles around a cube. That is what you are looking for.") |
| 272 |
end, |
| 273 |
}, |
| 274 |
{ -- @TODO: add some more german stuff to the following sections... |
| 275 |
id = "node29", |
| 276 |
text = _"What was that about Plasma Transistors?", |
| 277 |
topic = "Extract bot parts", |
| 278 |
code = function() |
| 279 |
hide("node29") next("node30") |
| 280 |
end, |
| 281 |
}, |
| 282 |
{ |
| 283 |
id = "node30", -- 2nd LESSON |
| 284 |
topic = "Extract bot parts", |
| 285 |
code = function() |
| 286 |
Npc:says(_"How about... Plasma Transistors? Trivial.") |
| 287 |
Npc:says(_"Remove the bot's engine and look around somewhere close to the battery.") |
| 288 |
Npc:says(_"Plasma Transistors are shaped like the letter Y. Just rip them out, it's safe.") |
| 289 |
end, |
| 290 |
}, |
| 291 |
{ |
| 292 |
id = "node39", |
| 293 |
text = _"I need a refreshing of my knowledge about Superconductors.", |
| 294 |
topic = "Extract bot parts", |
| 295 |
code = function() |
| 296 |
hide("node39") next("node40") |
| 297 |
end, |
| 298 |
}, |
| 299 |
{ |
| 300 |
id = "node40", -- 3rd LESSON |
| 301 |
topic = "Extract bot parts", |
| 302 |
code = function() |
| 303 |
Npc:says(_"Hmmm... Ah, gut. Superconductors.") |
| 304 |
Npc:says(_"They are relatively easy to get out.") |
| 305 |
Npc:says(_"Look around the electric system. Power coils, capacitors, generators and the like. Usually there are plenty of sehr gut parts there.") -- sehr gut = very good |
| 306 |
Npc:says(_"Wear rubber gloves. Just in case, you know.") |
| 307 |
end, |
| 308 |
}, |
| 309 |
{ |
| 310 |
id = "node49", |
| 311 |
text = _"I would like to hear again something about Antimatter-Matter Converters.", |
| 312 |
topic = "Extract bot parts", |
| 313 |
code = function() |
| 314 |
hide("node49") next("node50") |
| 315 |
end, |
| 316 |
}, |
| 317 |
{ |
| 318 |
id = "node50", -- 4th LESSON |
| 319 |
topic = "Extract bot parts", |
| 320 |
code = function() |
| 321 |
Npc:says(_"I will tell you everything about Antimatter-Matter Converters.") |
| 322 |
Npc:says(_"Yes... Converters are a problem.") |
| 323 |
Npc:says(_"They are easy to find, all you have to do is to get to the engine. But you must remember something very important:") |
| 324 |
Npc:says(_"Make sure you turn the Converter off before you remove it.") |
| 325 |
Npc:says(_"If you do not do that, you will only succeed in converting yourself to anti-matter. And as you know, there is no coming back from there.") |
| 326 |
end, |
| 327 |
}, |
| 328 |
{ |
| 329 |
id = "node59", |
| 330 |
text = _"My memory of Tachyon Condensators is incomplete.", |
| 331 |
topic = "Extract bot parts", |
| 332 |
code = function() |
| 333 |
hide("node59") next("node60") |
| 334 |
end, |
| 335 |
}, |
| 336 |
{ |
| 337 |
id = "node60", -- 5th LESSON", |
| 338 |
topic = "Extract bot parts", |
| 339 |
code = function() |
| 340 |
Npc:says(_"I will teach you about Tachyon Condensators.") |
| 341 |
Npc:says(_"Tachyons are very interesting particles. Many stories have been told about them.") |
| 342 |
Npc:says(_"I have no idea why bots have them inside. They are usually not connected to anything and serve no function.") |
| 343 |
Npc:says(_"They are usually quite hot when you get them out, but they cool down quickly, so handling them is not a big deal.") |
| 344 |
Npc:says(_"They can be installed just about anywhere, so you have to spend some time digging through the circuits to find one.") |
| 345 |
end, |
| 346 |
}, |
| 347 |
{ |
| 348 |
id = "node70", -- NO MORE LESSONS |
| 349 |
topic = "Extract bot parts", |
| 350 |
code = function() |
| 351 |
-- ; TRANSLATORS: nein = no , ja = yes, in this case it can be understood as "did you understand?" |
| 352 |
Npc:says(_"Nein, I told you everything I know about that. No use asking me twice, ja?") |
| 353 |
hide("node12", "node15") |
| 354 |
pop_topic() -- "Extract bot parts" |
| 355 |
end, |
| 356 |
}, |
| 357 |
{ |
| 358 |
id = "node98", |
| 359 |
text = _"This should be enough for now.", |
| 360 |
topic = "Extract bot parts", |
| 361 |
code = function() |
| 362 |
hide("node19", "node29", "node39", "node49", "node59") |
| 363 |
pop_topic() -- "Extract bot parts" |
| 364 |
end, |
| 365 |
}, |
| 366 |
{ |
| 367 |
id = "Engel_postfirmwareupdate_FirstTime", |
| 368 |
text = _"Hi! I'm new here.", |
| 369 |
echo_text = false, |
| 370 |
code = function() |
| 371 |
Tux:says(_"Hi! I'm-") |
| 372 |
next("Engel_postfirmwareupdate") |
| 373 |
end, |
| 374 |
}, |
| 375 |
{ |
| 376 |
id = "Engel_postfirmwareupdate", |
| 377 |
text = _"How's it going?", |
| 378 |
code = function() |
| 379 |
Npc:says(_"RRRRRAAAAAAAARRRGH!") |
| 380 |
Tux:says(_"... Excuse me?") |
| 381 |
Npc:says(_"I... WILL KILL... Who did this?!") |
| 382 |
Npc:says(_"All the bots are dead...") |
| 383 |
Tux:says(_"Yes! Everyone's safe now-") |
| 384 |
Npc:says(_"But I DID NOT KILL THEM!") |
| 385 |
Tux:says(_"I...") |
| 386 |
--; TRANSLATORS: nein = no , Mutter = mother |
| 387 |
Npc:says(_"Nein... Nein, I WILL avenge you, Mutter... Yes, I will find whoever took my vengeance away from me... And CRUSH!!") |
| 388 |
Tux:says(". . .") |
| 389 |
Tux:says(_"Well! I had better go now. Good luck!") |
| 390 |
Engel_post_firmware_update = true |
| 391 |
hide("Engel_postfirmwareupdate") |
| 392 |
end_dialog() |
| 393 |
end, |
| 394 |
|
| 395 |
}, |
| 396 |
{ |
| 397 |
id = "node99", |
| 398 |
text = _"I'll be going then.", |
| 399 |
code = function() |
| 400 |
if (not Engel_post_firmware_update) then |
| 401 |
--; TRANSLATORS: viel Gluck = good luck (should be "viel Glueck, but the ue character is missing in the font) |
| 402 |
Npc:says(_"Goodbye and viel Gluck.") |
| 403 |
else |
| 404 |
--; TRANSLATORS: rache = revenge |
| 405 |
Npc:says_random(_"RACHE!!", |
| 406 |
". . .") |
| 407 |
end |
| 408 |
end_dialog() |
| 409 |
end, |
| 410 |
}, |
| 411 |
} |