source: trunk/game/dialogue/quest_sample.yaml @ 688

Revision 688, 3.0 KB checked in by zenbitz, 9 years ago (diff)

fixed some conversion errors

  • 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: 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: "Here's your beer"
24        CONDITION: "quest['beer'].isGoalValue(\"beer_gathered\") and not\
25           \ quest.hasFinishedQuest('beer')"
26        ACTIONS:
27        -   complete_quest:
28            - beer
29        GOTO: finish_quest
30       
31    -   REPLY: "No problem (finished quest)"
32        CONDITION: "quest.hasFinishedQuest('beer')"
33        GOTO: main_dialog
34       
35    -   REPLY: "Give me a beer! (Cheater!)"
36        CONDITION: "quest.hasActiveQuest('beer') and not\
37           \ quest.hasFinishedQuest('beer') and not\
38           \ quest['beer'].isGoalValue(\"beer_gathered\")"
39        ACTIONS:
40        -   increase_quest_variable:
41                quest: beer
42                value: 1
43                variable: beer_gathered
44        GOTO: give_beer
45       
46    -   REPLY: "I'm on it"
47        CONDITION: "quest.hasActiveQuest('beer') and not\
48           \ quest.hasFinishedQuest('beer')"
49        GOTO: main_dialog
50       
51    -   REPLY: "Sure, tell me all about it"
52        CONDITION: "not quest.hasActiveQuest('beer') and not\
53           \ quest.hasFinishedQuest('beer')"
54        GOTO: listen_more
55       
56    -   REPLY: "That sounds boring. Bye."
57        GOTO: end
58       
59-   ID: listen_more
60    SAY: "Raiders stole our cattle, our well was poisoned, and the beer is all\
61       \ gone!"
62    RESPONSES:
63    -   REPLY: "I help you"
64        ACTIONS:
65        -   start_quest:
66            - beer
67        GOTO: quest_accept
68       
69    -   REPLY: "Good luck with that"
70        GOTO: end
71       
72    -   REPLY: "Fear not, gentle villager. I will return shortly with the\
73           \ antidote."
74        GOTO: listen_more
75       
76-   ID: quest_accept
77    SAY: "All your beer are belong to us!"
78    RESPONSES:
79    -   REPLY: "Right..."
80        GOTO: main_dialog
81       
82-   ID: give_beer
83    SAY: "Here's your beer..."
84    RESPONSES:
85    -   REPLY: "Thanks."
86        GOTO: main_dialog
87       
88-   ID: finish_quest
89    SAY: "This is the good stuff! *hik*"
90    RESPONSES:
91    -   REPLY: "Sigh"
92        GOTO: main_dialog
93       
94-   ID: stop_quest
95    SAY: "Jerk."
96    RESPONSES:
97    -   REPLY: "That's how they call me!"
98        GOTO: main_dialog
99       
100...
Note: See TracBrowser for help on using the repository browser.