Debian Codegraph @

data/storyline/act1/dialogs/614_cryo.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 = { "Robotic" },
21 PURPOSE = "$$NAME$$ is the next bot Tux encounters in the game. It provides some background story about bots during The Great Assault.",
22 BACKSTORY = "$$NAME$$ defends the Cryogenic Laboratory. $$NAME$$ offers and will provide its product history, advertising its manufacturer, on request."
23 WIKI]]--
24
25 local Npc = FDrpg.get_npc()
26 local Tux = FDrpg.get_tux()
27
28 return {
29 EveryTime = function()
30 show("node0", "node4", "node5", "node99")
31 end,
32
33 ------------------------------
34 -- 614_sub
35 --
36 {
37 topic = "614_sub",
38 generator = include("614_sub"),
39 },
40 --
41 ------------------------------
42
43 {
44 id = "node0",
45 text = _"Who are you?",
46 code = function()
47 push_topic("614_sub")
48 -- call 614_sub subdialog
49 next("614_sub.everytime")
50 end,
51 },
52 {
53 -- called after the end of 614_sub subdialog
54 id = "after-614_sub",
55 code = function()
56 pop_topic()
57 Npc:set_name("614 - Cryo Lab Guard Bot")
58 hide("node0")
59 end,
60 },
61 {
62 id = "node4",
63 text = _"Have you detected any hostile bot activity?",
64 code = function()
65 Npc:says(_"Order Received. Initiating proximity energy level scan...")
66 Npc:says(_"***** Proximity Scan Results *****", "NO_WAIT")
67 if (not HF_FirmwareUpdateServer_uploaded_faulty_firmware_update) then
68 Npc:says(_"Hostile Numeric Presence: [b]HIGH[/b]", "NO_WAIT")
69 Npc:says(_"Enemy Energy Levels: [b]LOW[/b]", "NO_WAIT")
70 Npc:says(_"Threat Degree Analysis: [b]MODERATE[/b]", "NO_WAIT")
71 else
72 Npc:says(_"Hostile Numeric Presence: [b]NONE[/b]", "NO_WAIT")
73 Npc:says(_"Threat Degree Analysis: [b]NO THREAT DETECTED[/b]", "NO_WAIT")
74 end
75 if (cmp_obstacle_state("CryoOuterGate", "closed")) then
76 Npc:says(_"Cryo Complex Gates Status: [b]CLOSED[/b]")
77 else
78 Npc:says(_"Cryo Complex Gates Status: [b]OPEN[/b]")
79 end
80 hide("node4")
81 end,
82 },
83 {
84 id = "node5",
85 text = _"What are your orders?",
86 code = function()
87 Npc:says(_"Primary objective: Protect the living beings inside this complex from attacks by hostile bots.")
88 Npc:says(_"Secondary objective: Protect facility by locking outer gates if Threat Degree Analysis: [b]HIGH[/b].")
89 cryo_614_lock_gate = true
90 hide("node5")
91 end,
92 },
93 {
94 id = "node99",
95 text = _"See you later.",
96 code = function()
97 Npc:says(_"Resuming guard program.")
98 end_dialog()
99 end,
100 },
101 }