Debian Codegraph @

scripts/dialogues/talan_start.py

raw symbols SCIP
1 import dialogue
2 import adonthell
3
4 # -- pygettext support
5 def _(message): return message
6
7 class talan_start (dialogue.base):
8 text = [None,\
9 _("Oh, hullo again, $name."),\
10 _("Listen, I really am sorry about that fuss at the gate. I hope you will not hold it against me."),\
11 _("Please do not mention it again. I assure you that I hold no grudge against you."),\
12 _("Oh... that. Yes, how may I help you?"),\
13 _("Hello, Talan. Look, I have a couple more questions about the theft."),\
14 _("In the morning, of course, I heard that Master Fingolson's gems had been stolen and that Lady Silverhair was suspected of the theft."),\
15 _("So you did not see or hear anything out of place that night?"),\
16 _("No... no, not at all."),\
17 _("If you do not have any more questions ..."),\
18 _("No, thank you, I have a lot of work to do. You have been most helpful."),\
19 _("I hear that Alek Endhelm was very interested in Fingolsons business. Have you noticed him doing anything suspicious?"),\
20 _("Oh, he's a nasty sort, he is, sir. But other than being a busybody, I haven't noticed him doing anything that would lead me to believe that he is the thief."),\
21 _("Now, if you don't have any more questions..."),\
22 _("I wish you had not lied to me about the night of the theft."),\
23 _("Wh... what do you mean?"),\
24 _("You were not, as you told me, manning your post the whole night."),\
25 _("Now you look here! I was, and I do not appreciate you calling me a liar."),\
26 _("Oh. So you do know ... ?"),\
27 _("Yes I do. And I believe you left your post that night, did you not, Talan?"),\
28 _("Yes, I did. But please do not tell Jelom, sir! He will have my hide for sure if he finds out! Please, I beg you!"),\
29 _("No, you missed it. Because you were off singing, weren't you?"),\
30 _("I'm afraid I was. Oh what terrible mistake! I am so sorry, $name. I did not know about the noise! It is my fault that Lady Silverhair is being held in her room!"),\
31 _("Calm down, Talan. Now I can prove that something strange happened that night at least."),\
32 _("And why was Lady Silverhair accused?"),\
33 _("Well, the most obvious reason is of course that she was interested in the gems, and made a trip here just to buy them."),\
34 _("But she felt the quality of the gems was too low, and she is hardly pressed for money, so why would she turn around and steal the gems?"),\
35 _("Well, according to Jelom, what better way to throw suspicion off yourself then to claim that the stones are of low quality?"),\
36 _("Ah, Jelom said that, did he? What else did he say?"),\
37 _("Who is Jelom? Your superiour?"),\
38 _("He is the other guard here. He is not exactly my superiour, but he is older than me and has been here much longer, so he is kind of in charge."),\
39 _("He found her behaviour suspicious. I mean, she is all high and mighty, acting above the rest of us, and she obviously doesn't like dwarves ..."),\
40 _("Wait! Why does everybody believe that she has an aversion to dwarves?"),\
41 _("Well, the way I heard the story, Bjarn made a point of insulting the entire elven race, loudly and publicly, upon her arrival!"),\
42 _("Well, as I heard it told, she had quite an argument with Master Fingolson in which she insulted the quality of his gems and then the dwarven race!"),\
43 _("Well, Master Fingolson can be, um ... blunt, I guess, at times, but ..."),\
44 _("Wasn't the argument rather Fingolson's fault, then?"),\
45 _("Well, I... ah, perhaps..."),\
46 _("Maybe you should speak to Jelom. He knows more about the theft and his reasons for suspecting her than I do..."),\
47 _("Well, you've talked to Jelom. You know what he thinks..."),\
48 _("And so I shall. Where is he?"),\
49 _("Yes. I do know what he thinks. That, however, does not help me too much."),\
50 _("He is guarding the hallway leading to Lady Silverhair's room."),\
51 _("Well, I shall go and talk to him, then. Thank you and good day."),\
52 _("Ah, $name, hello."),\
53 _("Hi there, Talan. Look, I am sorry that ..."),\
54 _("No, you did what you had to do, and it was only right that I got in trouble for leaving my post. And I owe you a big favour for covering for me!"),\
55 _("No, I understand. It was because of me shirking my duty that I did not see what happened that night. You had no choice, and I do not hold a grudge against you for doing your duty."),\
56 _("All the same, I am still sorry for getting you into trouble with Jelom. Thank you for understanding."),\
57 _("No, it was the least I could do. Do not worry about the favour."),\
58 _("I don't know if there is any coincidence, but this visit of Master Fingolson is very unusual. You see, he is quite a regular here. He comes every other month or so, and usually stays for a week before going back."),\
59 _("Usually he shows up a few days before the client, just to relax, I guess. Until about a year ago, he would spend this time in the common room, drinking ale and talking with Erek, his apprentice."),\
60 _("About a year ago, things changed. When he came, he came alone. He still showed up a couple of days ahead of the client, but he no longer visited the common room much. He just stayed down in his room."),\
61 _("But at this most recent visit, Bjarn got here the morning of Lady Silverhair's arrival, which was a little strange. What's more, he brought Erek again, although I thought he had finished his apprenticeship and moved on long ago."),\
62 _("I see ... that is strange. Thanks for telling me, Talan!"),\
63 _("Couldn't it be that you missed what there was to see or hear?"),\
64 _("You think this argument is enough to prove Lady Silverhair's guilt?"),\
65 _("I ... I don't know."),\
66 _("And you say Lady Silverhair was accused because she \"obviously doesn't like dwarves\"!?"),\
67 _("True, but practically anyone at the Inn could have thrown an eye on the stones."),\
68 _("According to Jelom there is no doubt that Lady Silverhair is the thief."),\
69 _("I'm anxious to hear his reasoning, then."),\
70 _("I should think so Talan, considering the discomfort you caused my mistress."),\
71 _("What has happened cannot be undone, I fear. But perhaps there is a little detail that might help to clear the Lady's reputation."),\
72 _("I've been told about a noise that night, but you say you heard nothing."),\
73 _("Should I rather call you a bard then?"),\
74 _("A ... noise? What noise?"),\
75 _("The noise of someone singing, Talan."),\
76 _("According to Oliver, somebody must have been in the stables that night."),\
77 _("Well, I did not notice anything, $name. That's the truth!"),\
78 _("It had better be, my friend."),\
79 _("If I want to prove Lady Silverhair's innocence, I have little other choice, I fear."),\
80 _("I, I understand. I am very sorry, $name ..."),\
81 _("Sure, but there is not much to tell. I was out here, making my rounds, walking around the yard like every other night."),\
82 _("Thank you sir. By the way, I am Talan."),\
83 _("I am $name, and I'd like to learn a little more about the theft."),\
84 _("Why was the Lady Silverhair accused?"),\
85 _("Are you sure you haven't noticed anything out of place that night?"),\
86 _("But Lady Frostbloom told me about a noise she heard."),\
87 _("Frostbloom? Then it must have been a Yeti, I suppose."),\
88 _("But seriously, I did not notice anything. I'm sorry, $name.")]
89
90 loop = [8, 9]
91
92 cond = [\
93 "adonthell.gamedata_get_quest(\"demo\").get_val (\"silverhair_free\") != 1\n",\
94 "self.the_npc.get_val (\"apologised\") != 1\n",\
95 "adonthell.gamedata_get_quest(\"demo\").get_val (\"know_alek_eavesdrop\") == 1\n",\
96 "adonthell.gamedata_get_quest(\"demo\").get_val (\"know_talan_singing\") == 1 and self.the_npc.get_val (\"heard_nothing\") == 1\n",\
97 "adonthell.gamedata_get_quest(\"demo\").get_val (\"know_talan_singing\") == 1\n",\
98 "adonthell.gamedata_get_quest(\"demo\").get_val (\"know_low_quality\") == 1\n",\
99 "adonthell.gamedata_get_quest(\"demo\").get_val (\"know_jelom\") != 2\n",\
100 "adonthell.gamedata_get_quest(\"demo\").get_val (\"know_bjarns_insult\") == 1\n",\
101 "adonthell.gamedata_get_quest(\"demo\").get_val (\"told_on_talan\") < 1\n",\
102 "adonthell.gamedata_get_quest(\"demo\").get_val (\"know_talan_singing\") == 1 and adonthell.gamedata_get_quest(\"demo\").get_val (\"know_olivers_noise\") != 1\n",\
103 "adonthell.gamedata_get_quest(\"demo\").get_val (\"know_olivers_noise\") == 1\n",\
104 "adonthell.gamedata_get_quest(\"demo\").get_val (\"know_talan_singing\") != 2\n",\
105 "adonthell.gamedata_get_quest(\"demo\").get_val (\"know_noise\") & 2 == 2\n"]
106
107 code = [\
108 "self.the_npc.set_val (\"apologised\" , 1)\n",\
109 "self.the_npc.set_val (\"heard_nothing\" , 1)\n",\
110 "adonthell.gamedata_get_quest(\"demo\").set_val (\"know_talan_singing\" , 2)\n",\
111 "adonthell.gamedata_get_quest(\"demo\").set_val (\"know_jelom\" , 1)\n",\
112 "adonthell.gamedata_get_quest(\"demo\").set_val (\"told_on_talan\" , 2)\n"]
113
114 # -- (speaker, code, ((text, operation, condition), ...))
115 dlg = [\
116 (None, -1, ((2, 0, 1), (1, 1, 0), (44, 1, -1), )),\
117 ("Default", -1, ((14, 0, 3), (5, 1, -1), )),\
118 ("Default", 0, ((3, 0, -1), )),\
119 (None, -1, ((74, 0, -1), )),\
120 ("Default", -1, ((76, 0, -1), (77, 0, 11), (11, 0, 2), )),\
121 (None, -1, ((4, 0, -1), )),\
122 ("Default", -1, ((24, 0, -1), (7, 0, -1), )),\
123 (None, -1, ((8, 0, -1), )),\
124 ("Default", 1, ((9, 0, -1), )),\
125 ("Default", -1, ((24, 0, -1), (78, 0, 12), (10, 0, -1), (55, 0, 9), (11, 0, 2), (68, 0, 10), )),\
126 (None, -1, ()),\
127 (None, -1, ((12, 0, -1), )),\
128 ("Default", -1, ((13, 0, -1), )),\
129 ("Default", -1, ((76, 0, -1), (10, 0, -1), (77, 0, 11), )),\
130 (None, -1, ((15, 0, -1), )),\
131 ("Default", -1, ((64, 0, -1), (16, 0, -1), )),\
132 (None, -1, ((17, 0, -1), )),\
133 ("Default", -1, ((64, 0, -1), (65, 0, -1), )),\
134 ("Default", -1, ((19, 0, -1), )),\
135 (None, -1, ((20, 0, -1), )),\
136 ("Default", -1, ((71, 0, -1), )),\
137 (None, -1, ((22, 0, -1), )),\
138 ("Default", 2, ((23, 0, -1), )),\
139 (None, -1, ()),\
140 (None, -1, ((25, 0, -1), )),\
141 ("Default", -1, ((59, 0, -1), (26, 0, 5), )),\
142 (None, -1, ((27, 0, -1), )),\
143 ("Default", -1, ((29, 0, 6), (28, 1, -1), )),\
144 (None, -1, ((31, 0, -1), )),\
145 (None, -1, ((30, 0, -1), )),\
146 ("Default", 3, ((31, 0, -1), )),\
147 ("Default", -1, ((32, 0, -1), )),\
148 (None, -1, ((34, 0, -1), )),\
149 (None, -1, ((35, 0, -1), )),\
150 ("Default", -1, ((33, 0, 7), (56, 0, -1), )),\
151 ("Default", -1, ((36, 0, -1), (58, 0, -1), )),\
152 (None, -1, ((57, 0, -1), )),\
153 ("Default", -1, ((38, 0, 6), (39, 1, -1), )),\
154 ("Default", -1, ((40, 0, -1), (43, 0, -1), )),\
155 ("Default", -1, ((41, 0, -1), )),\
156 (None, -1, ((42, 0, -1), )),\
157 (None, -1, ()),\
158 ("Default", -1, ((43, 0, -1), )),\
159 (None, -1, ()),\
160 ("Default", -1, ((45, 0, -1), )),\
161 (None, -1, ((46, 0, 8), (47, 1, -1), )),\
162 ("Default", -1, ((62, 0, -1), (49, 0, -1), )),\
163 ("Default", 4, ((48, 0, -1), )),\
164 (None, -1, ()),\
165 (None, -1, ()),\
166 ("Default", -1, ((51, 0, -1), )),\
167 ("Default", -1, ((52, 0, -1), )),\
168 ("Default", -1, ((53, 0, -1), )),\
169 ("Default", -1, ((54, 0, -1), )),\
170 (None, -1, ()),\
171 (None, -1, ((15, 0, -1), )),\
172 (None, -1, ((37, 0, -1), )),\
173 ("Default", -1, ((38, 0, 6), (39, 1, -1), )),\
174 (None, -1, ((37, 0, -1), )),\
175 (None, -1, ((60, 0, -1), )),\
176 ("Default", -1, ((29, 0, 6), (61, 1, -1), )),\
177 (None, -1, ((31, 0, -1), )),\
178 (None, -1, ((63, 0, -1), )),\
179 ("Default", -1, ((50, 0, -1), )),\
180 (None, -1, ((66, 0, -1), )),\
181 (None, -1, ((18, 0, -1), )),\
182 ("Default", -1, ((68, 0, 10), (67, 0, -1), )),\
183 (None, -1, ((18, 0, -1), )),\
184 (None, -1, ((69, 0, -1), )),\
185 ("Default", -1, ((21, 0, 4), (70, 1, -1), )),\
186 (None, -1, ()),\
187 (None, -1, ((72, 0, -1), )),\
188 ("Default", 2, ()),\
189 ("Default", -1, ((6, 0, -1), )),\
190 ("Default", -1, ((75, 0, -1), )),\
191 (None, -1, ((73, 0, -1), )),\
192 (None, -1, ((25, 0, -1), )),\
193 (None, -1, ((8, 0, -1), )),\
194 (None, -1, ((79, 0, -1), )),\
195 ("Default", -1, ((80, 0, -1), )),\
196 ("Default", -1, ((21, 0, 4), ))]
197
198
199 def __init__(self, p, n):
200 self.namespace = globals ()
201 self.the_player = p
202 self.the_npc = n