Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes between Version 7 and Version 8 of code/doc/Questsystem


Ignore:
Timestamp:
Dec 8, 2008, 2:17:51 PM (15 years ago)
Author:
dafrick
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • code/doc/Questsystem

    v7 v8  
    3636==== LocalQuest ====
    3737A 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.
     38For 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].
    3839
    3940Creating a LocalQuest in XML goes as follows:
     
    6667==== GlobalQuest ====
    6768GlobalQUests 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.
     69For 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].
    6870
    6971Creating a GlobalQuest in XML goes as follows:
     
    100102
    101103As 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 ==
     106QuestHints 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
     109Creating 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 ===
     117Each 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
     119Creating a QuestDescription in XML goes as follows:
     120{{{
     121<QuestDescription title="Title" description="Description Text" failMessage="You fail." completeMessage="You win!" />
     122}}}
     123