Debian Codegraph @

data/storyline/act1/dialogs/Peter.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 = { "Belligerent", "Resentful" },
21 BACKSTORY = "$$NAME$$ is being held prisoner in the inner citadel for being apart of a resistance movement against the Red Guard."
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 (Tux:has_met("Peter")) then
34 Tux:says_random(_"Hello.",
35 _"Hi there.", "NO_WAIT")
36 Npc:says_random(_"Well, hello again.",
37 _"Hello hello.",
38 _"Welcome back.")
39 end
40 show("node99")
41
42 if (HF_FirmwareUpdateServer_uploaded_faulty_firmware_update) then
43 Npc:says(_"HAHAHA! I heard the bots are dead! You fascists will now all die in hands of a civilian revolution, resistance will prevail, just wait! HAHAHA!")
44 end
45
46 end,
47
48 {
49 id = "node0",
50 text = _"Why are you here?",
51 code = function()
52 Npc:says(_"I'm a political prisoner.")
53 Npc:says(_"Those red fascists put me here.")
54 Npc:says(_"And I guess you are a fascist too, as only Red Guard members are allowed in here.")
55 hide("node0") show("node1")
56 end,
57 },
58 {
59 id = "node1",
60 text = _"What is a fascist?",
61 echo_text = false,
62 code = function()
63 Tux:says(_"What is ...", "NO_WAIT")
64 Npc:says(_"LALALALALA - I'm not hearing you. I have my fingers in my ears and just go - LALALALALA")
65 end,
66 },
67 {
68 id = "node99",
69 text = _"Talk to you later.",
70 code = function()
71 Npc:says(_"Not in your life, Fascist!")
72 end_dialog()
73 end,
74 },
75 }