source: trunk/game/dialogue/drunkard.yaml @ 393

Revision 379, 15.7 KB checked in by zenbitz, 10 years ago (diff)

New techdemo dialogue files

Line 
1#   This file is part of PARPG.
2
3#   PARPG is free software: you can redistribute it and/or modify
4#   it under the terms of the GNU General Public License as published by
5#   the Free Software Foundation, either version 3 of the License, or
6#   (at your option) any later version.
7
8#   PARPG is distributed in the hope that it will be useful,
9#   but WITHOUT ANY WARRANTY; without even the implied warranty of
10#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11#   GNU General Public License for more details.
12
13#   You should have received a copy of the GNU General Public License
14#   along with PARPG.  If not, see <http://www.gnu.org/licenses/>.
15
16---
17NPC: Bart The Drunkard
18AVATAR: gui/icons/npc.png
19START: main_dialog
20
21SECTIONS:
22    main_dialog:
23        - say: "Hey there, back up... no need to gang up on a poor guy!"
24        - responses:
25            -
26              - "Gang up?  There's only one of me!"
27              - first_impression
28              - not pc.met('bart')
29            -
30              - "Glad to see you're feeling better."
31              - gratitude
32              - pc.met('bart') and not quest.hasFinishedQuest('beer')
33            -
34              - "Same old Bart,  I see."
35              - old_pals
36              - pc.met('bart')
37            -
38              - "Ha, you better sleep it off, buddy."
39              - end
40
41    first_impression:
42        - say: "Oh... yeah... sorry.  My vision goes a little funny sometimes.  Name's Bart."
43        - meet: bart
44        - responses:
45            -
46              - "Are you drunk?"
47              - elaborate_beer
48              - not quest.hasQuest('beer') and not quest.hasFinishedQuest('beer')
49            # above should always be true since there is no other way to get the quest 
50            -
51              - "Wow, you're really hammered.  I'll come back when you're sober."
52              - end
53 
54    elaborate_beer:
55        - say: "Well, not for much longer, unfortunately.  My stash is just about run dry.  That bastard, Jacob has a still, but who can afford his prices!  He basically has a monopoly.  No one else around here knows how to brew us up some more booze!"
56        - responses:
57            -
58              - "Wow, what a jerk.  Well, I'll be glad to lend a hand to such a noble task. Assuming you guys will supply the raw materials."
59              - quest_beer
60            -
61              - "Hey, the man is entitled to run his business.  I'm not going to mess up his meal ticket."
62              - old_pals
63            -
64              - "Alcohol is work of the Devil!!"
65              - end
66       
67    quest_beer:           
68         - say:  "You sir, are a gentleman and a scholar.  I am sure folks around here will help you find what you need."
69         - start_quest: quests/beer.yaml
70         - responses:
71             -
72               - "You aren't even going to offer me a reward?"
73               - reward_query
74             -
75               - "Well, I'll get right on it.  Finally, a worthwhile test of my scrounging skills."
76               - old_pals
77             
78    old_pals:
79         - say: "So what can I do for you?"
80         - responses:
81             -
82               - "Hey, Bart - here is my shopping list I need to brew us up something tasty.  Can you help?"
83               - help_beer
84               - quest.hasQuest('beer') and quest['beer'].isGoalValue('beer_instructions') and not quest.hasFinishedQuest('beer')
85             -
86               - "By the way, Bart, I am looking for a chap named 'Pekko', you know were I can find him?"
87               - help_fedex
88               - quest.hasQuest('fedex') and not quest.hasFinishedQuest('fedex')
89             -
90               - "Hey, try my fantastic brew!"
91               - beer_tasting
92               - quest['beer'].getValue('beer_quality') != 0
93             -
94               - "Did you hear about Pekko?"
95               - dead_pekko
96             -
97               - "Well, I am off to make some beer, wish me luck!"
98               - end
99               - quest.hasQuest('beer') and not quest.hasFinishedQuest('beer')
100             -
101               - "Adios, Bart"
102               - end
103               - not quest.hasQuest('beer') or quest.hasFinishedQuest('beer')
104             -
105               - "Pekko was murdered.  And someone's responsible."
106               - murder_accuse
107               - quest['fedex'].isGoalValue('found_pekko')
108 
109    help_beer:
110        - say: "Well, what do you need?"
111        - responses:
112           -
113             - "Where do you folks get water from.  The more pure, the better."
114             - help_water
115             - not quest['fedex'].isGoalValue('drunkard_water_asked')
116             # the idea is that Bart's odd response is the clue that he killed Pekko
117             # and put the body in the tank.  The conditional is to delete this option
118             # after it's been asked once.
119           -
120             - "Some kind of grain, or fruit or something."
121             - help_grain
122           -
123             - "I'm really looking for some brewer's yeast."
124             - help_yeast
125           -
126             - "I need a pot to cook the mash in."
127             - help_pot
128           -
129             - "It would be great if I had some bottles to put the brew in!"
130             - help_bottles
131           -
132             - "I think I can handle it from here."
133             - back
134
135    help_water:
136        - say: "Water!  I dunno.  I never trust the stuff.  Guess you could melt snow or something."
137        - responses:
138           -
139             - "Yeah, I suppose I could at that.  What does everyone drink when the snow melts?"
140             - snow_melting
141
142    help_grain:
143        - say: "You mean like wheat, hops, barley?  I dunno about that, but if you poke around you should be able to find something with enough starch to ferment."
144        - responses:
145           -
146             - "Yeah, but where?"
147             - back
148
149    help_yeast:
150        - say: "Good luck finding that!"
151        - responses:
152           -
153             - "This is going to be harder than I thought"
154             - back
155
156    help_pot:
157        - say: "I'm pretty sure the quartermaster has one, back in the store room.  She can be hard to get stuff out of, though.  It's kind of her job to be stingy"
158        - responses:
159           -
160             - "Fantastic, I'll give the quartermaster a try."
161             - back
162
163    help_bottles:
164        - say: "I don't know, myself.  One of the scavenging teams must have brought in something."
165        - responses:
166           -
167             - "Scavenging teams?"
168             - explain_scavenging
169           -
170             - "OK, I'll poke around some more."
171             - back
172           
173    explain_scavenging:
174        - say: "Yeah, when the weather is good, we send out teams to dig around in the ruins and forests.  This place takes quite a bit of upkeep you know."
175        - responses:
176            -
177              - "Ah, makes sense."
178              - back help_beer
179              # Note: This could be another adventure hook for the PC to make some time as a scavanger.  Not for the demo
180
181    snow_melting:
182        - say: "Like I said, I never drink the stuff."
183        - set_value:
184            quest: 'fedex'
185            variable: "drunkard_water_asked"
186            value: 1
187
188        - responses:
189            -
190              - "Well, alrighty then."
191              - back help_beer
192             
193    reward_query:
194        - say: "I would think that getting your own booze ration would be reward enough!"
195        - responses:
196            -
197              - "I am fond of a bender now and again, it's true."
198              - old_pals
199            -
200              - "Personally, I stay away from alcohol.  Dulls the senses.  But I suppose I'll help you out of the goodness of my heart."
201              - old_pals
202             
203    dead_pekko:
204       - say: "Dead, huh.  That's a shame."
205       - responses:
206          -
207            - "You seem really broken up about it."
208            - dead_discuss
209          -
210            - "You don't seem very surprised to hear."
211            - dead_discuss_ii
212   
213    dead_discuss:
214       - say: "The kid was a problem.  It's no surprise to me that someone had it in for him."
215       - responses:
216          -
217            - "So you are saying that a lot of people wanted him dead?"
218            - dead_discuss_ii
219          -
220            - "Had it in for him... I didn't say he was murdered!"
221            - murder_accuse
222   
223    dead_discuss_ii:
224       - say: "Well, I'm sure it was just an accident.  It's a dangerous world today."
225       - responses:
226          -
227            - "Accident, huh.  Interesting theory"
228            - back old_pals
229          -
230            - "Oh, I don't think it was an accident at all.  I think he was murdered."
231            - murder_accuse
232   
233    help_fedex:
234       - say: "No, I think maybe he left town."
235       - responses:
236          -
237            - "Really?  Do you know when he'll back"
238            - where_pekko
239   
240    help_fedex:
241       - say: "No idea."
242       - responses:
243          -
244            - "Thanks..."
245            - back old_pals
246   
247    murder_accuse:
248       - say: "Wait... so .. you are the junior detective now?  How do you know he was murdered?"
249       - set_value:
250            quest: 'fedex'
251            variable: 'reported_murder'
252            value: quest['fedex'].getValue('reported_murder).add('pekko')
253            # I suspect that will not work, it certainly could be cleaner.
254       - responses:
255          -
256            - "His head was caved in, and his arm was broken from being forced into the snow hopper at the top of the cistern."
257            - discuss_murder
258          -
259            - "I know he was murdered, and I know you did it.  But I don't know why."
260            - accuse_bart
261          -
262            - "I think we both know how he was killed, Bart.  The question remains, who do I tell."
263            - blackmail_bart
264            #- need some conditional to test that PC has not already reported murder.
265   
266    discuss_murder:
267       - say: "Maybe he just fuckin' fell."
268       - responses:
269          -
270            - "Maybe.  But I'll get to the bottom of this."
271            - end
272          -
273            - "I don't think so, I think it was you.  The question is, why?"
274            - accuse_bart
275   
276    accuse_bart:
277        - say: "Look, stranger...  I don't know who you think you are but this isn't your place.  The fact is, Pekko didn't have many friends, and even his friends didn't even really like him."
278        - set_value:
279            quest: 'fedex'
280            variable: 'accused_of_murder'
281            value: 'pekko'
282        - responses:
283            -
284              - "What about Janie?"
285              - janie_pekko_connection
286              - quest.hasFinishedQuest('fedex')
287            -
288              - "Whatever, murderer.  I'll see you hang."
289              - end
290
291    blackmail_bart:
292        - say: "Oh, so that's how it's going to be.  And what is the cost of your silence?"
293        - responses:
294            -
295              - "That's right, scumbag.  I'm going to squeeze you until you're dry."
296              - greedy_blackmail
297            -
298              - "That's a pretty nice coat you go there, I'll take that..."
299              - light_blackmail
300            -
301              - "Hey, I'm not a greedy bastard.  How about you just owe me?"
302              - delayed_blackmail
303            -
304              - "Ha, just joshing with ya.  Near as I can tell the guy deserved it."
305              - feint_blackmail
306 
307    greedy_blackmail:
308        - say: "You haven't got the guts.  My friends are powerful, and you ain't got nuthin' on me.  I'm calling your bluff."
309        - responses:
310            -
311              - "Guess we'll find out HOW powerful, now, won't we!"
312              - end
313
314    light_blackmail:
315        - say: "My coat, huh.  That's it?  I guess life is pretty cheap these days.  Here ya go."
316        - get_stuff: coat
317        - responses:
318            -
319              - "Hey, pretty nice.  Fits too!  Catch ya later, Bart."
320              - end
321
322    delayed_blackmail:
323        - say: "OK, so I owe you one.  You never know when you might need a favor."
324        - responses:
325            -
326              - "That's what I was thinking."
327              - old_pals
328
329    feint_blackmail:
330        - say: "Very funny.  You're OK by me, though."
331        - responses:
332            -
333              - "Likewise, Bart.  This could be the result of a bee-you-ti-ful friendship"
334              - old_pals
335
336    janie_pekko_connection:
337        - say: "Ah, young Janie.  She's a good kid, and loyal.  Pekko brought here in here, you know. She owes him."
338        - responses:
339            -
340              - "I see."
341              - back
342               
343    beer_tasting:
344       - say: "You are a genius, sir, a genius. [Bart holds bottle up to the light]  Looks great. How did it come out?"
345       - responses:
346           -
347             - "I think it's just about perfect"
348             - best_beer
349             - quest['beer'].getValue('beer_quality') >= 5
350           -
351             - "It took some doing, but I think I got it down."
352             - good_beer
353             - quest['beer'].getValue('beer_quality') == 4
354           -
355             - "I am pretty happy about it, given the circumstances."
356             - decent_beer
357             - quest['beer'].getValue('beer_quality') == 3
358           -
359             - "It's not my best work, but it will get you hammered."
360             - ok_beer
361             - quest['beer'].getValue('beer_quality') == 2
362           -
363             - "I hope it turned out OK."
364             - bad_beer
365             - quest['beer'].getValue('beer_quality') == 1
366           -
367             - "No promises on the the taste..."
368             - poisonous_beer
369             - quest['beer'].getValue('beer_quality') < 0
370           
371    best_beer:
372        - say: "[ Bart drinks the beer] Let the church bells ring!  This stuff is awesome!"
373        - complete_quest: beer
374        - responses:
375           -
376             - "Glad you like it!"
377             - old_pals
378           
379    good_beer:
380        - say: "[ Bart drinks the beer] Nice job, Stranger.  You may fit in around here after all."
381        - complete_quest: beer
382        - responses:
383           -
384             - "Everyone likes a good brew."
385             - old_pals
386           
387    decent_beer:
388        - say: "[ Bart drinks the beer] It's got a decent bite, that's for sure. Drinkable, anyway."
389        - complete_quest: beer
390        - responses:
391           -
392             - "A couple more batches and I can hopefully work the kinks out."
393             - old_pals
394           
395    ok_beer:
396        - say: "[ Bart drinks the beer] Well, it's beer-like.  Odd aftertaste, though."
397        - complete_quest: beer
398        - responses:
399           -
400             - "Yeah, it could use some malt and hops, but it was the best I could do considering."
401             - old_pals
402           
403    bad_beer:
404        - say: "[ Bart drinks the beer, makes a face] You promise that this.. this... stuff will get me drunk???"
405        - complete_quest: beer
406        - responses:
407           -
408             - "It ought to, if you drink enough of it."
409             - old_pals
410           
411    poisonous_beer:
412        - say: "[ Bart drinks the beer, then sits down fast.] Oh... I uh... hmmm... are.. uh, you sure you did this right? [vomits]"
413        #- npc('Bart').poison('beer')
414        # Not sure how to implement poisoning; may not be necessary for the demo
415        - delete_quest: beer
416        - start_quest: quests/beer.yaml
417        - responses:
418           -
419             - "Whoa... that's those old yams... yeah, gotta be the yams. My bad.  I'll try again."
420             - old_pals
421           
422    gratitude:
423        - say: "Ah, Mysterious Stranger, Braumeister of the Frozen North.   Now, if we can only get that still up and running my good chap!"
424        - responses:
425           -
426             - "I got some ideas on that, Bart... "
427             - old_pals
Note: See TracBrowser for help on using the repository browser.