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. |