[Crossfire-wiki] [Crossfire DokuWiki] page changed: cfpython
no-reply_wiki at metalforge.org
no-reply_wiki at metalforge.org
Mon Jun 4 13:38:02 CDT 2007
A page in your DokuWiki was added or changed. Here are the details:
Date : 2007/06/04 13:38
User : ryo
Edit Summary: experience rewarder
@@ -797,4 +797,23 @@
This script makes the monster/living thing containing it display a message when it attacks for the first time an enemy. It should be hooked through an ''event_time'' archetype in monster's inventory.
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.
+
+ ===== Experience rewarder =====
+ Script location: ''/python/items/experience_rewarder.py''
+
+ This script will give experience to the "activating" player. It should be linked through the "trigger" event of an altar, or similar thing.
+
+ Options are specified in the event object's fields.
+
+ A key/value will be used to store in the player if she activated the item already.
+
+ Available options are:
+ * exp: experience to gain
+ * skill: skill to add experience to. Can be empty, in which case exp is given to the general exp only
+ * wc: what to do when the player doesn't know the skill:
+ * 0: give the player the skill
+ * 1: give player exp to total, no skill
+ * 2: player gets nothing
+ * race: if set, the player can only use once this item.
+
IP-Address : 82.236.87.204
Old Revision: http://wiki.metalforge.net/doku.php/cfpython?rev=1180982038
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