[Crossfire-wiki] [Crossfire DokuWiki] page changed: cfdialog

no-reply_wiki at metalforge.org no-reply_wiki at metalforge.org
Sat May 8 08:16:11 CDT 2010


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

Date        : 2010/05/08 08:16
User        : ryo
Edit Summary: add 'replies'

@@ -205,8 +205,10 @@
  
  All of the rule values are lists, and must be enclosed by square braces, but pre and post are lists of lists, so the double square braces (<nowiki>[[]]</nowiki>) are required.
  
  **msg** defines one or more responses that will be given if the rule triggers.  When more than one "msg" value is set up, the NPC randomly selects which one to say each time the rule is applied.
+ 
+ **replies** optionally defines suggestion to the player if this rule is executed. This is used first to let the player know what options are available, and secondly to alter the text that the player will actually say. This should be a list of items in the form ''<nowiki>[word, text, type]</nowiki>'', with ''word'' the actual word the player should say, ''text'' the text the player will actually say if she says the word, ''type'' an optional integer to specify if the text is a regular sentence (0), a reply (1) or a question to ask (2).
  
  A relatively complex example of an npc_dialog.py dialog is given in the Gork treasure room quest.  See **/scorn/kar/gork.msg** in particular as it demonstrates how multiple precondition flag values may be exploited to produce non-linear and variable-path conversations that are less likely to frustrate a player.  Refer also to **/scorn/kar/mork.msg** to see how more than one dialog can reference the same dialog flags.
  
  ====Related Resources====
@@ -214,5 +216,4 @@
    * [[http://crossfire.svn.sourceforge.net/viewvc/crossfire/maps/trunk/python/misc/npc_dialog.py?view=log|npc_dialog.py]] in SVN.
    * Some actual in-game dialogs supported by npc_dialog.py are:
      - Mork and Gork mini-quest in Scorn
      - Sigmund in Newbies House
- 


IP-Address  : 82.236.87.204
Old Revision: http://wiki.metalforge.net/doku.php/cfdialog?rev=1231289322
New Revision: http://wiki.metalforge.net/doku.php/cfdialog

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




More information about the crossfire-wiki mailing list