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

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