Debian Codegraph @

data/storyline/act1/dialogs/Jasmine.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", "Reserved" },
21 MARKERS = { NPCID1 = "Kevin" },
22 RELATIONSHIP = {
23 {
24 actor = "$$NPCID1$$",
25 text = "$$NAME$$ is $$NPCID1$$\'s robotic girlfriend and creation."
26 }
27 }
28 WIKI]]--
29
30 local Npc = FDrpg.get_npc()
31 local Tux = FDrpg.get_tux()
32
33 return {
34 FirstTime = function()
35 Jasmine_count = 0
36 show("node0")
37 end,
38
39 EveryTime = function()
40 show("node99")
41 end,
42
43 {
44 id = "node0",
45 text = _"Hi! I'm new here.",
46 code = function()
47 Npc:says(_"Yes. Hello. What do you want?")
48 hide("node0") show("node1", "node8")
49 end,
50 },
51 {
52 id = "node1",
53 text = _"Who are you?",
54 code = function()
55 Npc:says(_"People call me Jasmine...")
56 Npc:says(_"That is not my real name, but it will do for now.")
57 Npc:set_name("Jasmine")
58 hide("node1") show("node2", "node3", "node4", "node5")
59 end,
60 },
61 {
62 id = "node2",
63 text = _"What are you doing in Kevin's place?",
64 code = function()
65 Npc:says(_"I live with him, stupid.")
66 Npc:says(_"I like him. He... He is very much like me.")
67 Npc:set_name("Jasmine - Girlfriend of a true Hacker")
68 hide("node2")
69 end,
70 },
71 {
72 id = "node3",
73 text = _"How are you?",
74 code = function()
75 Npc:says(_"Annoyed. Now leave me alone.")
76 hide("node3")
77 end,
78 },
79 {
80 id = "node4",
81 text = _"Why does such a nice lady act so harshly? Can't we all just get along?",
82 code = function()
83 Npc:says(_"No.")
84 hide("node4")
85 end,
86 },
87 {
88 id = "node5",
89 text = _"What are you up to?",
90 code = function()
91 Npc:says(_"Nothing. Quit asking questions.")
92 Npc:says(_"Don't bore me.")
93 hide("node5")
94 end,
95 },
96 {
97 id = "node8",
98 text = _"You are the most beautiful human I have ever seen.",
99 code = function()
100 Npc:says(_"And you are at least a quarter wrong.")
101 Tux:says(_"You're so cute, baby seals and polar bears sent each other pictures of you.")
102 Npc:says(_"Now, please get out of my sight.")
103 hide("node8") show("node9")
104 end,
105 },
106 {
107 id = "node9",
108 text = _"Will you marry me?",
109 code = function()
110 Npc:says(_"Forget it.")
111 Tux:says(_"Roses are red,")
112 Tux:says(_"Violets are blue,")
113 Tux:says(_"All of my base,")
114 Tux:says(_"Are belong to you.")
115 Npc:says(_"...")
116 hide("node9")
117 end,
118 },
119 {
120 id = "node99",
121 text = _"See you later.",
122 code = function()
123 if (Jasmine_count < 2) then
124 Jasmine_count = Jasmine_count + 1
125 Npc:says(_"Yeah. Whatever.")
126 end_dialog()
127 else
128 Npc:says(_"Yeah. Wha -- SIGSEGV.")
129 Npc:says(_"Segmentation fault.")
130 Tux:says(_"Huh?")
131 Npc:says(_"Traceback printed to stdout.")
132 Npc:says(_"Kernel panic in module: Jasmine")
133 Npc:says(_"Buffer overrun in anger.c:1532")
134 Npc:says(_"Core dumped. System halted.")
135 Jasmine_count = 0
136 Npc:drop_dead()
137 Jasmine_sigsegv = true
138 end
139 end,
140 },
141 }