Debian Codegraph @

data/storyline/act1/dialogs/Town-614.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 BACKSTORY = "$$NAME$$s defend the Town. They will offer and provide their product history, advertising its manufacturer, on request."
22 WIKI]]--
23
24 local Npc = FDrpg.get_npc()
25 local Tux = FDrpg.get_tux()
26
27 return {
28 EveryTime = function()
29 show("node0", "node4", "node5", "node99")
30 end,
31
32 ------------------------------
33 -- 614_sub
34 --
35 {
36 topic = "614_sub",
37 generator = include("614_sub"),
38 },
39 --
40 ------------------------------
41
42 {
43 id = "node0",
44 text = _"Who are you?",
45 code = function()
46 push_topic("614_sub")
47 -- call 614_sub subdialog
48 next("614_sub.everytime")
49 end,
50 },
51 {
52 -- called after the end of 614_sub subdialog
53 id = "after-614_sub",
54 code = function()
55 pop_topic()
56 hide("node0")
57 end,
58 },
59 {
60 id = "node4",
61 text = _"Have you detected any hostile bot activity?",
62 code = function()
63 Npc:says(_"No. The hostiles have not shown up within the last 24 hours.")
64 hide("node4")
65 end,
66 },
67 {
68 id = "node5",
69 text = _"What are your orders?",
70 code = function()
71 Npc:says(_"My orders are to protect the living beings in this town from attacks by hostile bots.")
72 Npc:says(_"This has top priority. There are no other priorities.")
73 hide("node5")
74 end,
75 },
76 {
77 id = "node99",
78 text = _"See you later.",
79 code = function()
80 Npc:says(_"Resuming guard program....")
81 end_dialog()
82 end,
83 },
84 }