Debian Codegraph @

data/storyline/act1/dialogs/Butch.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", "Abrasive", "Domineering", "Condescending" },
21 PURPOSE = "$$NAME$$ enables Tux's access to the training arena."
22 WIKI]]--
23
24 -- TODO: Tux shouldn't kill Butch at low level.
25 -- TODO: Butch reacts to Tux Arena rank.
26 -- TODO: Butch give or not a reward.
27 -- TODO: Butch reacts when Tux enter the red guard.
28 -- TODO: Butch talks about Mike.
29 -- TODO: Create a secret rank "master" with insane difficulty.
30
31 local Npc = FDrpg.get_npc()
32 local Tux = FDrpg.get_tux()
33
34 return {
35 FirstTime = function()
36 Npc:says(_"Hey! Never seen you, newbie.")
37 Npc:says(_"Wanna enter the arena?")
38 Npc:set_rush_tux(false)
39 show("butch", "arena_what", "newbie")
40 end,
41
42 EveryTime = function()
43 if (Tux:has_met("Butch")) then
44 Tux:says(_"Hello!")
45
46 show("arena_topic") hide("arena_what")
47
48 if (Tux:has_met("Mike")) then
49 show("arena_talk2")
50 end
51
52 if (Tux:done_quest("Novice Arena")) then
53 show("newbie_alt") hide("newbie")
54 if (Tux:has_quest("Time to say goodnight")) then
55 if (not Tux:done_quest("Time to say goodnight")) then
56 Npc:says(_"Yeah, what do you want newbie?")
57 Npc:says(_"The master arena is by no means an easy task. Maybe you should practice some more before you go there.")
58 Npc:says(_"It's the trapdoor north of the regular arena. Good luck, newbie: You'll need it.")
59 else
60 Npc:says(_"Yeah, what do you want?")
61 if (not Butch_enable_second_set) then
62 Butch_enable_second_set = true
63 show("master_complete")
64 end
65 hide("newbie_alt")
66 end
67 else
68 Npc:says(_"Yeah, what do you want newbie?")
69 show("butch_master")
70 end
71 else
72 show("newbie")
73 end
74 hide("newbie2")
75 end
76
77 show("end")
78 end,
79 {
80 id = "butch",
81 text = _"Who are you?",
82 code = function()
83 Npc:says(_"Butch... The arena master.")
84 Npc:set_name("Butch - Arena Master")
85 hide("butch")
86 end,
87 },
88 {
89 id = "arena_what",
90 text = _"Arena? What arena?",
91 code = function()
92 Npc:says(_"This underground arena. With holographic bots to train combat techniques against.")
93 Npc:says(_"Wanna fight?")
94 hide("arena_what") show("arena_fight", "arena_peace", "arena_no")
95 push_topic("Arena")
96 end,
97 },
98 {
99 id = "arena_topic",
100 text = _"It's about the arena.",
101 code = function()
102 if (not Tux:has_quest("Novice Arena")) then
103 Npc:says(_"Wanna fight?")
104 show("arena_fight", "arena_peace", "arena_no")
105 push_topic("Arena")
106 else
107 Npc:says(_"All you need to do is walk in there and talk to Mike.")
108 end
109 hide("arena_topic")
110 end,
111 },
112 {
113 id = "arena_fight",
114 text = _"Yeah. I want to fight.",
115 topic = "Arena",
116 code = function()
117 Npc:says(_"Good. I opened up the door. Just continue to the corridor.")
118 Npc:says(_"You'll need talk to Mike, the arena manager, there.")
119 Npc:says(_"And be careful, your brain will be fooled by what happens in the holographic world. Any damage you take there, will result in actual physical damage.")
120 Npc:says(_"So even if the enemies are only holograms, they can still hurt you... and even kill you.")
121 Tux:add_quest("Novice Arena", _"Fighting in the arena is not something I would usually do, but I feel like doing it for a change. Why not?")
122 Npc:says(_"Oh, and this room is made out of some special material. People reported their teleporter gadgets didn't work in here. Take care!")
123 Tux:update_quest("Novice Arena", _"Butch says that teleporter gadgets may not work in the arena.")
124 change_obstacle_state("Arena-ManagerDoor", "opened")
125 hide("arena_fight", "arena_peace", "arena_no")
126 show("arena_info1", "arena_talk1")
127 pop_topic()
128 end,
129 },
130 {
131 id = "arena_peace",
132 text = _"No way! Violence is wrong! Make love not war!",
133 topic = "Arena",
134 code = function()
135 Npc:says(_". . .")
136 hide("arena_fight", "arena_peace", "arena_no") show("arena_peace2")
137 end,
138 },
139 {
140 id = "arena_peace2",
141 text = _"Roses, not destruction!",
142 topic = "Arena",
143 code = function()
144 Npc:says(_". . .")
145 hide("arena_peace2") show("arena_peace3")
146 end,
147 },
148 {
149 id = "arena_peace3",
150 text = _"End the violence! All blood is red!",
151 topic = "Arena",
152 code = function()
153 Npc:says(_"Hey, the bots bleed black. With oil.")
154 Tux:says(_"But... But...")
155 Npc:says(_"No 'but' about it, newbie.")
156 Npc:says(_"The bots bleed black.")
157 Tux:says(_"You... Have ruined my pacifistic slogan... I am angry... So angry that I want to smash things!")
158 Npc:says(_"Great. Get in the door, newbie, and go talk to Mike.")
159 Tux:add_quest("Novice Arena", _"Fighting in the arena is not something I would usually do, but I feel like doing it for a change. Why not?")
160 change_obstacle_state("Arena-ManagerDoor", "opened")
161 hide("arena_fight", "arena_peace", "arena_no", "arena_peace3")
162 show("arena_info1", "arena_talk1")
163 pop_topic()
164 end_dialog()
165 end,
166 },
167 {
168 id = "arena_no",
169 text = _"I don't have time, I need to save the world.",
170 topic = "Arena",
171 code = function()
172 Npc:says(_"Yeah! Continue to dream, newbie.")
173 hide("arena_fight", "arena_peace", "arena_no")
174 pop_topic()
175 end,
176 },
177 {
178 id = "arena_info1",
179 text = _"Why the heck are you organizing fights? Enough people have died already!",
180 code = function()
181 Npc:says(_"I have a very good reason not to tell you.")
182 Npc:says(_"Not like someone as inexperienced as you could understand it anyway.")
183 hide("arena_info1")
184 end,
185 },
186 {
187 id = "arena_talk1",
188 text = _"I thought I was going to fight you, coward.",
189 code = function()
190 Npc:says(_"I NEVER said that, newbie.")
191 if (done_quest("Novice Arena")) then
192 Npc:says(_"You wanted a fight, and you got one.")
193 Npc:says(_"I offered a fight, and you wanted that.")
194 else
195 Npc:says(_"You wanted a fight, and you will get one.")
196 Npc:says(_"I offered a fight, then do it.")
197 end
198 Npc:says(_"There is nothing more to say, newbie.")
199 hide("arena_talk1")
200 end,
201 },
202 {
203 id = "arena_talk2",
204 text = _"I want a bigger challenge.",
205 code = function()
206 if (not Tux:done_quest("Novice Arena")) then
207 Npc:says(_"I'm sorry, but town regulations forbid access to the more advanced ranks unless you've completed the noob-, errr, novice first.")
208 Npc:says(_"This regulation is in place for your own safety, so that no newbie accidentally signs up as Champion.")
209 --; TRANSLATORS: 'more difficult' is related to arena rank
210 Npc:says(_"You might try taking the novice challenge first. Then Mike will grant you access to a more difficult.")
211 else
212 Npc:says(_"Newbie, just go talk to Mike.")
213 Npc:says(_"He has better challenges.")
214 end
215 hide("arena_talk2")
216 end,
217 },
218 {
219 id = "newbie",
220 text = _"I'm not a 'newbie'.",
221 code = function()
222 Npc:says(_"Of course you are. Everyone start as newbie.")
223 Npc:says(_"You are just a little more newbie than others.")
224 hide("newbie") show("newbie2")
225 end,
226 },
227 {
228 id = "newbie_alt",
229 text = _"What is wrong with you? Why do you keep calling me a newbie?",
230 code = function()
231 Npc:says(_"Because you ARE a newbie, newbie!")
232 --; TRANSLATORS: 'less' refers to 'newbie'
233 Npc:says(_"You are just a little less.")
234 hide("newbie_alt") show("newbie2")
235 end,
236 },
237 {
238 id = "newbie2",
239 text = _"Say 'newbie' again and I will rip your spine out.",
240 code = function()
241 Npc:says(_"Fine, newbie. You are greener than green and a total newbie.")
242 Npc:says(_"You can start ripping out my spine now.")
243 Npc:says(_"Ha!")
244 hide("newbie2", "newbie4") show("newbie3", "newbie_end")
245 push_topic("Newbie")
246 end,
247 },
248 {
249 id = "newbie3",
250 text = _"I really mean it. I will kill you for that insult.",
251 topic = "Newbie",
252 code = function()
253 Npc:says(_"Go for it.")
254 hide("newbie3") show("newbie4")
255 end,
256 },
257 {
258 id = "newbie4",
259 text = _"BANZAI! DIE DIE DIE!",
260 topic = "Newbie",
261 code = function()
262 Npc:says(_"Wha --")
263 Npc:drop_dead()
264 set_faction_state("redguard", "hostile")
265 display_big_message(_"Better reload your last save and try again.") -- reverse order
266 display_big_message(_"Ooops, the Red Guard hates you now.")
267 hide("newbie4", "newbie_end")
268 end_dialog()
269 end,
270 },
271 {
272 id = "newbie_end",
273 text = _"...",
274 topic = "Newbie",
275 code = function()
276 Npc:says(_"So, it was just for show. Anything else, newbie?")
277 hide("newbie4", "newbie_end") pop_topic()
278 end,
279 },
280
281 {
282 id = "butch_master",
283 text = _"If Mike manages the arena, how comes you're the arena master?",
284 code = function()
285 if (arena_ranking == "champion") then
286 Npc:says(_"Newbie, we have a second arena, the Master Arena.")
287 if (Tux:has_item_equipped("The Super Exterminator!!!") or
288 Tux:has_item_equipped("Exterminator")) then
289 Npc:says(_"It is no place to test your cool Exterminator.", "NO_WAIT")
290 end
291 Npc:says(_"You will die if you go there.")
292 Npc:says(_"I pity you, silly bird. Don't go there.")
293 Npc:says(_"But if you really want to, the door is now open. It's inside the city, north of this one.")
294 Tux:add_quest("Time to say goodnight", _"I told the arena master to let me into the master arena. He agreed. Now all that remains to do is to climb down the ladder to the north arena and wait for death herself to come on her black wings and claim my soul. You know, now that I think about it... Maybe I should stay out of there?")
295 Npc:says(_"Remember, if your teleporter don't work on the conventional arena, it won't work in the master arena either...")
296 Tux:update_quest("Time to say goodnight", _"Again, Butch warned me about possibly broken teleporter gadgets.")
297 change_obstacle_state("MasterArenaAccessTrapdoor", "opened")
298 else
299 Npc:says(_"Oh, that? I've completed a special challenge.")
300 Npc:says(_"But you're still too green to try that. You know, town regulations. You must complete the Elite arena first.")
301 Npc:says(_"Once you're done, come talk to me about this again.")
302 end
303 hide("butch_master")
304 end,
305 },
306 {
307 id = "master_complete",
308 text = _"The master arena is clear.",
309 code = function()
310 Npc:says(_"What!? Impossible! No one has ever survived the second arena! Well, except me, of course.")
311 Npc:says(_"One has to be out of his mind to even attempt the second arena. Not even Bender tried it!")
312 Npc:says(_"You are not a newbie... You are COMPLETELY INSANE!")
313 Npc:says(_"Poor fool... You will surely die young.")
314 Tux:add_xp(8000)
315 Tux:update_quest("Time to say goodnight", _"I survived the master arena. A miracle. Whew.")
316 hide("master_complete")
317 end,
318 },
319 {
320 id = "end",
321 text = _"I'll be going then.",
322 code = function()
323 Npc:says_random(_"Sure, go hide away in fear.",
324 _"See you around, newbie.",
325 _"Remember: pain is temporary but glory is forever.",
326 _"Go kill some bots.")
327 end_dialog()
328 end,
329 },
330 }