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

no-reply_wiki at metalforge.org no-reply_wiki at metalforge.org
Sun Jan 24 09:42:34 CST 2010


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

Date        : 2010/01/24 09:42
User        : ryo
Edit Summary: quest-related functions

@@ -860,8 +860,57 @@
  ==== Write ====
  
  Equivalent of Message.
  
+ ==== QuestStart ====
+ (trunk only)
+ 
+ TODO explain quest definitions
+ 
+ Signal a player that she started a quest. Note that the quest must be correctly defined in the ''default.quests'' file.
+ 
+ Arguments:
+   * ''quest_code'': string, internal quest code.
+   * ''state'': integer, state to set the quest to.
+ 
+ ==== QuestGetState ====
+ (trunk only)
+ 
+ Query the current state of a quest for the player. Note that the quest must be correctly defined in the ''default.quests'' file.
+ 
+ Arguments:
+   * ''quest_code'': string, internal quest code
+ 
+ Return:
+   * quest state, 0 if not started (or was completed previously and not started again)
+ 
+ ==== QuestSetState ====
+ (trunk only)
+ 
+ Signal a player that she advanced in a quest. Note that the quest must be correctly defined in the ''default.quests'' file.
+ 
+ Arguments:
+   * ''quest_code'': string, internal quest code.
+   * ''state'': integer, state to set the quest to.
+ 
+ ==== QuestEnd ====
+ (trunk only)
+ 
+ Signal a player that she completed in a quest. Note that the quest must be correctly defined in the ''default.quests'' file.
+ 
+ Arguments:
+   * ''quest_code'': string, internal quest code.
+ 
+ ==== QuestWasCompleted ====
+ (trunk only)
+ 
+ Query whather the player completed the quest previously. Note that the quest must be correctly defined in the ''default.quests'' file.
+ 
+ Arguments:
+   * ''quest_code'': string, internal quest code
+ 
+ Return:
+   * 0 if the quest was never completed, 1 else
  
  ===== Party =====
  This class merely encapsulates a party. Everything is read-only. Attributes:
    * Name: ''String''


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