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

Revision 686, 19.0 KB checked in by barra_parpg, 9 years ago (diff)

Patch by mvbarracuda:

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