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

no-reply_wiki at metalforge.org no-reply_wiki at metalforge.org
Tue Mar 19 21:34:09 CDT 2013


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

Date        : 2013/03/19 21:34
User        : katia
Edit Summary: 

@@ -1,6 +1,6 @@
  (Note: It would be nice if there were more code examples on this page.
- For instance bla.WriteKey("buildinghp", 100, 1) does not insert the key value "buildinghp 100" into bla. It would be nice to know what is wrong here since this wiki suggests that's how it's to be done. More code examples would clear up any confusion and allow new developers to more quickly pick up cf-python.)
+ For instance bla.WriteKey("buildinghp", 100, 1) does not insert the key value "buildinghp 100" into bla. It would be nice to know what is wrong here since this wiki suggests that's how it's to be done. More code examples would clear up any confusion and allow new developers to more quickly pick up cf-python.) [As of march 2013 this note is outdated. Also, see some examples at the bottom of this page.]
  
  Python plugin is a [[server plugin]] able to run Python scripts that manipulate Crossfire items, monsters, players, maps, ...
  
  The latest version, 2.0, is a major rewrite which introduces Python objects to represent maps, Crossfire objects and players. The hooking system also changed.
@@ -1086,4 +1086,6 @@
  activator.Teleport(m, 15, 1)
  </code>
  === Object.WriteKey ===
  FIXME write an example
+ 
+ (see a working example at maps/python/monsters/farnass.py used from maps/scorn/misc/castle_kitchen )


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