Changes between Version 7 and Version 8 of code/doc/Questsystem
- Timestamp:
- Dec 8, 2008, 2:17:51 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
code/doc/Questsystem
v7 v8 36 36 ==== LocalQuest ==== 37 37 A LocalQuest is a Quest which has different states for each player, that means each LocalQuest can be obtained and completed (or failed) by each player parallely. 38 For generating the questId you can [http://www.google.com/search?q=guid+generator google] or you can use this [http://www.famkruithof.net/uuid/uuidgen generator]. 38 39 39 40 Creating a LocalQuest in XML goes as follows: … … 66 67 ==== GlobalQuest ==== 67 68 GlobalQUests are different, they can be obtained by every player but the changes made to the Quest (i.e. completion of the Quest) affect all owners of the Quest. In short. There are 3 Players, A, B and C. Player A obtains the Quest, a while later player B obtains the Quest and completes it. Since it is a GlobalQuest it is completed for all Players having obtained the Quest which means it is also completed for player A. Player C though, never having obtained the Quest, can now never complete this Quest. 69 For generating the questId you can [http://www.google.com/search?q=guid+generator google] or you can use this [http://www.famkruithof.net/uuid/uuidgen generator]. 68 70 69 71 Creating a GlobalQuest in XML goes as follows: … … 100 102 101 103 As you may see, the difference between a GlobalQuest also lies in the fact of the GlobalQuest having RewardEffects. RewardEffects are only executed on the completing player, while CompleteEffects are executed on all player having obtained the Quest before it is completed, when it is completed. 104 105 === QuestHint == 106 QuestHints can be used to give a player useful (or just funnily unuseful) information for Quests he is working on completing. The cannot have any sideeffects but also have an identifier which follows the same form as in the Quests. 107 108 109 Creating a QuestHint in XML goes as follows: 110 {{{ 111 <QuestHint id="hintId"> //Where hintId is a GUID, see http://en.wikipedia.org/wiki/Globally_Unique_Identifier#Basic_structure for more information 112 <QuestDesctription title="" description="" /> 113 </QuestHint> 114 }}}} 115 116 === QuestDescription === 117 Each Quest (and also each QuestHint) mus have a QuestDescription consisting of a title and description, and for Quests also messages for the event the Quest is either failed or completed. Of course these are (as is the title and the description) optional. 118 119 Creating a QuestDescription in XML goes as follows: 120 {{{ 121 <QuestDescription title="Title" description="Description Text" failMessage="You fail." completeMessage="You win!" /> 122 }}} 123