source: trunk/game/dialogue/old_man.yaml @ 683

Revision 683, 2.7 KB checked in by technomage, 9 years ago (diff)

Patch by Technomage

  • Patched the dialogue files and renamed the (increase|decrease|set)_quest_value DialogueAction? keywords to (increase|decrease|set)_quest_variable. I updated the dialogueactions.py module a few patches ago, but forgot to update the dialogue files!
  • Fixed a bug in the YamlDialogueParser? class in the dialogueparsers.py module that prevented DialogueActions? with a single argument from being correctly parsed; the "keyword: argument" form for declaring DialogueActions? should now be correctly parsed.
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: Old Man
17AVATAR_PATH: gui/icons/crazy_swede.png
18START_SECTION: main_dialogue
19SECTIONS:
20-   ID: main_dialogue
21    SAY: "The old man looks up at you from his chair with a dazed look upon\
22       \ his face.\n\"...Lucy?\""
23    ACTIONS:
24    -   meet:
25        - old_man
26    RESPONSES:
27    -   REPLY: "Who's Lucy?"
28        GOTO: help_find_lucy
29       
30    -   REPLY: "I found your ring."
31        CONDITION: "quest.hasActiveQuest('memories') and\
32           \ pc.inventory.hasItem('RustyWeddingRing')"
33        ACTIONS:
34        -   give_stuff:
35            - RustyWeddingRing
36        -   complete_quest:
37            - memories
38        GOTO: good_memories
39       
40    -   REPLY: "I don't have time for your delusions old man!"
41        GOTO: parting_shot
42       
43-   ID: good_memories
44    SAY: "An intense expression of joy spreads across the old man's face as\
45       \ you hand him the rusty wedding ring. He tries to mouth a word of\
46       \ thanks but is so overcome that he cannot utter a sound. The old man\
47       \ begins caressing the ring, oblivious to the decay and rot of the\
48       \ world around him."
49    RESPONSES:
50    -   REPLY: "[Walk away.]"
51        GOTO: end
52       
53-   ID: help_find_lucy
54    SAY: "The old man looks at you expectedly.\n\"Can you help me find\
55       \ Lucy?\""
56    RESPONSES:
57    -   REPLY: "Where is Lucy?"
58        GOTO: rusted_lockbox
59       
60    -   REPLY: "I have better things to do."
61        GOTO: parting_shot
62       
63-   ID: rusted_lockbox
64    SAY: "The old man gazes over his shoulder to the far side of the shanty\
65       \ where a metal lockbox rests on the floor.\n\"Can't open it any\
66       \ more... rusted...\""
67    RESPONSES:
68    -   REPLY: "I'll see what I can do."
69        ACTIONS:
70        -   start_quest:
71            - memories
72        GOTO: parting_shot
73       
74    -   REPLY: "Fix your own problems, old man!"
75        GOTO: parting_shot
76       
77-   ID: parting_shot
78    SAY: "The old man sighs and begins to stare remorsefully at the\
79       \ smouldering embers in the fireplace."
80    RESPONSES:
81    -   REPLY: "[Walk away.]"
82        GOTO: end
83       
84...
Note: See TracBrowser for help on using the repository browser.