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

no-reply_wiki at metalforge.org no-reply_wiki at metalforge.org
Sat May 8 06:02:52 CDT 2010


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

Date        : 2010/05/08 06:02
User        : ryo
Edit Summary: update

@@ -311,16 +311,44 @@
  ==== GetSharedDictionary ====
  Returns a Python ''dictionary'' the script can use to share data with other scripts.
  
  Note that data will be lost in case of server restart.
+ 
  ==== MatchString ====
  Parameters:
    * string to be searched
    * pattern to search for
  
  Returns ''1'' if string matches the pattern, ''0'' else.
  
  Pattern can be a regular expression FIXME specifications
+ 
+ ==== AddReply ====
+ Parameters:
+   * string that is the word the player can say
+   * string that is the description of the choice
+ 
+ This method can only be called in a EVENT_SAY context.
+ 
+ Will generate an error if too many replies defined or not in an EVENT_SAY context.
+ 
+ ==== SetPlayerMessage ====
+ Parameters:
+   * string that is what the player will be seen as saying
+   * optional integer being the type of the message
+ 
+ This method can only be called in a EVENT_SAY context.
+ 
+ ==== NPCSay ====
+ Parameters:
+   * ''object'' that is the NPC who will talk
+   * string that is the message to say
+ 
+ This method can only be called in a EVENT_SAY context.
+ 
+ Will add an NPC reply, that will be displayed to the player when the dialog processing ends.
+ 
+ Will generate an error if too many messages defined or not in an EVENT_SAY context.
  
  ====== Crossfire module classes =====
  All classes below are part of Crossfire module
  ===== Archetype =====


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

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




More information about the crossfire-wiki mailing list