[SOLVED] YEP Item Synthesis - only display weapons / armor / items

Hello everybody,

I'm using Yanfly's Item Synthesis plugin for my game, and so far it's doing exactly what I need. However, I've come across something it may or may not be able to do.

In my game, each wand (weapon) can be turned into a scroll (item) containing its spell. In order to prevent the plugin from showing all the scrolls in the game, each wand has its own <Item Recipe: X> note and the plugin call uses OpenSynthesis with no additional argument.

However, I can't seem to be able to get them in a separate menu from spellbooks (weapon), which follow the same no-spoiler policy.

Is there a way I can call the plugin, but request that only items or weapons are shown? I can't use OpenSynthesis Item X (X being the ID of a recipe item with the tag <(Item/Armor) Recipe: X to Y>) because that'd show every possible scroll or spellbook.

Thanks in advance for the time you'll spend helping me out.
Luckily, there is an add-on plugin created by @ramza that does exactly this!

Item Synthesis Categories Add-on

Also, there is a way to reference the last item used, save that value into a variable, and then open the synthesis menu to be able to craft only that specific item. This method requires Item Synthesis and Plugin Command Switches and Variable Access plugins from Yanfly. Plugin Command Switches and Variables adds the ability to use variables and switches in plugin commands, a highly useful function imo.

1589417364486.png


The above common event is called by each blueprint when used from the menu, allowing the player to craft a specific item, without having to sort through all the possible items in the crafting scene.

$gameParty._lastItem._itemId
calls the Id of the item last used by the party. By assigning the value of a variable to it and then calling that variable in the plugin command you to let the player get to the synthesis scene based on the last item used.

To use this method, each wand would have to be it's own scroll recipe. Since you would be using weapons as the recipe item, your plugin command would look like this:

OpenSynthesis Weapon v[X] Recipe


The way I've started processing my recipes is by having a set of items, called guides, that award a set of recipes when used.

For example, I have an Ironworks Guide that when used from the menu, grants the party all the blueprints for all the iron weapons and armor. So the guide itself contains no recipes. This way, I am able to award random specific blueprints before granting an entire set.
Thanks for replying. And it looks like the add-on is doing EXACTLY what I want! Now for the last item used solution, here's why this is not the solution I could take.

The above common event is called by each blueprint when used from the menu, allowing the player to craft a specific item, without having to sort through all the possible items in the crafting scene.
Using the scroll in the inventory already does something. What I want to make is that only a specific NPC is able to enchant wands into scrolls, and in another dialogue choice is able to turn specific scrolls together into a spellbook.

To use this method, each wand would have to be it's own scroll recipe. Since you would be using weapons as the recipe item, your plugin command would look like this:

OpenSynthesis Weapon v[X] Recipe
Each wand is indeed its own scroll recipe right now. It's even a neat <Item Recipe: X> with X being the ID of the wand and the scroll and the corresponding spell so it's really easy to add more in the future. That's how calling OpenSynthesis with no additional argument shows the scroll recipes only for the wands that are in the inventory. Other crafting menus, like for consumables and equipment, have a dedicated <(Weapon/Armor) Recipe: X to X> item that's called with OpenSynthesis item X when the right NPC is called.

Thank you again for your time, and for pointing at exactly the add-on I needed.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/solved-yep-item-synthesis-only-display-weapons-armor-items.121531/