source: trunk/game/dialogue/snowshoveler.yaml @ 683

Revision 683, 4.7 KB checked in by technomage, 9 years ago (diff)

Patch by Technomage

  • Patched the dialogue files and renamed the (increase|decrease|set)_quest_value DialogueAction? keywords to (increase|decrease|set)_quest_variable. I updated the dialogueactions.py module a few patches ago, but forgot to update the dialogue files!
  • Fixed a bug in the YamlDialogueParser? class in the dialogueparsers.py module that prevented DialogueActions? with a single argument from being correctly parsed; the "keyword: argument" form for declaring DialogueActions? should now be correctly parsed.
  • 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: Matti
17AVATAR_PATH: gui/icons/snowshoveler.png
18START_SECTION: opening_dialog
19SECTIONS:
20-   ID: opening_dialog
21    SAY: "Good to talk to someone, Matti could use a break"
22    ACTIONS:
23    -   meet:
24        - matti
25    RESPONSES:
26    -   REPLY: "You are some kind of psycho-killer, aren't you?"
27        CONDITION: "quest['fedex'].getValue('accused_of_murder') == 'matti'"
28        GOTO: end
29       
30    -   REPLY: "Matti, I was wrong about Pekko's killer - I think it was\
31           \ someone else."
32        CONDITION: "quest['fedex'].getValue('accused_of_murder') == 'matti'"
33        ACTIONS:
34        -   set_quest_variable:
35                quest: fedex
36                value: ''
37                variable: accused_of_murder
38        GOTO: unaccuse_matti
39       
40    -   REPLY: "I found a body in your cistern there.  What do you know about\
41           \ it?"
42        CONDITION: "not quest['fedex'].getValue('accused_of_murder') and\
43           \ quest['fedex'].isGoalValue('found_pekko')"
44        GOTO: discuss_body
45       
46    -   REPLY: "Hey, what's going on here?"
47        GOTO: main_dialog
48       
49-   ID: main_dialog
50    SAY: "Matti shovels the snow."
51    RESPONSES:
52    -   REPLY: "Matti?  Oh, you must be Matti.  Where does all the snow... you\
53           \ know... go?"
54        GOTO: explain_shoveling
55       
56    -   REPLY: "I'm looking for stuff to make beer with"
57        CONDITION: "quest.hasActiveQuest('beer') and not\
58           \ quest.hasFinishedQuest('beer') and\
59           \ quest['beer'].isGoalValue('beer_instructions')"
60        GOTO: help_beer
61       
62    -   REPLY: "I'm looking for Pekko, you seen him?"
63        CONDITION: "quest.hasActiveQuest('fedex') and not\
64           \ quest.hasFinishedQuest('fedex') and not\
65           \ quest['fedex'].isGoalValue('found_pekko')"
66        GOTO: help_fedex
67       
68    -   REPLY: "Oh, were you working?  I'll let you get back to it"
69        GOTO: end
70       
71-   ID: help_beer
72    SAY: "Whoa.  Whoa.  WHOA.  You can make beer?  Astounding."
73    RESPONSES:
74    -   REPLY: "Never mind"
75        GOTO: back
76       
77-   ID: help_fedex
78    SAY: "Uhhh... Pekko.. Um... Matti saw him.. some time... but Matti don't\
79       \ remember"
80    RESPONSES:
81    -   REPLY: "Really?  You don't remember?  Weird."
82        GOTO: back
83       
84-   ID: explain_shoveling
85    SAY: "Yeah, uh, Matti basically justs shovel all the snow into this here\
86       \ tank."
87    RESPONSES:
88    -   REPLY: "And then what happens?"
89        GOTO: snow_tank
90       
91-   ID: snow_tank
92    SAY: "Well, uh, it gets melted.. and magically turned into STEAM!!"
93    RESPONSES:
94    -   REPLY: "Magically?  What?  Oh, that tanker must be a boiler or\
95           \ something"
96        GOTO: main_dialog
97       
98-   ID: discuss_body
99    SAY: "A body?  You mean a Dead body?  How did that get there?"
100    RESPONSES:
101    -   REPLY: "That's what I'm trying to figure out, Matti.  You are the guy\
102           \ who shovels stuff in there?"
103        GOTO: body_continued
104       
105-   ID: body_continued
106    SAY: "But Matti only puts the snow into the tank!  Matti don't think dead\
107       \ things are allowed!"
108    RESPONSES:
109    -   REPLY: "I don't really see how it could be anyone else..."
110        ACTIONS:
111        -   set_quest_variable:
112                quest: fedex
113                value: matti
114                variable: accused_of_murder
115        GOTO: accuse_matti
116       
117    -   REPLY: "Who else has access?"
118        GOTO: drop_matti
119       
120-   ID: accuse_matti
121    SAY: "You think Matti killed Pekko?  No way!  Matti was framed!"
122    RESPONSES:
123    -   REPLY: "Sure, that's what they all say."
124        GOTO: end
125       
126-   ID: drop_matti
127    SAY: "Matti doesn't know, but Matti has to sleep sometime"
128    RESPONSES:
129    -   REPLY: "I guess that's true.  Still, are the closest person to it."
130        GOTO: opening_dialog
131       
132-   ID: unaccuse_matti
133    SAY: "Matti knew you would see the light!  Matti innocent."
134    RESPONSES:
135    -   REPLY: "I'm sorry for my mistake, Matti.  I hope we can be friends\
136           \ again"
137        GOTO: opening_dialog
138       
139...
Note: See TracBrowser for help on using the repository browser.