[Crossfire-wiki] [Crossfire DokuWiki] page changed: cfpython
no-reply_wiki at metalforge.org
no-reply_wiki at metalforge.org
Sun Apr 15 07:17:19 CDT 2007
A page in your DokuWiki was added or changed. Here are the details:
Date : 2007/04/15 07:17
User : ryo
Edit Summary: some more constants
@@ -57,9 +57,9 @@
===== Constants =====
Constants are available to wrap values used in Crossfire code like object types, movements, ...
- They are available through ''Crossfire.xxx.VALUE'', where ''xxx'' is the constant type and ''VALUE'' the value as in the C sources code in uppercase, without specific prefix (ie F_TRUE becomes TRUE).
+ They are available through ''Crossfire.xxx.VALUE'', where ''xxx'' is the constant type and ''VALUE'' the value as in the C sources code in uppercase, without specific prefix (ie F_TRUE becomes TRUE, AT_FIRE becomes FIRE).
For each constant group ''xxx'' there exists a ''xxxName'' dictionary object containing the name of the value as a string.
The following constant types exist:
@@ -67,8 +67,11 @@
* ''Type'': object type, as defined in ''include/define.h''
* ''Move'': movement types, as defined in ''include/define.h''
* ''MessageFlag'': NDI_xxx constants, as defined in ''include/newclient.h''
* ''CostFlag'': F_xxx constants, as defined in ''include/define.h'' (without the F_ prefix)
+ * ''AttackType'': AT_xxx constants, as defined in ''include/attack.h''
+ * ''AttackTypeNumber'': ATNR_xxx constants, as defined in ''include/attack.h''
+ * ''EventType'': EVENT_xxx constants, as defined in ''include/plugin.h''
{FIXME} do a nice table, with link to values?
Example:
@@ -614,5 +617,4 @@
===== /python/misc/greet_message.py =====
This script makes the monster/living thing containing it display a message when it attacks for the first time an enemy.
Message is specified in event object's options field. It can contain %m and %e, which will be replaced by respectively monster's name and enemy's name.
-
IP-Address : 82.236.87.204
Old Revision: http://wiki.metalforge.net/doku.php/cfpython?rev=1176630016
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