[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:12:33 CDT 2010


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

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

@@ -331,16 +331,19 @@
  ==== The Post Block ====
  
  After the Pre block is used to decide whether a message should trigger, the post block holds the consequences.
  
- There are 5 different options here:
+ There are 9 different options here:
  
    * quest
    * giveitem
    * givecontents
    * takeitem
    * settoken
+   * setnpctoken
    * connection
+   * marktime
+   * animate
  
  === quest ===
  
  This sets the named quest to the stage which is specified.
@@ -436,8 +439,15 @@
  
  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.
  
  NB: Tokens and time markers are actually the same thing, so if you need to reset a timemarker, then you can use settoken, and set it to 0, if you do, all age checks against the marker will fail until it is set again.
+ 
+ === setnpctoken ===
+ Same as ''settoken'', except the token is set in the NPC itself, and will be lost eg if the map resets. Tokens are player-specific, so no collision can occur between players.
+ 
+ Useful to store transitory data, like a conversation state.
+ 
+ Tokens are checked with ''npctoken'' in the ''pre'' conditions.
  
  === connection ===
  
  Triggers the specified connection on the map
@@ -473,8 +483,19 @@
  
  Stores the current time in "mymarker", you can then check this with 'age' in a 'pre' block to check how long has passed since that point.
  
  This can be used for putting time limits on parts of dialog/quests etc.
+ 
+ === animate ===
+ 
+ Start an animation. The only argument is the path to the animation file.
+ 
+ eg
+ <code>
+ ["animate", "/test/quest_handling/ninja.animation"]
+ </code>
+ 
+ FIXME explain, describe animation in its own page
  
  ==== The msg Block ====
  
  This is send directly to the player, if the pre conditions are matched, with the following exceptions:


IP-Address  : 82.236.87.204
Old Revision: http://wiki.metalforge.net/doku.php/user:cavesomething:guide_to_quest_dialogs?rev=1276362409
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