Debian Codegraph @

data/storyline/act1/dialogs/Town-TuxGuard.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", "Condescending" },
21 MARKERS = { NPCID1 = "Spencer" },
22 PURPOSE = "When Tux fist visits the town, $$NAME$$ will escort Tux to visit $$NPCID1$$. After that, $$NAME$$ will patrol the town."
23 WIKI]]--
24
25 local Npc = FDrpg.get_npc()
26 local Tux = FDrpg.get_tux()
27
28 return {
29 EveryTime = function()
30 if (guard_follow_tux) then
31 Npc:says(_"I'm to keep an eye on you until you talk to Spencer.")
32 Npc:set_name("Red Guard Escort")
33 elseif (tux_has_joined_guard) then
34 if ((HF_Spencer_teleported) and (not HF_Town_TuxGuard_post_firmware_update)) then
35 next("node30")
36 HF_Town_TuxGuard_post_firmware_update = true
37 elseif HF_Spencer_teleported then
38 Npc:says(_"Hello again.")
39 else
40 Npc:says(_"I'll let you be now; no need to suspect one of our own!")
41 end
42 else
43 Npc:says(_"Spencer seems to think that you are harmless. Go about your business.")
44 if (Town_NorthGateGuard_tux_nickname_loon) then
45 Npc:says(_"Babysitting a loon... Now I can say I've done it all!")
46 end
47 end
48 show_if((not Tux:has_met("Spencer")), "node20")
49 show("node99")
50 end,
51
52 {
53 id = "node20",
54 text = _"Where can I find Spencer?",
55 code = function()
56 if (not knows_spencer_office) then
57 Npc:says(_"He's usually in his office in the citadel.")
58 Npc:says(_"Head down the main corridor until you pass the citadel gates.")
59 Npc:says(_"His office has purple walls, you won't miss it.")
60 Tux:says(_"Okay.")
61 knows_spencer_office = true
62 else
63 Npc:says_random(_"Come on, you know that already.",
64 _"I'm pretty sure you know that...",
65 _"We told you! Stop stalling!")
66 end
67 hide("node20")
68 end,
69 },
70 {
71 id = "node30",
72 text = "BUG, REPORT ME! Town-TuxGuard node30 -- Post Firmware Update",
73 code = function()
74 Tux:says(_"Hello again.")
75 Npc:says(_"Well hey, it's you.")
76 Npc:says(_"I remember you from way back, when you were just the new bird in the tree. Hehe.")
77 if (Town_NorthGateGuard_tux_nickname_loon) then
78 Npc:says(_"Hah, and we used to call you 'loon'! Good old times.")
79 Tux:says(_"Haha, yeah... I guess...")
80 else
81 Tux:says(_"Yes, that was a while ago...")
82 end
83 Npc:says(_"And it looks like you've been up to a lot since then.")
84 Tux:says(_"That's true. I did manage to pretty much save the entire town in the mean time.")
85 Npc:says(_"Mhmmm. Yeah, that's pretty cool.")
86 show("node31", "node32")
87 end,
88 },
89 {
90 id = "node31",
91 text = _"What? Aren't you impressed?",
92 code = function()
93 Npc:says(_"Oh, sure, I mean, we're in your eternal debt, and all that.")
94 Tux:says(_"... But...?")
95 Npc:says(_"Well, you see, it's just that I've been around, and I've seen and heard some things in my time.")
96 Npc:says(_"And it's just... not that high up on the scale, as far as epic deeds go.")
97 Npc:says(_"No offense.")
98 show("node33", "node34", "node35") hide("node31")
99 end,
100 },
101 {
102 id = "node32",
103 text = _"How's it going out there?",
104 code = function()
105 Npc:says(_"Much of the same, really.")
106 Npc:says(_"It's going to get a little easier from here on, without all those bots wanting to kill us.")
107 Npc:says(_"Spencer's pretty deeply impressed over there. He's been under a lot of stress since the Great Assault began, you know.")
108 Npc:says(_"He knows as well as anyone else that being a leader isn't about being popular, but it still takes its toll.")
109 Npc:says(_"He won't admit it, but the time between you heading out and all the bots dropping was a roller coaster for him. Absolutely nerve wracking.")
110 Npc:says(_"I've never seen him as desperate as when you were in here. And I've never seen him as happy as when he dragged us to the teleporter.")
111 hide("node32")
112 end,
113 },
114 {
115 id = "node33",
116 text = _"I see. Those must have been some very impressive deeds.",
117 code = function()
118 Npc:says(_"Oh, you bet. Those were the good old days...")
119 Npc:says(_"Although... Well, I don't remember anyone saving a town half-full of people in the middle of a flaming apocalypse.")
120 Tux:says(_"I suppose that doesn't happen very often.")
121 Npc:says(_"...")
122 --; TRANSLATORS: %s = Tux:get_player_name()
123 Npc:says(_"Hah hah! You know something, you're all right, %s.", Tux:get_player_name())
124 Town_NorthGateGuard_tux_nickname_loon = false
125 hide("node33", "node34", "node35")
126 end,
127 },
128 {
129 id = "node34",
130 text = _"Are you out of your mind? Do you know the danger I've been through?!",
131 code = function()
132 Npc:says(_"Well, ok, friend, keep your voice down...")
133 Tux:says(_"I've risked my life for all of you, and this is what I get? 'Eh, it's pretty cool, it's not that high up on the scale'?!")
134 Npc:says(_"Well, I said no offense!")
135 Tux:says(_"Is there even a scale for these things? How would you even quantify where something is on the scale? What do I have to do, lose a flipper?!")
136 Npc:says(_"Calm down already, I'm sorry! I'll just... stay back here, all right? You calm down now and... Take a walk around...")
137 Npc:set_state("home")
138 Tux:says(_"Oh, all right, I'll take a walk now... I'll just be careful not to step on the ARMIES OF BOTS I TOOK DOWN BY MYSELF, thank you very much!")
139 Npc:says(_"Yikes...")
140 hide("node33", "node34", "node35", "node32")
141 end_dialog()
142 end,
143 },
144 {
145 id = "node35",
146 text = _"Well, I think I deserve a little more credit than that...",
147 code = function()
148 Npc:says(_"Hrmm... I suppose, now that I look around, you're probably right.")
149 Npc:says(_"I shouldn't underestimate what you've done for us. I'll be honest with you: we were in pretty bad shape back there.")
150 if (Tux:done_quest("Opening a can of bots...")) then
151 Npc:says(_"Even with the supplies from the warehouse, if the factory was to continue spewing out bots, I think a lot of us would've lost hope completely.")
152 end
153 if (Tux:done_quest("Anything but the army snacks, please!")) then
154 Npc:says(_"I remember people would go a couple of days at a time without eating at all, just because all we had were the military rations... I'm not sure what's worse, you know, dying by starvation, by bots or by that sludge.")
155 Npc:says(_"Getting our kitchen back on track literally brought some taste back to life.")
156 end
157 if (Dixon_mood) then
158 if (Dixon_mood < 0) then
159 Npc:says(_"And I saw Dixon after he talked to you - he was so happy, you could think nothing was ever wrong. Whatever you talked about, the result was... Impressive.")
160 elseif (Dixon_mood <= 120) then
161 Npc:says(_"I know you definitely made some people angry along the way, but you gotta look at how far we've come. The apocalypse doesn't feel so bad anymore.")
162 else
163 Npc:says(_"But it wasn't all roses... I remember visiting Dixon one day after he talked to you. I couldn't see his face, but something was... Very different about him.")
164 Npc:says(_"I don't know what you did to him, but it changed him for the worse.")
165 Npc:says(_"The price we pay for salvation...")
166 end
167
168 end
169 Npc:says(_"All those things you did... Well, you did good.")
170 hide("node33", "node34", "node35")
171 end,
172 },
173 {
174 id = "node99",
175 text = _"I'll be going then.",
176 code = function()
177 if (guard_follow_tux) then
178 Npc:says_random(_"Not without me, you won't.",
179 _"I'll be watching you, then.",
180 _"Hey, wait up!")
181 else
182 Npc:says(_"Mhmmm.")
183 end
184 if (Town_NorthGateGuard_tux_nickname_loon) then
185 --; TRANSLATORS: %s = Tux:get_player_name()
186 Npc:says(_"%s... the Loon", Tux:get_player_name())
187 end
188 end_dialog()
189 end,
190 },
191 }