ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/doc/Developers/item_transformation
Revision: 1.1.1.1 (vendor branch)
Committed: Fri Feb 3 07:12:30 2006 UTC (18 years, 5 months ago) by root
Branch: UPSTREAM
CVS Tags: UPSTREAM_2006_03_15, LAST_C_VERSION, STABLE, UPSTREAM_2006_02_22, difficulty_fix_merge_060810_2300, UPSTREAM_2006_02_03
Branch point for: difficulty_fix
Changes since 1.1: +0 -0 lines
Log Message:
initial import

File Contents

# User Rev Content
1 root 1.1 This file explains the 'ITEM_TRANSFORMER' (163) item type.
2    
3     Last update: 2005-07-19.
4    
5     An item transformer is simply applied, after having marked a 'victim' item.
6     If the victim is suitable, it will be transformed into something else.
7    
8     To make an item transformable, you just have to fill the 'slaying' field.
9     The syntax is:
10     slaying slayer:[yield ]new_item[;slayer:[yield ]new_item]*
11    
12     with [] denoting optional part, and * any number of preceding [].
13    
14     Example, for object apple:
15     slaying knife:2 half_apple
16    
17     This means that, when applying a knife (non existing item with type of 163),
18     one 'apple' will be transformed into 2 'half_apple'.
19    
20     Pretty simple, hopefully.
21    
22     Transformer uses food value to count how many times it can be used. 0 denotes
23     unlimited uses.
24    
25     The 'slaying' field of the 'transformer' is a verb used to construct a message.
26    
27     More complex imaginary example:
28     Object water
29     slaying bowl:full_bowl;paper:wet_paper
30    
31     if paper and bowl are 'transformer' items.