Debian Codegraph @

data/storyline/act1/dialogs/MO-RGGateGuard.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 = { "Militarist", "Abrasive" },
21 BACKSTORY = "$$NAME$$ mans the defence structure near the Hell Fortress",
22 WIKI]]--
23
24 local Npc = FDrpg.get_npc()
25 local Tux = FDrpg.get_tux()
26
27 return {
28 FirstTime = function()
29 show("node0")
30 end,
31
32 EveryTime = function()
33 if (HF_FirmwareUpdateServer_uploaded_faulty_firmware_update) then
34 Npc:says_random(_"Welcome back. Things have been calm since you've uploaded the faulty firmware.",
35 _"And I thought you were going to commit suicide. Hah! Good job. I'll keep guard duty here, in case something happen.",
36 _"Nothing to worry here. All is well when it ends well.",
37 _"Even without the threat of the factory, I was told by Spencer to keep position here. Safety is never enough!")
38 end_dialog()
39 end
40 show("node99")
41 end,
42
43 {
44 id = "node0",
45 text = _"Hi! I'm new here.",
46 code = function()
47 Npc:says(_"Great. Now back to where you came from. This is no place for you.")
48 hide("node0") show("node1")
49 end,
50 },
51 {
52 id = "node1",
53 text = _"What's the matter with this gate?",
54 code = function()
55 Npc:says(_"This is a gate to an automated bot factory we call the Hell Fortress.")
56 Npc:says(_"You must be crazy if you want to get in there. That place is full of bots.")
57 Npc:says(_"Get out of here. They might attack at any moment!")
58 hide("node1") show("node2")
59 end,
60 },
61 {
62 id = "node2",
63 text = _"What if I just walk in there? Will you try to stop me?",
64 code = function()
65 Npc:says(_"Of course not. Murdering you would be a complete waste of time.")
66 Npc:says(_"The bots and disruptor shield will take care of that for me.")
67 Npc:says(_"Just remember to give me your valuables before you commit suicide.")
68 Npc:says(_"You won't need any money once you're dead, and I could use it, eh?")
69 if (Tux:has_item_equipped("The Super Exterminator!!!") or
70 Tux:has_item_equipped("Exterminator")) then
71 Npc:says(_"Also, I would not rely on your Exterminator this time.")
72 Npc:says(_"You'll be dead before you manage to reload this gun.")
73 end
74 hide("node2") show("node3")
75 end,
76 },
77 {
78 id = "node3",
79 text = _"Thanks for the advice.",
80 code = function()
81 Npc:says(_"You're dead if you don't take it.")
82 hide("node3")
83 end,
84 },
85 {
86 id = "node99",
87 text = _"I'll be going then.",
88 code = function()
89 Npc:says_random(_"Finally.",
90 _"Don't come back.",
91 _"It is dangerous here.",
92 _"Leave and stay away.")
93 hide("node2", "node3") show("node1")
94 end_dialog()
95 end,
96 },
97 }