Debian Codegraph @

data/storyline/act1/quests.lua

raw
1 --[[
2 Copyright (c) 2003 Johannes Prix
3
4 This file is part of Freedroid
5
6 Freedroid is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
10
11 Freedroid is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with Freedroid; see the file COPYING. If not, write to the
18 Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
19 MA 02111-1307 USA
20 ]]--
21
22 -- Feel free to make any modifications you like. If you set up
23 -- something cool, please send your file in to the Freedroid project.
24
25 mission_list {
26 {
27 mission_name = _"Bender's problem",
28 mission_description = "Find a cure for Bender, suffering from brain enlargement pills",
29 },
30 {
31 mission_name = _"The yellow toolkit",
32 mission_description = "Retrieve Dixon's lost toolkit",
33 completion_code = [=[
34 change_obstacle_state("Town-Solar-1", "enabled")
35 change_obstacle_state("Town-Solar-2", "enabled")
36 change_obstacle_state("Town-Solar-3", "enabled")
37 change_obstacle_state("Town-Solar-4", "enabled")
38 change_obstacle_state("Town-Solar-5", "enabled")
39 change_obstacle_state("Town-Solar-6", "enabled")
40 change_obstacle_state("Town-Solar-7", "enabled")
41 change_obstacle_state("Town-Solar-8", "enabled")
42 ]=],
43 },
44 {
45 mission_name = _"Anything but the army snacks, please!",
46 mission_description = "Find energy crystals for Michelangelo",
47 },
48 {
49 mission_name = _"Novice Arena",
50 mission_description = "Defeat the bots in the Novice Arena",
51 },
52 {
53 mission_name = _"Time to say goodnight",
54 mission_description = "Defeat the bots in the Master Arena",
55 kill_droids_marked = 1030,
56 completion_code = [=[
57 change_obstacle_state("MasterArenaExitDoor", "opened")
58 display_console_message(_"Master arena cleared. Good job, man.")
59 display_big_message(_"Level cleared!")
60 update_quest("Time to say goodnight", _"I managed to win the fight in the master arena. Am I really that good, or did I cheat?")
61 ]=],
62 },
63 {
64 mission_name = _"Opening a can of bots...",
65 mission_description = "Clean out the first sub-level of the warehouse",
66 must_clear_level = 1,
67 completion_code = [=[
68 update_quest("Opening a can of bots...", _"The first level of the warehouse has been cleared of bots; Dixon's men can now safely retrieve the supplies from here.")
69 ]=],
70 },
71 {
72 mission_name = _"And there was light...",
73 mission_description = "Clean out the second sub-level of the Kevin's Complex",
74 must_clear_level = 18,
75 completion_code = [=[
76 update_quest("And there was light...", _"Hope everything is back to normal now. I better go check with Kevin.")
77 display_console_message(_"All hostiles on level disabled.")
78 display_big_message(_"Level cleared!")
79 ]=],
80 },
81 {
82 mission_name = _"A kingdom for a cluster!",
83 mission_description = "Take Kevin's data cube to the cluster maintenance people inside the Red Guard complex",
84 },
85 {
86 mission_name = _"Opening access to MS Office",
87 mission_description = "Reach the disruptor shield generator and take control of it",
88 },
89 {
90 mission_name = _"Propagating a faulty firmware update",
91 mission_description = "Upload faulty firmware to the firmware update server.",
92 },
93 {
94 mission_name = _"A New Mission From Spencer",
95 mission_description = "Board Spencer's stratopod and finish Act 1, for once and for all.",
96 },
97 {
98 mission_name = _"SADD's power supply",
99 mission_description = "Bring energy crystals to SADD",
100 },
101 {
102 mission_name = _"Tania's Escape",
103 mission_description = "Free Tania from underground facility and escort her to the town",
104 kill_droids_marked = 2035,
105 completion_code = [=[
106 if (npc_dead("Tania")) then
107 display_big_message(_"Tania died!")
108 display_console_message(_"Tania died!")
109 if (not Tania_surface) then
110 update_quest("Tania's Escape", _"Tania died before escaping her underground bunker. I was unable to protect her.")
111 elseif (not Tania_stopped_by_Pendragon) then
112 update_quest("Tania's Escape", _"Tania died in the desert while trying to make it to the town. I was unable to protect her.")
113 change_obstacle_state("DesertGate-Inner", "opened")
114 else
115 update_quest("Tania's Escape", _"Tania died while trying to make it to the town. I was unable to protect her.")
116 end
117 else
118 display_big_message(_"Tania made it to the town!")
119 display_console_message(_"Tania successfully made it to the town!")
120 add_xp(3000)
121 end
122 ]=],
123 },
124 {
125 mission_name = _"Saving the shop",
126 mission_description = "Help Stone pay her tax bill",
127 completion_code = [=[
128 sell_item("Shotgun shells", 1, "Stone")
129 sell_item(".22 LR Ammunition", 1, "Stone")
130 ]=],
131 },
132 {
133 mission_name = _"Doing Duncan a favor",
134 mission_description = "Find Koan",
135 },
136 {
137 mission_name = _"Tutorial Movement",
138 mission_description = "Learn to Move",
139 },
140 {
141 mission_name = _"Tutorial Melee",
142 mission_description = "Learn to fight bots hand-to-hand",
143 kill_droids_marked = 2037,
144 completion_code = [=[
145 display_big_message(_"Melee droids destroyed!")
146 ]=],
147 },
148 {
149 mission_name = _"Tutorial Shooting",
150 mission_description = "Learn to shoot bots",
151 kill_droids_marked = 4037,
152 completion_code = [=[
153 display_big_message(_"Shooting range cleared!")
154 ]=],
155 },
156 {
157 mission_name = _"Tutorial Hacking",
158 mission_description = "Learn to hack bots",
159 kill_droids_marked = 3037,
160 completion_code = [=[
161 display_big_message(_"Hacking area cleared!")
162 ]=],
163 },
164 {
165 mission_name = _"A strange guy stealing from town",
166 mission_description = "Find Kevin",
167 },
168 {
169 mission_name = _"Deliverance",
170 mission_description = "Deliver list from Francis to Spencer",
171 },
172 {
173 mission_name = _"Gapes Gluttony",
174 mission_description = "Deliver a nice meal to Will Gapes",
175 },
176 {
177 mission_name = _"Tutorial Upgrading Items",
178 mission_description = "Learn to upgrade items",
179 completion_code = [=[
180 display_console_message(_"Tutorial Upgrading Items finished!")
181 ]=],
182 },
183 {
184 mission_name = _"Droids are my friends",
185 mission_description = "Clean out the old server room",
186 must_clear_level = 58,
187 completion_code = [=[
188 update_quest("Droids are my friends", _"The old server room is now secured.")
189 ]=],
190 },
191 {
192 mission_name = _"An Explosive Situation",
193 mission_description = "Save the town from nuclear disaster",
194 },
195 {
196 mission_name = _"Open Sesame",
197 mission_description = "Hack the Hell Fortress Gate Access Server and find the gate.",
198 },
199 {
200 mission_name = _"Jennifer's Toolbox",
201 mission_description = "Find red toolbox and return it to Jennifer",
202 },
203 {
204 mission_name = _"24_label_test_quest",
205 mission_description = "This is a test quest",
206 },
207 {
208 mission_name = _"24_dude_test_quest",
209 mission_description = "This is also a test quest",
210 },
211 {
212 mission_name = _"24_guy_death_quest",
213 mission_description = "This is another test quest",
214 kill_droids_marked = 2025,
215 completion_code = [=[
216 display_big_message("24 guy death quest solved")
217 ]=],
218 },
219 {
220 mission_name = _"Ticket's price - crystal",
221 mission_description = "Bring one dilithium crystal to Bob for his 614",
222 completion_code = [=[
223 change_obstacle_state("ToTheWorld2PortalGate", "opened")
224 add_xp(1000)
225 ]=],
226 },
227 {
228 mission_name = _"Bot in need",
229 mission_description = "Bring 999 Cerebrum some add-ons for his needs",
230 completion_code = [=[
231 add_xp(500)
232 ]=],
233 },
234
235 }
236