[Crossfire-wiki] [Crossfire DokuWiki] page changed: dev_todo:functions_implemented_but_not_yet_used
no-reply_wiki at metalforge.org
no-reply_wiki at metalforge.org
Thu Oct 25 16:30:21 CDT 2007
A page in your DokuWiki was added or changed. Here are the details:
Date : 2007/10/25 16:30
User : ryo
Edit Summary: update
@@ -42,4 +42,30 @@
Supposedly used to generate a newspaper. Uses cflogger to find information. Pre-alpha version, doesn't do much.
===== advanced NPC dialogs =====
See [[:cfdialog]] for more info.
+
+ ===== use command =====
+ (trunk only)
+
+ Through the ''use'' command, it is possible to define complex item transformations.
+
+ ''use'' will work on 2 items, which will be called ''item1'' and ''item2'.'
+
+ Syntax for command is 'use item1 with item2'.
+
+ item2 is searched for a key/value of the form, in this order:
+ * on_use_with_<item1's archetype name>
+ * on_use_with_<item1's type>_<item1's subtype>
+ * on_use_with_<item1's type>
+
+ If no key is found, use will simply not do anything.
+
+ If a key is found, it's processed to know what to do.
+
+ Syntax of the value is pretty simple:
+ * add [number] archetype: will give the player [number] items of archetype specified
+ * remove $1: will remove one item1
+ * remove $2: will remove one item2
+
+ Note that remove can appear multiple times, but you can't specify a precise number to remove.
+
IP-Address : 82.236.87.204
Old Revision: http://wiki.metalforge.net/doku.php/dev_todo:functions_implemented_but_not_yet_used?rev=1187648303
New Revision: http://wiki.metalforge.net/doku.php/dev_todo:functions_implemented_but_not_yet_used
--
This mail was generated by DokuWiki at
http://wiki.metalforge.net/
More information about the crossfire-wiki
mailing list