source: branches/active/character_customization/game/dialogue/mall_template.yaml @ 833

Revision 699, 3.7 KB checked in by technomage, 9 years ago (diff)

Patch by Technomage

  • Renamed the default_root_section and root_sections attributes of the Dialogue class to "default_greeting" and "greetings", respectively;
  • Renamed the RootDialogueSection? class to "DialogueGreeting?" for clarity;
  • Renamed the DEFAULT_ROOT_SECTION and ROOT_SECTIONS tags in the YAML dialogue files as "DEFAULT_GREETING" and "GREETINGS", respectively;
  • 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: Anyone
17AVATAR_PATH: gui/portraits/npc.png
18DEFAULT_GREETING:
19    ID: main_dialog
20    SAY: "Hello.  How can I help you?"
21    RESPONSES:
22    -   REPLY: "I'm looking for stuff to make beer with "
23        CONDITION: "quest.hasActiveQuest('beer') and not\
24           \ quest.hasFinishedQuest('beer') and\
25           \ quest['beer'].isGoalValue('beer_instructions')"
26        GOTO: help_beer
27       
28    -   REPLY: "I'm the beer savior, remember?"
29        CONDITION: "quest['beer'].getValue('beer_quality') >= 1"
30        GOTO: gratitude
31       
32    -   REPLY: "I'm looking for Pekko, you seen him?"
33        CONDITION: "quest.hasActiveQuest('fedex') and not\
34           \ quest.hasFinishedQuest('fedex') and not\
35           \ quest['fedex'].isGoalValue('found_pekko')"
36        GOTO: help_fedex
37       
38    -   REPLY: "Whoa!  It talks!  Never mind"
39        GOTO: end
40       
41SECTIONS:
42-   ID: help_beer
43    SAY: "I am always happy to give intimate details of our home to strangers,\
44       \ shoot!"
45    RESPONSES:
46    -   REPLY: "Where do you folks get water from.  The more pure, the better."
47        GOTO: help_water
48       
49    -   REPLY: "Some kind of grain, or fruit or something."
50        GOTO: help_grain
51       
52    -   REPLY: "I'm really looking for some brewer's yeast."
53        GOTO: help_yeast
54       
55    -   REPLY: "I need a pot to cook the mash in."
56        GOTO: help_pot
57       
58    -   REPLY: "It would be great if I had some bottles to put the brew in!"
59        GOTO: help_bottles
60       
61    -   REPLY: "I think I can handle it from here."
62        GOTO: back
63       
64-   ID: help_water
65    SAY: "Oh, that is the one thing we have plenty of.  We have an old tanker\
66       \ trunk that we shovel the snow in and melt it.  You can see it from up\
67       \ here, but you have to go downstairs to tap it.  But the water's been\
68       \ tasting a little funny lately."
69    RESPONSES:
70    -   REPLY: "Great, that's a huge help."
71        GOTO: back
72       
73-   ID: help_grain
74    SAY: "You could try the farm, and there should be some food in the\
75       \ storerooms"
76    RESPONSES:
77    -   REPLY: "Thanks, I'll try that."
78        GOTO: back
79       
80-   ID: help_yeast
81    SAY: "You got me.  I wonder if there is even any left at all."
82    RESPONSES:
83    -   REPLY: "Someone must have some!"
84        GOTO: back
85       
86-   ID: help_pot
87    SAY: "Did you try the kitchen?  Or the storerooms?"
88    RESPONSES:
89    -   REPLY: "Uh, yeah.  I guess that was obvious."
90        GOTO: back
91       
92-   ID: help_bottles
93    SAY: "All the random junk is downstairs in old parking lot.  We have our\
94       \ own little junkyard."
95    RESPONSES:
96    -   REPLY: "Oooh... there is probably lots of good stuff down there."
97        GOTO: back
98       
99-   ID: help_fedex
100    SAY: "Pekko... I thought he was out scouting?  Did you try the Inn?"
101    RESPONSES:
102    -   REPLY: "OK, the Inn, thanks."
103        GOTO: back
104       
105-   ID: gratitude
106    SAY: "Well aren't you just a thick slice of awesome."
107    RESPONSES:
108    -   REPLY: "I try, I try."
109        GOTO: main_dialog
110       
111...
Note: See TracBrowser for help on using the repository browser.