Debian Codegraph @

data/storyline/act2/dialogs/CryonicsBlock-Terminal.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
20 local Npc = FDrpg.get_npc()
21 local Tux = FDrpg.get_tux()
22
23 return {
24 EveryTime = function()
25 play_sound("effects/Menu_Item_Deselected_Sound_0.ogg")
26 Npc:says(_"[b]Main Cryonics Containment Gate[/b]", "NO_WAIT")
27 Npc:says(_"This is a security area. Please identify or logout.")
28 hide("node1")
29 show("node0", "node99")
30 end,
31
32 {
33 id = "node0",
34 --; TRANSLATORS: command, use lowercase here
35 text = _"identify",
36 code = function()
37 cli_says(_"Identification: ")
38 if (takeover(18)) then
39 play_sound("effects/Menu_Item_Deselected_Sound_0.ogg")
40 Tux:says(_"Tux", "NO_WAIT")
41 Npc:says(_"[b]ERROR[/b] Unable to execute open.exe.")
42 Npc:says(_"Try using commands: chkdsk logout")
43 hide("node0") show("node1")
44 else
45 Tux:says(_"Tux", "NO_WAIT")
46 play_sound("effects/Menu_Item_Selected_Sound_1.ogg")
47 Npc:says(_"Credentials invalid. Disconnection forced.")
48 end_dialog()
49 end
50 end,
51 },
52 {
53 id = "node1",
54 --; TRANSLATORS: command, use lowercase here
55 text = _"chkdsk",
56 code = function()
57 Npc:says(_"[b]ERROR[/b] Because this terminal was designed not to fail, if failure does occur, there are no tools provided to repair it.", "NO_WAIT")
58 Npc:says(_"[b]ERROR[/b] 'chkdsk' is not recognized as an internal or external command, operable program or batch file.")
59 hide("node1")
60 end,
61 },
62 {
63 id = "node99",
64 --; TRANSLATORS: command, use lowercase here
65 text = _"logout",
66 code = function()
67 cli_says(_"Goodbye")
68 play_sound("effects/Menu_Item_Selected_Sound_1.ogg")
69 end_dialog()
70 end,
71 },
72 }