source: branches/active/character_customization/game/quests/beer.yaml @ 758

Revision 570, 1.5 KB checked in by beliar, 9 years ago (diff)

Patch by Beliar.

  • Quest files are now read in and parsed at the start of the game. and the Quests stored in the quests property of quest_engine. This allows quest variables to be set even when the quest is not active.
  • replaced addQuest with activateQuest which now only accepts the quest_id as a parameter.
  • Removed deleteQuest and added failQuest instead
  • Added a function to restart a quest, this will reset quest_variables that have a "reset_value" property to this value.
  • Modified Dialogue and Quest files to work with the changes
  • Added "QuestsDirectory?" setting to the settings file. Please delete your old settings.xml and let the game recreate it.
  • 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
16DEFINES:
17    beer_quality:
18        value: 0
19        reset_value: 0
20        goal_value: 5
21        # 0 = no beer, -1 = poison beer, >=1 quality of beer
22
23    beer_instructions:
24        value: ''
25        goal_value: 'Read'
26
27    farmer_beer_convinced:
28        value: 0
29        goal_value: 1
30
31    yeast_available:
32        value: 1
33        goal_value: 0
34        # If you get the yeast or say the wrong thing to the crazy swede, this gets set to 0
35
36    grain_available:
37        value: 1
38        goal_value: 0
39        # If you get the grain this gets set to 0, you only get 1.
40        # future versions might let you get the grain after you have completed a batch of "bad" beer.
41
42QUEST_PROPERTIES:
43    quest_id: beer
44    quest_giver_id: 12 # what is this for
45    quest_name: "Where's me beer!?"
46    description: "Arr, I need beer!"
47
Note: See TracBrowser for help on using the repository browser.