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

Revision 699, 2.6 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: Cali
17AVATAR_PATH: gui/portraits/grifter_temp.png
18DEFAULT_GREETING:
19    ID: main_dialog
20    SAY: "Hi there stranger.  Buy a gal a drink?"
21    ACTIONS:
22    -   meet:
23        - cali
24    RESPONSES:
25    -   REPLY: "I'm looking for stuff to make beer with. "
26        CONDITION: "quest.hasActiveQuest('beer') and not\
27           \ quest.hasFinishedQuest('beer') and\
28           \ quest['beer'].isGoalValue('beer_instructions')"
29        GOTO: help_beer
30       
31    -   REPLY: "My new beer is a great success..."
32        CONDITION: "quest['beer'].getValue('beer_quality') >= 1"
33        GOTO: gratitude
34       
35    -   REPLY: "I'm looking for Pekko, you seen him?"
36        CONDITION: "quest.hasActiveQuest('fedex') and not\
37           \ quest.hasFinishedQuest('fedex') and not\
38           \ quest['fedex'].isGoalValue('found_pekko')"
39        GOTO: help_fedex
40       
41    -   REPLY: "Sorry, I'm broke."
42        GOTO: end
43       
44SECTIONS:
45-   ID: help_beer
46    SAY: "Trying to horn in on old Jacob here, huh?  I wouldn't if I were you."
47    RESPONSES:
48    -   REPLY: "Hey, we all do what we have to.  I'm sure you understand."
49        GOTO: back
50       
51-   ID: help_fedex
52    SAY: "[sigh] The cute one?.  He's in here all the time.  I guess it has\
53       \ been a couple days since I've seen him."
54    RESPONSES:
55    -   REPLY: "Yes, no one has seen him for a couple of days."
56        GOTO: back
57       
58    -   REPLY: "Was Camilla here all night the last time you saw Pekko here?"
59        CONDITION: "quest['fedex'].isGoalValue('drunkard_evidence')"
60        GOTO: check_alibi
61       
62-   ID: check_alibi
63    SAY: "Hmmmm... Yeah, I think so.  She's here almost every night."
64    RESPONSES:
65    -   REPLY: "OK, thanks."
66        GOTO: main_dialog
67       
68-   ID: gratitude
69    SAY: "Huh.  Well, how about that.  You won't forget your friend Cali when\
70       \ you are famous, right?"
71    RESPONSES:
72    -   REPLY: "No way, babe."
73        GOTO: main_dialog
74       
75...
Note: See TracBrowser for help on using the repository browser.