summaryrefslogtreecommitdiff
path: root/example/clientdata
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-04-19 00:37:38 +0200
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-04-19 00:37:38 +0200
commitca1dd6fcaf1dfaef0f18df0b6c114f1baa25d2ce (patch)
treebd33eda8c946436bf844fc157aa5208c7da9b934 /example/clientdata
parent80e07598a896e73e08e2511f08602e2b6d2e4eb7 (diff)
downloadmanaserv-ca1dd6fcaf1dfaef0f18df0b6c114f1baa25d2ce.tar.gz
manaserv-ca1dd6fcaf1dfaef0f18df0b6c114f1baa25d2ce.tar.bz2
manaserv-ca1dd6fcaf1dfaef0f18df0b6c114f1baa25d2ce.tar.xz
manaserv-ca1dd6fcaf1dfaef0f18df0b6c114f1baa25d2ce.zip
Implemented scriptable effects on item use and dispell.
Reviewed-by: Thorbjorn.
Diffstat (limited to 'example/clientdata')
-rw-r--r--example/clientdata/items.xml9
1 files changed, 6 insertions, 3 deletions
diff --git a/example/clientdata/items.xml b/example/clientdata/items.xml
index 8ab3fd10..ff0b1c5e 100644
--- a/example/clientdata/items.xml
+++ b/example/clientdata/items.xml
@@ -64,11 +64,14 @@
description="A sugar-free candy."
type="usable"
hp="5"
- script="candy.lua"
weight="1"
max-per-slot="30"
- value="15"
- />
+ value="15">
+ <effect trigger="activation">
+ <script src="candy.lua" function="use" />
+ <consumes />
+ </effect>
+ </item>
<item id="2" max-per-slot="1" name="Regenerative trinket"
description="A trinket with refreshing powers."
image="usable/usable-regenerative-trinket.png"