source: trunk/game/dialogue/quartermaster.yaml @ 570

Revision 570, 9.6 KB checked in by beliar, 9 years ago (diff)

Patch by Beliar.

  • Quest files are now read in and parsed at the start of the game. and the Quests stored in the quests property of quest_engine. This allows quest variables to be set even when the quest is not active.
  • replaced addQuest with activateQuest which now only accepts the quest_id as a parameter.
  • Removed deleteQuest and added failQuest instead
  • Added a function to restart a quest, this will reset quest_variables that have a "reset_value" property to this value.
  • Modified Dialogue and Quest files to work with the changes
  • Added "QuestsDirectory?" setting to the settings file. Please delete your old settings.xml and let the game recreate it.
  • 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: Helja
18AVATAR: gui/icons/quartermaster.jpg
19START: main_dialog
20
21SECTIONS:
22    main_dialog:
23        - say: "Hello, there!  A new addition to the labor pool, I see."
24        - meet: helja
25        - responses:
26            -
27              - "What do you do around here?"
28              - expound_quartermaster
29            -
30              - "You're the Quartermaster?  I bet you can help me with some requisitions?"
31              - pre_help_beer
32              - quest.hasActiveQuest('beer') and not quest.hasFinishedQuest('beer') and quest['beer'].isGoalValue('beer_instructions')
33            -
34              - "You going to help me distribute this new beer?"
35              - beer_network
36              - quest['beer'].getValue('beer_quality') >= 1
37            -
38              - "You haven't seen Pekko around lately, have you?"
39              - help_fedex
40              - quest.hasActiveQuest('fedex') and not quest.hasFinishedQuest('fedex') and not quest['fedex'].isGoalValue('found_pekko')
41            -
42              - "Labor pool?  I forgot my suit."
43              - end
44           # Could be another tree here after Pekko's body is found.
45
46    expound_quartermaster:
47        - say: "I am the like the supply sergeant.  I am in charge of all the communal goods - particularly food."
48        - responses:
49           -
50             - "Sounds like an important job.  Are you bribe-able?"
51             - bribe_comment
52           -
53             - "Really?  Because I am looking for some items to brew some beer..."
54             - pre_help_beer
55             - quest.hasActiveQuest('beer') and not quest.hasFinishedQuest('beer') and quest['beer'].isGoalValue('beer_instructions')
56             
57    bribe_comment:
58        - say: "Oh, funny. [narrows eyes] But I do like to help people who help themselves.  Like God."
59        - responses:
60           -
61             - "So you accept burnt offerings?"
62             - main_dialog
63
64    pre_help_beer:
65        - say: "Hey, I don't just give stuff away.  You have to have a requisition note from Kimmo, or at least trade something. "
66        - responses:
67           -
68             - "Who's Kimmo?"
69             - describe_kimmo
70           -
71             - "Well, I don't have a requisition... I am going to make some beer."
72             - elaborate_beer
73             
74    describe_kimmo:
75        - say: "Kimmo is the leader of our merry band.  He's my boss -- the boss of all of us, currently."
76        - responses:
77           -
78             - "What do you mean, currently?"
79             - describe_rivalry
80           -
81             - "So do you think Kimmo would let me have some stuff to make beer?"
82             - elaborate_beer
83             
84    elaborate_beer:
85        - say: "Beer, huh.  That might undermine Jacob's inn a bit.  Kimmo would probably approve of that."
86        - responses:
87           -
88             - "So you will help me?"
89             - help_beer
90           -
91             - "Why would Kimmo want to undermine Jacob?"
92             - describe_rivalry             
93
94    describe_rivalry:
95        - say: "Well, Jacob -- I guess you would call him Kimmmo's primary rival for leadership."
96        - responses:
97           -
98             - "Do you think he'll try to take over?"
99             - elaborate_rivalry
100           -
101             - "Interesting.  And whom do you support?"
102             - which_side
103           -
104             - "So, Kimmo would want me to give the place another source of beer, right?"
105             - help_beer
106           -
107             - "Ugh, small town politics.  Say no more."
108             - main_dialog             
109             
110    which_side:
111        - say: "Well, most of us owe Kimmo our lives.  But I'm no fighter.  I've survived this long without getting involved in petty power struggles.  I am good at what I do."
112        - responses:
113           -
114             - "But you are not against a little underhanded move against Jacob..."
115             - help_beer
116           -
117             - "So, playing both sides against the middle.  What if Jacob makes a move?"
118             - elaborate_rivalry
119             
120    elaborate_rivalry:
121        - say: "I don't think he'll make a move... as long as we stay here."
122        - responses:
123           -
124             - "Why would you move?  This place is awesome!"
125             - why_move
126             
127    why_move:
128        - say: "Pekko's got this idea that the winters are going to get worse.  He says Lapland up north is already glaciated, and it's only a matter of time before this place is totally frozen out."
129        - responses:
130           -
131             - "So you will help me make some beer?"
132             - help_beer
133           -
134             - "And away from the Paatalo, Kimmo's power base is weak.  Who do you support?"
135             - which_side
136             
137    help_beer:
138        - say: "Well, what do you need exactly?"
139        - responses:
140           -
141             - "I need some pure water."
142             - help_water_clean
143             - quest['fedex'].isGoalValue('found_pekko')
144           -
145             - "I need some pure water."
146             - help_water_dirty
147             - not quest['fedex'].isGoalValue('found_pekko')
148           -
149             - "The basis of the the brew is some source of sugar, like grain or potatoes."
150             - help_grain
151           -
152             - "A yeast culture would really make the thing less dicey"
153             - help_yeast
154           -
155             - "Of course, I'll need something to cook the mash in..."
156             - help_pot
157             # some conditionaal needs to switch if you have already traded pocket knife for pot
158           -
159             - "When it's all done, I'll need to put the beer in something"
160             - help_bottles
161           -
162             - "That should about do it, thanks."
163             - back
164
165    help_water_dirty:
166        - say: "You can have all the water you want... but people have been complaining about the taste lately.  It should probably be checked out."
167        - responses:
168           -
169             - "Oh, that's interesting."
170             - back
171
172    help_water_clean:
173        - say: "Water is unrestricted.  Go downstairs and draw a bucket from the cistern, it's filtered."
174        - responses:
175           -
176             - "Water, check."
177             - back
178
179    help_grain:
180        - say: "Well, food.  Now that is not easy to get.  I can't authorize you any grain.  But maybe there are some old potatoes around..."
181        - responses:
182           -
183             - "Potatoes? I guess that's not too bad. Where would I find some?"
184             - help_potatoes
185           -
186             - "Grain would really be the best... where do you get it?"
187             - help_farm
188           -
189             - "OK, I'll see what I can scrounge up"
190             - back
191
192    help_yeast:
193        - say: "You know... Skwisgaar is always babbling about yeast and stuff.  Good luck getting a straight answer out of him though."
194        - responses:
195           -
196             - "Skwisgaar... is that the wood chopper?"
197             - wood_chopper
198
199    help_pot:
200        - say: "Well, I got a pot.  But I can't just give it up.  What will you give me for it?"
201        - responses:
202           -
203             - "Well, I got this pocket knife... would that do?"
204             - trade_knife
205           -
206             - "No deal.  I'll find my own."
207             - back
208             
209    help_bottles:
210        - say: "Junkyard.  Also unrestricted.  Help yourself."
211        - responses:
212           -
213             - "Thanks."
214             - back
215
216    trade_knife:
217        - say: "Let me see it. [You hand over the knife].  Humh.  A little used.   But OK, I like you."
218        - give_stuff: pocket_knife
219        - get_stuff: brew_pot
220        - responses:
221           -
222             - "It's a deal then."
223             - help_beer
224
225    wood_chopper:
226        - say: "Yeah, the wood chopper.  Came over to help us against the Russkies.  From Sweden or something.  I don't think he's quite right in the head."
227        - responses:
228           -
229             - "I'll keep that in mind"
230             - help_beer
231
232    help_potatoes:
233        - say: "There should be some old ones in that storeroom back there.  Probably won't be missed."
234        - responses:
235           -
236             - "Wow, thanks.  You won't regret this."
237             - back
238
239    help_farm:
240        - say: "I'm sorry.  I can't really disclose that information.  That farm is our life."
241        - responses:
242           -
243             - "Hey, it's cool.  I am not looking for trouble."
244             - back
245
246    help_fedex:
247        - say: "He was here a couple of days ago, getting provisioned for one of his excursions.  He should be back by now though."
248        - set_value:
249            quest: 'fedex'
250            variable: 'check_bart_left'
251            value: True
252        - responses:
253           -
254             - "So the you last saw him, he was leaving the compound."
255             - back
256
257    beer_network:
258        - say: "I'll think about it.  Let's see if things quiet down."
259        - responses:
260           -
261             - "Alright, Helja."
262             - main_dialog
263 
Note: See TracBrowser for help on using the repository browser.