Changes between Version 25 and Version 26 of code/doc/Questsystem
- Timestamp:
- Sep 1, 2010, 11:53:42 AM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
code/doc/Questsystem
v25 v26 27 27 ==== LocalQuest ==== 28 28 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 in parallel. 29 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].29 A questId is some string that uniquely identifies the quest, this can either be a name or to ensure uniqueness you can use a GUID generator ([http://www.google.com/search?q=guid+generator google] or you can use this [http://www.famkruithof.net/uuid/uuidgen generator]. The advantage of GUID is, that you can be quite sure that your id is unique, the drawback is, that it provides less overview can can be quite confusing when looking at the level file. 30 30 31 31 Creating a LocalQuest in XML goes as follows: 32 32 {{{ 33 <LocalQuest id="questId"> //Where questId is a GUID, see http://en.wikipedia.org/wiki/Globally_Unique_Identifier#Basic_structure for more information33 <LocalQuest id="questId"> 34 34 <QuestDescription title="Title" description="Description." /> //The description of the quest. 35 35 <subquests> … … 58 58 ==== GlobalQuest ==== 59 59 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. 60 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].61 60 62 61 Creating a GlobalQuest in XML goes as follows: 63 62 {{{ 64 <GlobalQuest id="questId"> //Where questId is a GUID, see http://en.wikipedia.org/wiki/Globally_Unique_Identifier#Basic_structure for more information63 <GlobalQuest id="questId"> 65 64 <QuestDescription title="Title" description="Description." /> //The description of the quest. 66 65 <subquests> … … 100 99 Creating a QuestHint in XML goes as follows: 101 100 {{{ 102 <QuestHint id="hintId"> //Where hintId is a GUID, see http://en.wikipedia.org/wiki/Globally_Unique_Identifier#Basic_structure for more information101 <QuestHint id="hintId"> 103 102 <QuestDesctription title="" description="" /> 104 103 </QuestHint> … … 126 125 127 126 {{{ 128 <AddQuest questId="id" /> //Where id i s a GUID, see http://en.wikipedia.org/wiki/Globally_Unique_Identifier#Basic_structure for more information, and identifies the Quest that should be added.127 <AddQuest questId="id" /> //Where id identifies the Quest that should be added. 129 128 }}} 130 129 … … 133 132 134 133 {{{ 135 <FailQuest questId="id" /> //Where id i s a GUID, see http://en.wikipedia.org/wiki/Globally_Unique_Identifier#Basic_structure for more information, and identifies the Quest that should be added.134 <FailQuest questId="id" /> //Where id identifies the Quest that should be added. 136 135 }}} 137 136 … … 140 139 141 140 {{{ 142 <CompleteQuest questId="id" /> //Where id i s a GUID, see http://en.wikipedia.org/wiki/Globally_Unique_Identifier#Basic_structure for more information, and identifies the Quest that should be added.141 <CompleteQuest questId="id" /> //Where id identifies the Quest that should be added. 143 142 }}} 144 143 … … 147 146 148 147 {{{ 149 <AddQuestHint hintId="id" /> //Where id i s a GUID, see http://en.wikipedia.org/wiki/Globally_Unique_Identifier#Basic_structure for more information, and identifies the QuestHint that should be added.148 <AddQuestHint hintId="id" /> //Where id identifies the QuestHint that should be added. 150 149 }}} 151 150