Debian Codegraph @

data/storyline/act1/dialogs/Arthur.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 = { "Elusive", "Obsessed", "Friendly" },
21 BACKSTORY = "$$NAME$$ is a game programmer.",
22 WIKI]]--
23
24 local Npc = FDrpg.get_npc()
25 local Tux = FDrpg.get_tux()
26
27 return {
28 FirstTime = function()
29 Tux:says(_"Hello!")
30 Npc:says(_"Bonjour!")
31 --; TRANSLATORS: %s = Tux:get_player_name()
32 Tux:says(_"I'm %s, and who are you?", Tux:get_player_name())
33 Npc:says(_"My name is Arthur.")
34 Npc:set_name("Arthur")
35 show("node1")
36 end,
37
38 EveryTime = function()
39 if (Arthur_node_1 == "node2") then
40 show("node2")
41 elseif (Arthur_node_1 == "node3") then
42 show("node3")
43 end
44
45 show("node99")
46 end,
47
48 {
49 id = "node1",
50 text = _"What are you doing here?",
51 code = function()
52 Npc:says(_"I'm programming.")
53 Tux:says(_"Oh, interesting.")
54 Tux:says(_"And, hmm, what are working on?")
55 Npc:says(_"My current project is a role playing game.")
56 Npc:says(_"The main character will be a penguin which, well, has to save the world basically.")
57 Tux:says(_"Oh, interesting! Tell me when you have it ready, I'd love to take a look at it.")
58 Npc:says(_"It's going to be ready when it's going to be ready.")
59 Tux:says(_"Sure, take your time.")
60 Npc:set_name("Arthur - Game developer")
61 hide("node1")
62 Arthur_node_1 = "node2"
63 end,
64 },
65 {
66 id = "node2",
67 text = _"Hi Arthur, how is your game going?",
68 code = function()
69 Tux:says(_"Do you mind sharing any more details?")
70 Npc:says(_"Hmm, there are still some parts to be finished.")
71 Npc:says(_"Do you think there should be some kind of zombie apocalypse which the player will have to deal with?")
72 Tux:says(_"Of course! Sounds cool!")
73 Arthur_node_1 = "node3"
74 hide("node2")
75 end,
76 },
77 {
78 id = "node3",
79 text = _"Hey, is your game finished already?",
80 code = function()
81 Npc:says(_"I'm doing the final polishing right now.")
82 Tux:says(_"Ah ok.")
83 hide("node3")
84 end,
85 },
86 {
87 id = "node99",
88 text = _"I have to go now.",
89 code = function()
90 Npc:says_random(_"See you later.",
91 --; TRANSLATORS: Au revoir = See you later in french
92 _"Au revoir.")
93 end_dialog()
94 end,
95 },
96 }