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

Revision 504, 19.4 KB checked in by barra_parpg, 10 years ago (diff)

Patch by mvbarracuda:

  • Property svn:eol-style set to native
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/drunkard.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 quest.hasFinishedQuest('beer')
33            -
34              - "Same old Bart,  I see."
35              - old_pals
36              - pc.met('bart') and not quest['fedex'].isGoalValue('accused_of_murder')
37            -
38              - "See you later, Killer."
39              - end
40              - pc.met('bart') and quest['fedex'].isGoalValue('accused_of_murder')
41            -
42              - "Ha, you better sleep it off, buddy."
43              - end
44
45    first_impression:
46        - say: "Oh... yeah... sorry.  My vision goes a little funny sometimes.  Name's Bart."
47        - meet: bart
48        - responses:
49            -
50              - "Are you drunk?"
51              - elaborate_beer
52              - not quest.hasQuest('beer') and not quest.hasFinishedQuest('beer')
53            # above should always be true since there is no other way to get the quest 
54            -
55              - "Wow, you're really hammered.  I'll come back when you're sober."
56              - end
57 
58    elaborate_beer:
59        - 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!"
60        - responses:
61            -
62              - "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."
63              - quest_beer
64            -
65              - "Hey, the man is entitled to run his business.  I'm not going to mess up his meal ticket."
66              - old_pals
67            -
68              - "Alcohol is work of the Devil!!"
69              - end
70       
71    quest_beer:           
72         - say:  "You sir, are a gentleman and a scholar.  I am sure folks around here will help you find what you need."
73         - start_quest: quests/beer.yaml
74         - responses:
75             -
76               - "You aren't even going to offer me a reward?"
77               - reward_query
78             -
79               - "Well, I'll get right on it.  Finally, a worthwhile test of my scrounging skills."
80               - old_pals
81             
82    old_pals:
83         - say: "So what can I do for you?"
84         - responses:
85             -
86               - "Hey, Bart - here is my shopping list I need to brew us up something tasty.  Can you help?"
87               - help_beer
88               - quest.hasQuest('beer') and quest['beer'].isGoalValue('beer_instructions') and not quest.hasFinishedQuest('beer')
89             -
90               - "By the way, Bart, I am looking for a chap named 'Pekko', you know were I can find him?"
91               - help_fedex
92               - quest.hasQuest('fedex') and not quest['fedex'].isGoalValue('found_pekko')
93             -
94               - "Hm.  You got a good buzz on, today?"
95               - elaborate_beer
96               - not quest.hasQuest('beer') and not quest.hasFinishedQuest('beer')
97             -
98               - "Hey, try my fantastic brew!"
99               - beer_tasting
100               - quest['beer'].getValue('beer_quality') != 0
101             -
102               - "Well, I am off to make some beer, wish me luck!"
103               - end
104               - quest.hasQuest('beer') and not quest.hasFinishedQuest('beer') and quest['beer'].getValue('beer_quality') == 0
105             -
106               - "Adios, Bart"
107               - end
108               - not quest.hasQuest('beer') or quest.hasFinishedQuest('beer')
109             -
110               - "Did you hear about Pekko?"
111               - dead_pekko
112               - quest.hasQuest('fedex') and quest['fedex'].isGoalValue('found_pekko') and not quest['fedex'].isGoalValue('accused_of_murder')
113             -
114               - "Pekko was murdered.  And someone's responsible."
115               - murder_accuse
116               - quest.hasQuest('fedex') and quest['fedex'].isGoalValue('found_pekko') and not quest['fedex'].isGoalValue('accused_of_murder')
117 
118    help_beer:
119        - say: "Well, what do you need?"
120        - responses:
121           -
122             - "Where do you folks get water from.  The more pure, the better."
123             - help_water
124             - not quest['fedex'].isGoalValue('drunkard_water_asked')
125             # the idea is that Bart's odd response is the clue that he killed Pekko
126             # and put the body in the tank.  The conditional is to delete this option
127             # after it's been asked once.
128           -
129             - "Some kind of grain, or fruit or something."
130             - help_grain
131           -
132             - "I'm really looking for some brewer's yeast."
133             - help_yeast
134           -
135             - "I need a pot to cook the mash in."
136             - help_pot
137           -
138             - "It would be great if I had some bottles to put the brew in!"
139             - help_bottles
140           -
141             - "I think I can handle it from here."
142             - back
143
144    help_water:
145        - say: "Water!  I dunno.  I never trust the stuff.  Guess you could melt snow or something."
146        - responses:
147           -
148             - "Yeah, I suppose I could at that.  What does everyone drink when the snow melts?"
149             - snow_melting
150
151    help_grain:
152        - 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."
153        - responses:
154           -
155             - "Yeah, but where?"
156             - back
157
158    help_yeast:
159        - say: "Good luck finding that!"
160        - responses:
161           -
162             - "This is going to be harder than I thought"
163             - back
164
165    help_pot:
166        - 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"
167        - responses:
168           -
169             - "Fantastic, I'll give the quartermaster a try."
170             - back
171
172    help_bottles:
173        - say: "I don't know, myself.  One of the scavenging teams must have brought in something."
174        - responses:
175           -
176             - "Scavenging teams?"
177             - explain_scavenging
178           -
179             - "OK, I'll poke around some more."
180             - back
181           
182    explain_scavenging:
183        - 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."
184        - responses:
185            -
186              - "Ah, makes sense."
187              - back help_beer
188              # Note: This could be another adventure hook for the PC to make some time as a scavanger.  Not for the demo
189
190    snow_melting:
191        - say: "Like I said, I never drink the stuff."
192        - set_value:
193            quest: 'fedex'
194            variable: "drunkard_water_asked"
195            value: 1
196        - responses:
197            -
198              - "Well, alrighty then."
199              - back help_beer
200             
201    reward_query:
202        - say: "I would think that getting your own booze ration would be reward enough!"
203        - responses:
204            -
205              - "I am fond of a bender now and again, it's true."
206              - old_pals
207            -
208              - "Personally, I stay away from alcohol.  Dulls the senses.  But I suppose I'll help you out of the goodness of my heart."
209              - old_pals
210             
211    dead_pekko:
212       - say: "Dead, huh.  That's a shame."
213       - responses:
214          -
215            - "You seem really broken up about it."
216            - dead_discuss
217          -
218            - "You don't seem very surprised to hear."
219            - dead_discuss_ii
220   
221    dead_discuss:
222       - say: "The kid was a problem.  It's no surprise to me that someone had it in for him."
223       - responses:
224          -
225            - "So you are saying that a lot of people wanted him dead?"
226            - dead_discuss_ii
227          -
228            - "Had it in for him... I didn't say he was murdered!"
229            - murder_accuse
230   
231    dead_discuss_ii:
232       - say: "Well, I'm sure it was just an accident.  It's a dangerous world today."
233       - responses:
234          -
235            - "Accident, huh.  Interesting theory"
236            - back old_pals
237          -
238            - "Oh, I don't think it was an accident at all.  I think he was murdered."
239            - murder_accuse
240   
241    help_fedex:
242       - say: "No, I think maybe he left town."
243       - responses:
244          -
245            - "Really?  Do you know when he'll back"
246            - where_pekko
247   
248    help_fedex:
249       - say: "No idea."
250       - responses:
251          -
252            - "Thanks..."
253            - back old_pals
254   
255    murder_accuse:
256       - say: "Wait... so .. you are the junior detective now?  How do you know he was murdered?"
257       - responses:
258          -
259            - "His head was caved in, and his arm was broken from being forced into the snow hopper at the top of the cistern."
260            - discuss_murder
261          -
262            - "I know he was murdered, and I know you did it.  But I don't know why."
263            - accuse_bart
264          -
265            - "I think we both know how he was killed, Bart.  The question remains, who do I tell."
266            - blackmail_bart
267            - not quest['fedex'].getValue('report_murder_to_janie') and not quest['fedex'].getValue('report_murder_to_kimmo')
268   
269    discuss_murder:
270       - say: "Maybe he just fuckin' fell."
271       - responses:
272          -
273            - "Maybe.  But I'll get to the bottom of this."
274            - end
275          -
276            - "I don't think so, I think it was you.  The question is, why?"
277            - accuse_bart
278   
279    accuse_bart:
280        - 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."
281        - set_value:
282            quest: 'fedex'
283            variable: 'accused_of_murder'
284            value: 'bart'
285        - responses:
286            -
287              - "What about Janie?"
288              - janie_pekko_connection
289              - quest.hasFinishedQuest('fedex')
290            -
291              - "Whatever, murderer.  I'll see you hang."
292              - end
293
294    blackmail_bart:
295        - say: "Oh, so that's how it's going to be.  And what is the cost of your silence?"
296        - responses:
297            -
298              - "That's right, scumbag.  I'm going to squeeze you until you're dry."
299              - greedy_blackmail
300            -
301              - "That's a pretty nice coat you go there, I'll take that..."
302              - light_blackmail
303              - not quest['fedex'].isGoalValue('got_drunkards_coat')
304            -
305              - "Hey, I'm not a greedy bastard.  How about you just owe me?"
306              - delayed_blackmail
307            -
308              - "Ha, just joshing with ya.  Near as I can tell the guy deserved it."
309              - feint_blackmail
310 
311    greedy_blackmail:
312        - say: "You haven't got the guts.  My friends are powerful, and you ain't got nuthin' on me.  I'm calling your bluff."
313        - responses:
314            -
315              - "Guess we'll find out HOW powerful, now, won't we!"
316              - end
317
318    light_blackmail:
319        - say: "My coat, huh.  That's it?  I guess life is pretty cheap these days.  Here ya go."
320        - set_value:
321            quest: 'fedex'
322            variable: 'got_drunkards_coat'
323            value: 1       
324        - get_stuff: coat
325        - responses:
326            -
327              - "Hey, pretty nice.  Fits too!  Catch ya later, Bart."
328              - end
329
330    delayed_blackmail:
331        - say: "OK, so I owe you one.  You never know when you might need a favor."
332        - responses:
333            -
334              - "That's what I was thinking."
335              - old_pals
336
337    feint_blackmail:
338        - say: "Deserve got nothin' to do with it.  You're OK by me, though."
339        - responses:
340            -
341              - "Likewise, Bart.  This could be the result of a bee-you-ti-ful friendship"
342              - old_pals
343
344    janie_pekko_connection:
345        - say: "Janie... what does she have anything to this?  What have you told her?"
346        - responses:
347            -
348              - "I don't see what difference it makes."
349              - janie_pekko_continued             
350               
351    janie_pekko_continued:
352        - say: "It.. it.. has everything.  Look.  You can't tell her, OK.  You just can't."
353        - responses:
354            -
355              - "It's too late.  She already knows you killed him."
356              - janie_knows
357              - quest['fedex'].getValue('report_murder_to_janie') and quest['fedex'].getValue('accused_of_murder') = 'bart'             
358            -
359              - "Oh, I can't?  Why shouldn't I?"
360              - force_bart
361
362    janie_knows:
363        - say: "Aw, hell.  You gotta... I dunno.  Take it back... I ... I .. Aw, hell."
364        - responses:
365            -
366              - "Will you tell me the whole story if I convince her it was someone else?  Or an accident?"
367              - recant_testimony
368            -
369              - "How did you think you could keep it from her?  Idiot.  You deserve what's coming to you."
370              - end
371 
372    recant_testimony:
373        - say: "Anything man, I'll do anything."
374        - responses:
375            -
376              - "I don't know if it will work, but I'll try"
377              - end
378   
379    force_bart:
380        - say: "Because... because... [sobs].  I love her.  Look.  Promise me you won't tell her and I'll spill."
381        - responses:
382            -
383              - "I can't promise that."
384              - no_promise
385            -
386              - "Alright.. What she doesn't know can't hurt her."
387              - bart_confess
388             
389    no_promise:
390        - say: "Fuck you."
391        - responses:
392           -
393             - "Fuck _you_."
394             - end
395           -
396             - "Hmmmm.  Your arguments have swayed me.  I won't tell her if you tell what really happened."
397             - bart_confess 
398                             
399    bart_confess:
400        - say: "So. It went down like this.  It was Kimmo.  He had enough of his brother stirring up trouble; causing a panic about the weather.  IF we leave here, his Ma will die, and Kimmo will lose his power over us.  He knows this.  Pekko just wouldn't shut up about that ice age nonsense.  People were getting scared."
401        - set_value:
402            quest: 'fedex'
403            variable: 'drunkard_confesses'
404            value: True 
405        - responses:
406            -
407              - "So what does that have to do with you."
408              - barts_price
409 
410    barts_price:                               
411        - say: "Tha fuckin' booze, man.  I had to have it.  That bastard Jacob priced me out, I was starting to get the shakes.  Kimmo had a whole case of the real stuff - pre war stuff.  That was the deal.  Disappear his brother, get the hooch."
412        - responses:
413            -
414              - "What were you going to do when the booze ran out?"
415              - consequences
416
417    consequences:
418        - say: "Whatever it takes.  Whatever it takes.  Maybe if you had shown up a few days earlier, things would have been different."
419        - responses:
420           -
421             - "This is a cold blooded town.  I am not sure what to do now."
422             - end
423             
424    beer_tasting:
425       - say: "You are a genius, sir, a genius. [Bart holds bottle up to the light]  Looks great. How did it come out?"
426       - responses:
427           -
428             - "I think it's just about perfect"
429             - best_beer
430             - quest['beer'].getValue('beer_quality') >= 5
431           -
432             - "It took some doing, but I think I got it down."
433             - good_beer
434             - quest['beer'].getValue('beer_quality') == 4
435           -
436             - "I am pretty happy about it, given the circumstances."
437             - decent_beer
438             - quest['beer'].getValue('beer_quality') == 3
439           -
440             - "It's not my best work, but it will get you hammered."
441             - ok_beer
442             - quest['beer'].getValue('beer_quality') == 2
443           -
444             - "I hope it turned out OK."
445             - bad_beer
446             - quest['beer'].getValue('beer_quality') == 1
447           -
448             - "No promises on the the taste..."
449             - poisonous_beer
450             - quest['beer'].getValue('beer_quality') < 0
451           
452    best_beer:
453        - say: "[ Bart drinks the beer] Let the church bells ring!  This stuff is awesome!"
454        - complete_quest: beer
455        - responses:
456           -
457             - "Glad you like it!"
458             - old_pals
459           
460    good_beer:
461        - say: "[ Bart drinks the beer] Nice job, Stranger.  You may fit in around here after all."
462        - complete_quest: beer
463        - responses:
464           -
465             - "Everyone likes a good brew."
466             - old_pals
467           
468    decent_beer:
469        - say: "[ Bart drinks the beer] It's got a decent bite, that's for sure. Drinkable, anyway."
470        - complete_quest: beer
471        - responses:
472           -
473             - "A couple more batches and I can hopefully work the kinks out."
474             - old_pals
475           
476    ok_beer:
477        - say: "[ Bart drinks the beer] Well, it's beer-like.  Odd aftertaste, though."
478        - complete_quest: beer
479        - responses:
480           -
481             - "Yeah, it could use some malt and hops, but it was the best I could do considering."
482             - old_pals
483           
484    bad_beer:
485        - say: "[ Bart drinks the beer, makes a face] You promise that this.. this... stuff will get me drunk???"
486        - complete_quest: beer
487        - responses:
488           -
489             - "It ought to, if you drink enough of it."
490             - old_pals
491           
492    poisonous_beer:
493        - say: "[ Bart drinks the beer, then sits down fast.] Oh... I uh... hmmm... are.. uh, you sure you did this right? [vomits]"
494        #- npc('Bart').poison('beer')
495        # Not sure how to implement poisoning; may not be necessary for the demo
496        - delete_quest: beer
497        - start_quest: quests/beer.yaml
498        - responses:
499           -
500             - "Whoa... that's those old yams... yeah, gotta be the yams. My bad.  I'll try again."
501             - old_pals
502           
503    gratitude:
504        - say: "Ah, Mysterious Stranger, Braumeister of the Frozen North.   Now, if we can only get that still up and running my good chap!"
505        - responses:
506           -
507             - "I got some ideas on that, Bart... "
508             - old_pals
Note: See TracBrowser for help on using the repository browser.