source: trunk/game/dialogue/sample.yaml @ 686

Revision 686, 5.2 KB checked in by barra_parpg, 9 years ago (diff)

Patch by mvbarracuda:

  • Moved character portraits from gui/icons to gui/portraits
  • Adjusted the dialogue yaml scripts to find the portraits in the new place
  • 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: Friendly NPC
17AVATAR_PATH: gui/portraits/npc.png
18START_SECTION: main_dialog
19SECTIONS:
20-   ID: main_dialog
21    SAY: "Things are tough around here, let me tell you our problems"
22    RESPONSES:
23    -   REPLY: "Sure, tell me all about it"
24        CONDITION: "not\
25           \ set(pc.finished_quests).intersection(['raiders','well','beer'])"
26        GOTO: listen_more
27       
28    -   REPLY: "That sounds boring. Bye."
29        GOTO: end
30       
31-   ID: listen_more
32    SAY: "Raiders stole our cattle, our well was poisoned, and the beer is all\
33       \ gone!"
34    RESPONSES:
35    -   REPLY: "Tell me about the raiders"
36        CONDITION: "pc.canAcceptQuest('raiders')"
37        GOTO: elaborate_raiders
38       
39    -   REPLY: "I've taken care of the raiders"
40        CONDITION: "pc.hasSatisfiedQuest('raiders')"
41        ACTIONS:
42        -   complete_quest:
43            - raiders
44        GOTO: complete_raiders
45       
46    -   REPLY: "Tell me about the well"
47        CONDITION: "pc.canAcceptQuest('well')"
48        GOTO: elaborate_well
49       
50    -   REPLY: "I have returned with the antidote"
51        CONDITION: "pc.hasSatisfiedQuest('well')"
52        ACTIONS:
53        -   complete_quest:
54            - well
55        GOTO: complete_well
56       
57    -   REPLY: "Tell me about the beer"
58        CONDITION: "pc.canAcceptQuest('beer')"
59        GOTO: elaborate_beer
60       
61    -   REPLY: "Three cheers the beer is here!"
62        CONDITION: "pc.hasSatisfiedQuest('beer')"
63        ACTIONS:
64        -   complete_quest:
65            - beer
66        GOTO: complete_beer
67       
68    -   REPLY: "Guard, I have solved all your problems"
69        CONDITION: "pc.finished_quests == set(['raiders','well','beer'])"
70        GOTO: all_done
71       
72    -   REPLY: "Good luck with that"
73        GOTO: end
74       
75-   ID: elaborate_raiders
76    SAY: "They mostly come at night... mostly."
77    RESPONSES:
78    -   REPLY: "I can help you, for a price"
79        CONDITION: "pc.canAcceptQuest('raiders')"
80        ACTIONS:
81        -   start_quest:
82            - raiders
83        GOTO: quest_raiders
84       
85    -   REPLY: "What was that other stuff you were talking about again?"
86        GOTO: back
87       
88    -   REPLY: "That sounds too dangerous for me, good luck!"
89        GOTO: end
90       
91-   ID: quest_raiders
92    SAY: "Thank you so much, these raiders have terrified our village for too\
93       \ long!"
94    RESPONSES:
95    -   REPLY: "Quit your yammering, those raiders won't be a problem anymore."
96        GOTO: back listen_more
97       
98-   ID: complete_raiders
99    SAY: "Thank you for defeating those evil doers"
100    RESPONSES:
101    -   REPLY: "Pffft, it was easy"
102        GOTO: back listen_more
103       
104-   ID: elaborate_well
105    SAY: "A foul and dreadful toxin has contaminated our water well. Rumors\
106       \ tell of an antidote. If only someone could find it."
107    RESPONSES:
108    -   REPLY: "Wait a second... I'm someone! I will fix your well."
109        CONDITION: "pc.canAcceptQuest('well')"
110        ACTIONS:
111        -   start_quest:
112            - well
113        GOTO: quest_well
114       
115    -   REPLY: "Tell me about that other stuff"
116        GOTO: back
117       
118    -   REPLY: "You're scaring me, bye"
119        GOTO: end
120       
121-   ID: quest_well
122    SAY: "You are a brave hero indeed, water bringer."
123    RESPONSES:
124    -   REPLY: "Fear not, gentle villager. I will return shortly with the\
125           \ antidote."
126        GOTO: back listen_more
127       
128-   ID: complete_well
129    SAY: "Thank heavens now the orphans will have water to drink"
130    RESPONSES: []
131-   ID: elaborate_beer
132    SAY: "After this keg, and that keg, there is only one keg left! Something\
133       \ must be done."
134    RESPONSES:
135    -   REPLY: "Running out of beer is no laughing matter. I'll run to the\
136           \ brewery for more"
137        CONDITION: "pc.canAcceptQuest('beer')"
138        ACTIONS:
139        -   start_quest:
140            - beer
141        GOTO: quest_beer
142       
143    -   REPLY: "Tell me about all that other stuff"
144        GOTO: back
145       
146-   ID: quest_beer
147    SAY: "I do not know what we would have done without you."
148    RESPONSES:
149    -   REPLY: "It's my pleasure"
150        GOTO: back listen_more
151       
152-   ID: complete_beer
153    SAY: "Thank heavens now the orphans will have beer to drink"
154    RESPONSES:
155    -   REPLY: "All in a day's work, now gimme some! *glug*"
156        GOTO: back listen_more
157       
158-   ID: all_done
159    SAY: "For saving our village, I will give you the prized McGuffin. Thank\
160       \ you, Player Character"
161    RESPONSES:
162    -   REPLY: "I am so awesome"
163        GOTO: end
164       
165...
Note: See TracBrowser for help on using the repository browser.