source: trunk/game/maps/all_agents.yaml @ 833

Revision 668, 6.2 KB checked in by technomage, 9 years ago (diff)

Ticket #269: Patch by Technomage.

  • Working prototype of the redesigned DialogueEngine? for the upcoming Techdemo2 release; major redesign of the existing DialogueEngine? and YAML dialogue file syntax.
  • Moved the redesigned DialogueEngine? class to the more descriptive dialogueengine.py module; the DialogueEngine? is now a singleton object and provides all functionality through class methods and attributes, and thus should not be instantiated
  • Abstracted the data structures used to store dialogue data away from the YAML data structures; the relevant classes are stored in the dialogue.py module
  • Abstracted the dialogue commands/actions from the DialogueEngine? code to make modifications and maintenance of dialogue logic easier; the relevant classes are stored in the dialogueactions.py module
  • The PyYAML loader has been replaced with a more robust YamlDialogueParser? class (see the dialogueparsers.py module) that interfaces with the new dialogue data structure classes and supports the new YAML dialogue file syntax; an OldYamlDialogueParser? class is provided to support reading the old Techdemo1 syntax
  • Removed the existing dialogue validator; runtime dialogue validation is not yet implemented
  • Added the convert_dialogue script, which converts dialogue files in the old Techdemo1 format to the new format; all existing dialogue files have been converted to work with the new parser
  • Added two support modules for the new classes and script: ordereddict.py, which provides a Python 2.7-like OrderedDict? class for Python versions 2.4-2.6; optionparser.py, which is a simplified command-line option parser for writing scripts as an alternative to argparse and optparse
  • Updated the dialogue_demo.py script to work with the new DialogueEngine?
  • fixes[s:trac, t:269]
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---           
16PlayerCharacter:
17    ViewName: "Player Character"
18    RealName: "Player Character"
19    ObjectType: "PlayerCharacter"
20    ObjectModel: "player"
21    Map: "Mall"
22    Position: [2.0, -8.0]
23    Rotation: 0
24    Inventory:
25    - {ID: "Small pocket knife", type: "Small pocket knife", slot: "right_hand"}
26    - {ID: "Beer", type: "Beer"}
27    - {ID: "Pamphlet", type: "Pamphlet"}
28    - {ID: "Pot", type: "Pot"}
29---           
30Old Man:
31    ViewName: "Old Man"
32    RealName: "Old Man"
33    ObjectType: "NonPlayerCharacter"
34    ObjectModel: "long_coat_male"
35    Text: "An old, frail-looking man."
36    Map: "Mall"
37    Position: [10.0, 0.0]
38    Rotation: 0
39---           
40Janie:
41    ViewName: "Janie"
42    RealName: "Janie"
43    ObjectType: "NonPlayerCharacter"
44    ObjectModel: "long_coat_female"
45    Text: "A woman wearing a large coat, and a big gun."
46    Map: "Mall"
47    Position: [-5.0, -3.0]
48    Rotation: 0
49    Inventory:
50    - {ID: "Box", type: "Box"}
51---
52Bart The Drunkard:
53    ViewName: "Bart"
54    RealName: "Bart"
55    ObjectType: "NonPlayerCharacter"
56    ObjectModel: "long_coat_male"
57    Text: "A very drunk looking man."
58    Map: "Mall"
59    Position: [-5.0, -4.0]
60    Rotation: 0
61---
62Skwisgaar the Crazy Swede:
63    ViewName: "Skwisgaar"
64    RealName: "Skwisgaar"
65    ObjectType: "NonPlayerCharacter"
66    ObjectModel: "male_traveler_1"
67    Text: "A wild-eyed man with an axe."
68    Map: "Mall"
69    Position: [-5.0, -6.0]
70    Rotation: 0
71    Inventory:
72    - {ID: "yeast", type: "Yeast"}
73---
74Matti:
75    ViewName: "Matti"
76    RealName: "Matti"
77    ObjectType: "NonPlayerCharacter"
78    ObjectModel: "male_traveler_1"
79    Text: "A man shoveling snow into a hole."
80    Map: "Mall"
81    Position: [-8.0, -6.0]
82    Rotation: 0
83---
84Dig:
85    ViewName: "Dig"
86    RealName: "Dig"
87    ObjectType: "NonPlayerCharacter"
88    ObjectModel: "male_traveler_1"
89    Text: "A tough looking dude."
90    Map: "Mall"
91    Position: [2.0, -6.0]
92    Rotation: 0
93---
94Jacob:
95    ViewName: "Jacob"
96    RealName: "Jacob"
97    ObjectType: "NonPlayerCharacter"
98    ObjectModel: "long_coat_male"
99    Text: "A lean man with a sharp face and an appraising gaze."
100    Map: "Mall"
101    Position: [3.0, -6.0]
102    Rotation: 0
103---
104Kimmo Niitty:
105    ViewName: "Kimmo"
106    RealName: "Kimmo"
107    ObjectType: "NonPlayerCharacter"
108    ObjectModel: "male_traveler_1"
109    Text: "An older man who exudes confidence and ability."
110    Map: "Mall"
111    Position: [4.0, -6.0]
112    Rotation: 0
113---
114Helja:
115    ViewName: "Helja"
116    RealName: "Helja"
117    ObjectType: "NonPlayerCharacter"
118    ObjectModel: "npc_woman"
119    Text: "A business-like woman, short and stout."
120    Map: "Mall"
121    Position: [5.0, -7.0]
122    Rotation: 0
123---
124Ma Niitty:
125    ViewName: "Aino"
126    RealName: "Aino"
127    ObjectType: "NonPlayerCharacter"
128    ObjectModel: "npc_woman"
129    Text: "An ancient crone with a tight lipped smile.  She has an unlit cigarette dangling from her lips."
130    Map: "Mall"
131    Position: [-6.0, -7.0]
132    Rotation: 0
133---
134Kandi:
135    ViewName: "Kandi"
136    RealName: "Kandi"
137    ObjectType: "NonPlayerCharacter"
138    ObjectModel: "npc_woman"
139    Text: "A dark haired, scantily clad woman giving you the once over."
140    Map: "Mall"
141    Position: [-7.0, -7.0]
142    Rotation: 0
143---
144Cali:
145    ViewName: "Cali"
146    RealName: "Cali"
147    ObjectType: "NonPlayerCharacter"
148    ObjectModel: "npc_woman"
149    Text: "A scantily clad blond, checking you out."
150    Map: "Mall"
151    Position: [-8.0, -7.0]
152    Rotation: 0
153---
154Camilla Niitty:
155    ViewName: "Camilla"
156    RealName: "Camilla Niitty"
157    ObjectType: "NonPlayerCharacter"
158    ObjectModel: "long_coat_female"
159    Text: "A hard-faced pretty young woman. She seems to be scowling."
160    Map: "Mall"
161    Position: [-5.0, -7.0]
162    Rotation: 0
163---
164Synnove Niitty:
165    ViewName: "Synnove"
166    RealName: "Synnove"
167    ObjectType: "NonPlayerCharacter"
168    ObjectModel: "long_coat_female"
169    Text: "A plain looking girl with a faraway look in her eye."
170    Map: "Mall"
171    Position: [-5.0, -9.0]
172    Rotation: 0
173---
174Farmer Manslow:
175    ViewName: "Manslow"
176    RealName: "Manslow"
177    ObjectType: "NonPlayerCharacter"
178    ObjectModel: "male_farmer_1"
179    Text: "A grimy looking farmer."
180    Map: "Farm"
181    Position: [-3.0, -3.0]
182    Rotation: 0
183    Inventory:
184        - {ID: bushel_of_grain, type: Grain}
185---           
186Sami:
187    ViewName: "Sami"
188    RealName: "Sami"
189    ObjectType: "NonPlayerCharacter"
190    ObjectModel: "long_coat_male"
191    Text: "An earstwhile boy, working hard."
192    Map: "Farm"
193    Position: [3.0, 4.0]
194    Rotation: 0
195---           
196Rasmus:
197    ViewName: "Rasmus"
198    RealName: "Rasmus"
199    ObjectType: "NonPlayerCharacter"
200    ObjectModel: "long_coat_male"
201    Text: "A grimy looking farmer."
202    Map: "Farm"
203    Position: [4.0, 3.0]
204    Rotation: 0
205---
206Bottle:
207    ViewName: Bottle
208    ObjectType: "MapItem"
209    ItemType: "Empty beer bottle"
210    Map: "Mall"
211    Position: [-5.0, -11.0]
212    Rotation: 0
213---
214Potato:
215    ViewName: Wild potato
216    ObjectType: "MapItem"
217    ItemType: "Wild potato"
218    Map: "Farm"
219    Position: [7.0, -16.0]
220    Rotation: 0
221---
222Yam:
223    ViewName: Yam
224    ObjectType: "MapItem"
225    ItemType: "Rotten yam"
226    Map: "Farm"
227    Position: [-4.0, 0.0]
228    Rotation: 0
229---
230Wood:
231    ViewName: Wood
232    ObjectType: "MapItem"
233    ItemType: "Wood"
234    Map: "Mall"
235    Position: [10.0, 8.0]
236    Rotation: 0
237---
238Questionable Water:
239    ViewName: Water
240    ObjectType: "MapItem"
241    ItemType: "Questionable water"
242    Map: "Mall"
243    Position: [9.0, -33.0]
244    Rotation: 0
245---
246Pure Water:
247    ViewName: Water
248    ObjectType: "MapItem"
249    ItemType: "Pure water"
250    Map: "Mall"
251    Position: [12.0, -42.0]
252    Rotation: 0
253   
Note: See TracBrowser for help on using the repository browser.