Is it possible to make a recipe have multiple different ingredient options
example draft picture:
Im not asking if I can make multiple Recipe Items for the same item with different ingredients on each single recipe I want the recipe to read if I have crystal 1 OR crystal 2 OR crystal 3 OR (up to however many I have)
I have this in the Note Tag but it only takes the initial Item 288 gem and than blanks out, I want it to take any of my Gems if I have 3 of a kind..
example draft picture:
Im not asking if I can make multiple Recipe Items for the same item with different ingredients on each single recipe I want the recipe to read if I have crystal 1 OR crystal 2 OR crystal 3 OR (up to however many I have)
I have this in the Note Tag but it only takes the initial Item 288 gem and than blanks out, I want it to take any of my Gems if I have 3 of a kind..
Code:
<Not Independent Item>
<Menu Category: Materials>
<Synthesis Ingredients>
Item 288: 3
</Synthesis Ingredients>
<Custom Synthesis Requirement>
var gemIds = [288, 289, 290, 291, 292, 293, 294, 295];
var hasThree = false;
for (var i = 0; i < gemIds.length; i++) {
if ($gameParty.numItems($dataItems[gemIds[i]]) >= 3) {
hasThree = true;
break;
}
}
value = hasThree;
</Custom Synthesis Requirement>
<Custom Synthesis Effect>
// so that it doesn't take 6 of the item 288 gem
$gameParty.gainItem($dataItems[288], 3);
var gemIds = [288, 289, 290, 291, 292, 293, 294, 295];
for (var j = 0; j < gemIds.length; j++) {
if ($gameParty.numItems($dataItems[gemIds[j]]) >= 3) {
$gameParty.loseItem($dataItems[gemIds[j]], 3);
break;
}
}
</Custom Synthesis Effect>