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

no-reply_wiki at metalforge.org no-reply_wiki at metalforge.org
Wed Jan 3 05:05:13 CST 2007


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

Date        : 2007/01/03 05:05
User        : ryo
Edit Summary: update

@@ -365,8 +365,9 @@
    * MoveOn
    * MoveOff
    * MoveSlow
    * MoveSlowPenalty
+ 
  
  ==== Methods ====
  
  === ActivateRune ===
@@ -428,17 +429,33 @@
  Current object is reinitialized from its default values, values (ac, wc, Str, ...) are recomputed from items worn, in inventory, ...
  
  === ForgetSpell ===
  === GetResist ===
+ Gets the value of a resistance to an attacktype.
+ 
+ Arguments:
+   * ''Number'': attacktype for which to get the resistance
+ 
+ Return: ''Number'' with the value. Note that an invalid attacktype will return 0, which can't be distinguished from a neutral resistance.
+ 
  === InsertInto ===
  === KnowSpell ===
  === LearnSpell ===
  === OutOfMap ===
  === Pay ===
  === PayAmount ===
  === QueryCost ===
  === QueryName ===
+ 
+ Return: ''String'' containing the object's full name.
+ 
  === ReadKey ===
+ Reads key associated to value.
+ 
+ Arguments:
+   * ''String'': key value to read
+ 
+ Return: ''String'' containing the value. Will be empty if NULL value.
  
  === Remove ===
  
  Destroys current object, which then becomes invalid.
@@ -465,10 +482,24 @@
  Argument:
    * ''Crossfire.Object'' to take
  
  === Teleport ===
+ Teleports the object to specified place.
+ 
+ Arguments:
+   * ''Crossfire.Map'': map to insert into.
+   * ''Number'': x coordinates
+   * ''Number'': y coordinates
+ 
+ Return value: ''Number'', 0 for success, 1 for failure.
+ 
  === WriteKey ===
+ Inserts specified key/value in the object.
  
+ Arguments:
+   * ''String'': key value
+   * ''String'': value to associate to the key
+   * ''Number'' (optional): 0 to only update the key and not insert it, non zero to add it anyway
  
  ===== Crossfire.Map methods and attributes =====
  
  All properties are read-only.


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