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

Revision 406, 16.5 KB checked in by zenbitz, 10 years ago (diff)

many dialog and quest tweaks

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 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
197        - responses:
198            -
199              - "Well, alrighty then."
200              - back help_beer
201             
202    reward_query:
203        - say: "I would think that getting your own booze ration would be reward enough!"
204        - responses:
205            -
206              - "I am fond of a bender now and again, it's true."
207              - old_pals
208            -
209              - "Personally, I stay away from alcohol.  Dulls the senses.  But I suppose I'll help you out of the goodness of my heart."
210              - old_pals
211             
212    dead_pekko:
213       - say: "Dead, huh.  That's a shame."
214       - responses:
215          -
216            - "You seem really broken up about it."
217            - dead_discuss
218          -
219            - "You don't seem very surprised to hear."
220            - dead_discuss_ii
221   
222    dead_discuss:
223       - say: "The kid was a problem.  It's no surprise to me that someone had it in for him."
224       - responses:
225          -
226            - "So you are saying that a lot of people wanted him dead?"
227            - dead_discuss_ii
228          -
229            - "Had it in for him... I didn't say he was murdered!"
230            - murder_accuse
231   
232    dead_discuss_ii:
233       - say: "Well, I'm sure it was just an accident.  It's a dangerous world today."
234       - responses:
235          -
236            - "Accident, huh.  Interesting theory"
237            - back old_pals
238          -
239            - "Oh, I don't think it was an accident at all.  I think he was murdered."
240            - murder_accuse
241   
242    help_fedex:
243       - say: "No, I think maybe he left town."
244       - responses:
245          -
246            - "Really?  Do you know when he'll back"
247            - where_pekko
248   
249    help_fedex:
250       - say: "No idea."
251       - responses:
252          -
253            - "Thanks..."
254            - back old_pals
255   
256    murder_accuse:
257       - say: "Wait... so .. you are the junior detective now?  How do you know he was murdered?"
258       - set_value:
259            quest: 'fedex'
260            variable: 'reported_murder'
261            value: quest['fedex'].getValue('reported_murder).add('pekko')
262            # I suspect that will not work, it certainly could be cleaner.
263       - responses:
264          -
265            - "His head was caved in, and his arm was broken from being forced into the snow hopper at the top of the cistern."
266            - discuss_murder
267          -
268            - "I know he was murdered, and I know you did it.  But I don't know why."
269            - accuse_bart
270          -
271            - "I think we both know how he was killed, Bart.  The question remains, who do I tell."
272            - blackmail_bart
273            - ( 'nikko' not in quest['fedex'].getValue('reported_murder') )
274   
275    discuss_murder:
276       - say: "Maybe he just fuckin' fell."
277       - responses:
278          -
279            - "Maybe.  But I'll get to the bottom of this."
280            - end
281          -
282            - "I don't think so, I think it was you.  The question is, why?"
283            - accuse_bart
284   
285    accuse_bart:
286        - 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."
287        - set_value:
288            quest: 'fedex'
289            variable: 'accused_of_murder'
290            value: 'bart'
291        - responses:
292            -
293              - "What about Janie?"
294              - janie_pekko_connection
295              - quest.hasFinishedQuest('fedex')
296            -
297              - "Whatever, murderer.  I'll see you hang."
298              - end
299
300    blackmail_bart:
301        - say: "Oh, so that's how it's going to be.  And what is the cost of your silence?"
302        - responses:
303            -
304              - "That's right, scumbag.  I'm going to squeeze you until you're dry."
305              - greedy_blackmail
306            -
307              - "That's a pretty nice coat you go there, I'll take that..."
308              - light_blackmail
309              - not quest['fedex'].isGoalValue('got_barts_coat')
310            -
311              - "Hey, I'm not a greedy bastard.  How about you just owe me?"
312              - delayed_blackmail
313            -
314              - "Ha, just joshing with ya.  Near as I can tell the guy deserved it."
315              - feint_blackmail
316 
317    greedy_blackmail:
318        - say: "You haven't got the guts.  My friends are powerful, and you ain't got nuthin' on me.  I'm calling your bluff."
319        - responses:
320            -
321              - "Guess we'll find out HOW powerful, now, won't we!"
322              - end
323
324    light_blackmail:
325        - say: "My coat, huh.  That's it?  I guess life is pretty cheap these days.  Here ya go."
326        - set_value:
327            quest: 'fedex'
328            variable: 'got_barts_coat'
329            value: 1       
330        - get_stuff: coat
331        - responses:
332            -
333              - "Hey, pretty nice.  Fits too!  Catch ya later, Bart."
334              - end
335
336    delayed_blackmail:
337        - say: "OK, so I owe you one.  You never know when you might need a favor."
338        - responses:
339            -
340              - "That's what I was thinking."
341              - old_pals
342
343    feint_blackmail:
344        - say: "Very funny.  You're OK by me, though."
345        - responses:
346            -
347              - "Likewise, Bart.  This could be the result of a bee-you-ti-ful friendship"
348              - old_pals
349
350    janie_pekko_connection:
351        - say: "Ah, young Janie.  She's a good kid, and loyal.  Pekko brought here in here, you know. She owes him."
352        - responses:
353            -
354              - "I see."
355              - back
356               
357    beer_tasting:
358       - say: "You are a genius, sir, a genius. [Bart holds bottle up to the light]  Looks great. How did it come out?"
359       - responses:
360           -
361             - "I think it's just about perfect"
362             - best_beer
363             - quest['beer'].getValue('beer_quality') >= 5
364           -
365             - "It took some doing, but I think I got it down."
366             - good_beer
367             - quest['beer'].getValue('beer_quality') == 4
368           -
369             - "I am pretty happy about it, given the circumstances."
370             - decent_beer
371             - quest['beer'].getValue('beer_quality') == 3
372           -
373             - "It's not my best work, but it will get you hammered."
374             - ok_beer
375             - quest['beer'].getValue('beer_quality') == 2
376           -
377             - "I hope it turned out OK."
378             - bad_beer
379             - quest['beer'].getValue('beer_quality') == 1
380           -
381             - "No promises on the the taste..."
382             - poisonous_beer
383             - quest['beer'].getValue('beer_quality') < 0
384           
385    best_beer:
386        - say: "[ Bart drinks the beer] Let the church bells ring!  This stuff is awesome!"
387        - complete_quest: beer
388        - responses:
389           -
390             - "Glad you like it!"
391             - old_pals
392           
393    good_beer:
394        - say: "[ Bart drinks the beer] Nice job, Stranger.  You may fit in around here after all."
395        - complete_quest: beer
396        - responses:
397           -
398             - "Everyone likes a good brew."
399             - old_pals
400           
401    decent_beer:
402        - say: "[ Bart drinks the beer] It's got a decent bite, that's for sure. Drinkable, anyway."
403        - complete_quest: beer
404        - responses:
405           -
406             - "A couple more batches and I can hopefully work the kinks out."
407             - old_pals
408           
409    ok_beer:
410        - say: "[ Bart drinks the beer] Well, it's beer-like.  Odd aftertaste, though."
411        - complete_quest: beer
412        - responses:
413           -
414             - "Yeah, it could use some malt and hops, but it was the best I could do considering."
415             - old_pals
416           
417    bad_beer:
418        - say: "[ Bart drinks the beer, makes a face] You promise that this.. this... stuff will get me drunk???"
419        - complete_quest: beer
420        - responses:
421           -
422             - "It ought to, if you drink enough of it."
423             - old_pals
424           
425    poisonous_beer:
426        - say: "[ Bart drinks the beer, then sits down fast.] Oh... I uh... hmmm... are.. uh, you sure you did this right? [vomits]"
427        #- npc('Bart').poison('beer')
428        # Not sure how to implement poisoning; may not be necessary for the demo
429        - delete_quest: beer
430        - start_quest: quests/beer.yaml
431        - responses:
432           -
433             - "Whoa... that's those old yams... yeah, gotta be the yams. My bad.  I'll try again."
434             - old_pals
435           
436    gratitude:
437        - say: "Ah, Mysterious Stranger, Braumeister of the Frozen North.   Now, if we can only get that still up and running my good chap!"
438        - responses:
439           -
440             - "I got some ideas on that, Bart... "
441             - old_pals
Note: See TracBrowser for help on using the repository browser.