Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes between Version 25 and Version 26 of code/doc/Questsystem


Ignore:
Timestamp:
Sep 1, 2010, 11:53:42 AM (14 years ago)
Author:
dafrick
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • code/doc/Questsystem

    v25 v26  
    2727==== LocalQuest ====
    2828A 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].
     29A 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.
    3030
    3131Creating a LocalQuest in XML goes as follows:
    3232{{{
    33 <LocalQuest id="questId"> //Where questId is a GUID, see http://en.wikipedia.org/wiki/Globally_Unique_Identifier#Basic_structure for more information
     33<LocalQuest id="questId">
    3434    <QuestDescription title="Title" description="Description." /> //The description of the quest.
    3535    <subquests>
     
    5858==== GlobalQuest ====
    5959GlobalQUests 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].
    6160
    6261Creating a GlobalQuest in XML goes as follows:
    6362{{{
    64 <GlobalQuest id="questId"> //Where questId is a GUID, see http://en.wikipedia.org/wiki/Globally_Unique_Identifier#Basic_structure for more information
     63<GlobalQuest id="questId">
    6564    <QuestDescription title="Title" description="Description." /> //The description of the quest.
    6665    <subquests>
     
    10099Creating a QuestHint in XML goes as follows:
    101100{{{
    102 <QuestHint id="hintId">  //Where hintId is a GUID, see http://en.wikipedia.org/wiki/Globally_Unique_Identifier#Basic_structure for more information
     101<QuestHint id="hintId">
    103102    <QuestDesctription title="" description="" />
    104103</QuestHint>
     
    126125
    127126{{{
    128 <AddQuest questId="id" />  //Where id is 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.
    129128}}}
    130129
     
    133132
    134133{{{
    135 <FailQuest questId="id" />  //Where id is 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.
    136135}}}
    137136
     
    140139
    141140{{{
    142 <CompleteQuest questId="id" />  //Where id is 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.
    143142}}}
    144143
     
    147146
    148147{{{
    149 <AddQuestHint hintId="id" />  //Where id is 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.
    150149}}}
    151150