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

Revision 699, 2.0 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: Sami
17AVATAR_PATH: gui/portraits/farm_boy_temp.png
18DEFAULT_GREETING:
19    ID: main_dialog
20    SAY: "Hi, I'm Sami.  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: "Tell me about the farm"
29        GOTO: describe_farm
30       
31    -   REPLY: "I'm looking for Pekko, you seen him?"
32        CONDITION: "quest.hasActiveQuest('fedex') and not\
33           \ quest.hasFinishedQuest('fedex') and not\
34           \ quest['fedex'].isGoalValue('found_pekko')"
35        GOTO: help_fedex
36       
37    -   REPLY: "Oh, I was looking for Rasmus."
38        GOTO: end
39       
40SECTIONS:
41-   ID: help_beer
42    SAY: "Oh, you better ask the boss about that."
43    RESPONSES:
44    -   REPLY: "OK, I will."
45        GOTO: back
46       
47-   ID: help_fedex
48    SAY: "No.. but we pretty much stay here on the farm."
49    RESPONSES:
50    -   REPLY: "I see."
51        GOTO: back
52       
53-   ID: describe_farm
54    SAY: "Manslow figured out that the only way to keep things growing in the\
55       \ cold was to build a greenhouse. Luckily, someone managed to find all\
56       \ this clear plexiglass."
57    RESPONSES:
58    -   REPLY: "Wow, nice."
59        GOTO: back
60       
61...
Note: See TracBrowser for help on using the repository browser.