This script allows you to transform one item into others when the item
is used. The old item is consumed, and new items are added to your inventory.
Script: download here
Place this script below Materials and above Main
Tag items with
<transform use: ID amount condition>
ID is the ID of the item to add to your inventory
amount is how much will be given
condition is a formula that determines whether it will be added or not
When the item is used, you will lose the item, but then gain the specified
amount of new items. So for example
<transform use: 12 2>
Will give two of item 12 when the tagged item is used.
If you want to place conditions on whether the item will be transformed or not,
you can use a condition
<transform use: 12 5 s>
This will only give item 12 if switch 1 is ON.
The following variables are available for your condition formula:
a - user of the item p - current party v - game variables s - game switches
A single item can have multiple tags, and whenever the item is used, all of
those new items will be added.