| 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 = { "Enigmatic", "Friendly", "Helpful" }, |
| 21 |
MARKERS = { NPCID1 = "Dvorak" }, |
| 22 |
PURPOSE = "$$NAME$$ is a human who worked for $$NPCID1$$ before the Great Assault. He joined MS and helped $$NPCID1$$ to figure |
| 23 |
out that the only way to save the planet was after the Great Assault. While $$NPCID1$$ thought $$NAME$$ died, $$NAME$$ was |
| 24 |
cryonized on RR Resorts. $$NAME$$ helps tux to figure out (and lastly save) their old friend, $$NPCID1$$.", |
| 25 |
BACKSTORY = "$$NAME$$ meet $$NPCID1$$ and joined MS to provide support from inside. Apparently, he shares the same nature as $$NPCID1$$. While everyone refers to him as a man, his gender is unknown, as well as any background story from before meeting $$NPCID1$$.", |
| 26 |
RELATIONSHIP = { |
| 27 |
{ |
| 28 |
actor = "$$NPCID1$$", |
| 29 |
text = "$$NAME$$ knows $$NPCID1$$, but maybe a little more than $$NPCID1$$ would like." |
| 30 |
} |
| 31 |
} |
| 32 |
WIKI]]-- |
| 33 |
|
| 34 |
local Npc = FDrpg.get_npc() |
| 35 |
local Tux = FDrpg.get_tux() |
| 36 |
|
| 37 |
return { |
| 38 |
|
| 39 |
EveryTime = function() |
| 40 |
|
| 41 |
-- "I have secrets to tell, let me get close to you first so no one will overhear us." |
| 42 |
|
| 43 |
if (Npc:get_rush_tux()) then |
| 44 |
Npc:set_rush_tux(false) |
| 45 |
end |
| 46 |
|
| 47 |
if (not Act2_TalkedToColemak) then -- First time, jump to intro. Last time, endgame |
| 48 |
next("intro") |
| 49 |
elseif (not Act2_DvorakPlanDownload) then |
| 50 |
next("endgame") |
| 51 |
else |
| 52 |
Npc:says(_"Please go to the Terminal you used to uncryonize me and issue the [b]download[/b] command.") |
| 53 |
end_dialog() |
| 54 |
end |
| 55 |
|
| 56 |
|
| 57 |
|
| 58 |
end, |
| 59 |
|
| 60 |
{ |
| 61 |
id = "intro", |
| 62 |
text = _"Who are you?", |
| 63 |
code = function() |
| 64 |
--; TRANSLATORS: %s = Tux:get_player_name() |
| 65 |
Npc:says(_"Hello, my name is Colemak. I am an old friend of yours, %s.", Tux:get_player_name()) |
| 66 |
show("nameinfo","youinfo") |
| 67 |
hide("intro") |
| 68 |
end, |
| 69 |
}, |
| 70 |
|
| 71 |
{ |
| 72 |
id = "guyinfo", |
| 73 |
text = _"You just killed a man and a friendly bot!!", |
| 74 |
code = function() |
| 75 |
if (SecurityChief:is_dead() and ProgrammingChief:is_dead()) then |
| 76 |
Npc:says(_"Well, as you aren't trying to kill me as some irrational birds I've met, I'll tell you.") |
| 77 |
elseif (SecurityChief:is_dead() or ProgrammingChief:is_dead()) then |
| 78 |
Npc:says(_"I'll be finished soon, so don't worry. There is an important thing about them I must tell you.") |
| 79 |
else |
| 80 |
Npc:says(_"Not yet, but I'm working on it. I'll teach you something important.") |
| 81 |
end |
| 82 |
-- This was a debug fix. On easy mode the work is cut for you. |
| 83 |
if (difficulty("easy")) then |
| 84 |
SecurityChief:drop_dead() |
| 85 |
ProgrammingChief:drop_dead() |
| 86 |
end |
| 87 |
Npc:says(_"There are no humans awake on RR Resorts.", "NO_WAIT") -- What about Fred and Yadda? |
| 88 |
Npc:says(_"What you thought was a human, was also a bot. It just had a different skin.") |
| 89 |
Npc:says(_"If it were able to merge with human society, the chaos would be even bigger.") |
| 90 |
Tux:says(_"Then how come I've never heard of bots disguised as humans?") |
| 91 |
Npc:says(_"I don't know. I was frozen before they completed the project. Maybe it turned out to be too expensive?") |
| 92 |
hide("guyinfo") |
| 93 |
end, |
| 94 |
}, |
| 95 |
|
| 96 |
{ |
| 97 |
id = "bossinfo", |
| 98 |
text = _"The ones you just murdered where mistaking me with some master...", |
| 99 |
code = function() |
| 100 |
Npc:says(_"Ah yes, I've heard that from Dvorak. Apparently the MS big boss was born in Linarius.", "NO_WAIT") |
| 101 |
Npc:says(_"I've heard his nickname a few times now: [b]Agent Zero[/b].") |
| 102 |
Npc:says(_"Apparently, from what I collected while I was in MS, he was one of the first agents sent by the High Council.") |
| 103 |
Npc:says(_"I'm very glad they didn't found out I learned that, or I would be dead a long time ago.") |
| 104 |
hide("bossinfo") show("lhcinfo") |
| 105 |
end, |
| 106 |
}, |
| 107 |
|
| 108 |
{ |
| 109 |
id = "youinfo", |
| 110 |
text = _"Why are you cryonized?", |
| 111 |
code = function() |
| 112 |
Npc:says(_"Well, as you might be aware, if you figure out too much you're cryonized.", "NO_WAIT") |
| 113 |
Npc:says(_"Only the ones who figure out about the MS big boss are actually killed.") |
| 114 |
Npc:says(_"The reason is simple. Killing would be too noisy, while cryonizing keeps them undercover.") |
| 115 |
Npc:says(_"Thankfully they never figured out what I truly knew. I was cryonized for figuring out that the Hell Fortress Factory Boss had a teletransport network only for him which he used to grab money and go on vacations in tropical islands.") -- TODO: Consistency error, HF was a name given later by the Red Guard! Use the region ID, and Tux says “54xxx? That was... Yep, the Hell Fortress. Ironic.” |
| 116 |
Tux:says(_"Ironic.") |
| 117 |
hide("youinfo") |
| 118 |
end, |
| 119 |
}, |
| 120 |
|
| 121 |
{ |
| 122 |
id = "nameinfo", |
| 123 |
text = _"HOW DO YOU KNOW MY NAME?!", |
| 124 |
code = function() |
| 125 |
Npc:says(_"Why, Dvorak told me, of course.") |
| 126 |
Tux:says(_"Ok, what's going on here?!") |
| 127 |
hide("nameinfo") show("bossinfo", "guyinfo") |
| 128 |
end, |
| 129 |
}, |
| 130 |
|
| 131 |
{ |
| 132 |
id = "lhcinfo", |
| 133 |
text = _"High Council? Tell me more...", |
| 134 |
code = function() |
| 135 |
Npc:says(_"I thought you already knew all that, being a former ship commander and all...?") |
| 136 |
Tux:says(_"I was a ship commander? Cool!") |
| 137 |
Tux:says(_"Ah, uhm, sorry. I've been cryonized for too long. I don't have memories from before awakening.") |
| 138 |
Npc:says(_"In this case, you should find Dvorak first, he was a good friend of yours. Like, your guide.") |
| 139 |
Npc:says(_"He will explain to you in details about Linarians, their intent, the High Council... And most importantly...") |
| 140 |
Npc:says(_"What must be done to save mankind.") |
| 141 |
hide("lhcinfo") |
| 142 |
show("node99") |
| 143 |
end, |
| 144 |
}, |
| 145 |
|
| 146 |
{ |
| 147 |
id = "node99", |
| 148 |
text = _"That's too much for me. Give me a minute or two to process all this information, please.", |
| 149 |
code = function() |
| 150 |
Npc:says(_"Don't worry, my friend. Take all the time you need, and then come back to talk with me.") |
| 151 |
Tux:says(_"Thanks, Colemak. I'll talk to you as soon as I'm ready.") |
| 152 |
Npc:says("", "NO_WAIT") -- White division line |
| 153 |
Npc:says(_"[b]Important: Colemak locked the City Gate to prevent enemy armies from coming from the Factory.[/b]") |
| 154 |
Npc:says("", "NO_WAIT") -- White division line |
| 155 |
Npc:says(_"[b]Notice: Area south of RR Resorts is now unlocked.[/b]") |
| 156 |
Tux:end_quest("Where Am I?", _"I ended up waking Colemak, which seems to be an old friend from the enigmatic entity which entitles itself as \"Dvorak\". Apparently this Dvorak can help me recover my memories. I should talk to Colemak again soon.") |
| 157 |
-- Normalizes music |
| 158 |
switch_background_music("town.ogg") |
| 159 |
Act2_TalkedToColemak=true |
| 160 |
change_obstacle_state("Act2CityGate", "closed") |
| 161 |
change_obstacle_state("RRResorts-NorthGate", "closed") |
| 162 |
change_obstacle_state("RRResorts-SouthGate", "opened") |
| 163 |
change_obstacle_state("Act2-IcySummerGate", "opened") |
| 164 |
respawn_level(1) |
| 165 |
hide("node99") |
| 166 |
end_dialog() |
| 167 |
end, |
| 168 |
}, |
| 169 |
|
| 170 |
{ |
| 171 |
id = "endgame", |
| 172 |
text = _"Let's find Dvorak!", |
| 173 |
code = function() |
| 174 |
Npc:says(_"So, are you ready?") |
| 175 |
Tux:says(_"Yes I am!") |
| 176 |
Npc:says(_"As you must be aware, bots were on Dvorak's track, and he had to hide.", "NO_WAIT") |
| 177 |
Npc:says(_"It would be impossible to locate him now, however he uploaded a detailed plan for you on my Cryo terminal.") |
| 178 |
Npc:says(_"I'll now unlock the [b]download[/b] command. Download the plans for me, pretty please.", "NO_WAIT") |
| 179 |
Npc:says(_"It's encrypted and requires a key, but I'm sure you'll find it. Inform me about what Dvorak left there!") |
| 180 |
Act2_DvorakPlanDownload=true |
| 181 |
Tux:assign_quest("Message From An Old Friend", _"Dvorak has foreseen my arrival and left some data at the terminal which I used to uncryonize Colemak. I must download these files no matter what it takes!") |
| 182 |
|
| 183 |
-- Game used to end here. This was a fix for credits not being played (thanks wlan2) |
| 184 |
-- Cursor state was not reset on win_game() so you had to interact with terminal. (This bug is not present anymore) |
| 185 |
end_dialog() |
| 186 |
end, |
| 187 |
}, |
| 188 |
} |