[Crossfire-wiki] [Crossfire DokuWiki] page changed: user:cavesomething:guide_to_quest_dialogs

no-reply_wiki at metalforge.org no-reply_wiki at metalforge.org
Sat Jun 12 12:06:57 CDT 2010


A page in your DokuWiki was added or changed. Here are the details:

Date        : 2010/06/12 12:06
User        : ryo
Edit Summary: update preconditions

@@ -190,12 +190,16 @@
  
  In the Pre Block, the following checks are supported:
  
    * Quest
+   * QuestDone
    * Item
    * Token
+   * NPCToken
    * Level
    * Age
+   * ArchInInventory
+   * KnowledgeKnown
  
  === Quest ===
  
  Quest is followed by two fields, the name of the quest, and the step that the player must be at or past.
@@ -205,8 +209,16 @@
  </code>
  Checks that the player has reached at least step 5 of the quest 'testquest'
  
  Have a look at the 'Quest' Section for an explanation of the 'steps'
+ 
+ === QuestDone ===
+ QuestDone is followed by the name of the quest.
+ eg
+ <code>
+ ["questdone", "testquest"]
+ </code>
+ Will match if the player already completed the quest at least once, whatever the current state is now. Useful to for instance give a big reward the first time, and less things if the quest is done again.
  
  === Item ===
  
  Item is followed by the name of the item to check for, and optionally the number that are required.
@@ -235,8 +247,13 @@
  Checks whether the token "pester" holds the value "1"
  There can be more than 1 value provided.
  
  Tokens are stored in the player file, under the "location" which was specified at the top of the file. Any dialog files which point to the same location have access to the same tokens (and can affect the values they hold). Two tokens with the same name but in different locations are treated separately.
+ 
+ === NPCToken ===
+ This works like ''Token'' above, except the value will be saved in the NPC itself. Thus if the map is reset, this token will be lost.
+ 
+ This is useful to store temporary data that can be lost without harm, like a conversation state if the conversation can restart.
  
  === Level === 
  
  Checks if the player is at or above the specified level, 
@@ -284,8 +301,29 @@
  "pre" : [["age", "mymarker", "0", "1", "1", "0", "0"]],
  </code>
  
  Although it would be better to use the second version because it is easier to compare to other age checks.
+ 
+ === ArchInInventory ===
+ 
+ This check evaluates to true if the player has in her inventory an item with the specified archetype name.
+ eg
+ <code>
+ ["archininventory", "skill_inscription"]
+ </code>
+ will evaluate to true if the player has the ''inscription'' skill.
+ 
+ === KnowledgeKnown ===
+ 
+ This check evaluates to true if the player knows, through the knowledge system, the specified knowledge item.
+ 
+ <code>
+ ["knowledgeknown", "item"]
+ </code>
+ 
+ ''item'' is a special format, describing the knowledge item to check for.
+ 
+ Example: ''alchemy:1:3829:the wise'' will check for the ''water of the wise'' alchemy formulae.
  
  ===Random===
  ** TODO **
    * 'random' [chance] [seed] - should trigger chance% of the time. This should be generated against the object ID of the NPC (which won't change between resets), seed should be used to control the group of NPCs that are selected (so that two rules with the same chance and seed number will trigger on the same NPCs). Likewise, changing chance but not seed should increase or decrease the number of people included, but not reroll them (so you could have "chance" "20" "43" to tell a character about something, then "chance" "10" "43" to give more useful information on further questioning). '-seed' should invert the selection of 'seed' - more for convenience than anything else.


IP-Address  : 82.236.87.204
Old Revision: http://wiki.metalforge.net/doku.php/user:cavesomething:guide_to_quest_dialogs?rev=1276361614
New Revision: http://wiki.metalforge.net/doku.php/user:cavesomething:guide_to_quest_dialogs

-- 
This mail was generated by DokuWiki at
http://wiki.metalforge.net/




More information about the crossfire-wiki mailing list