MV Remove "weapons crafted" from YEP Item Synthesis

It's right there in the name, since I'm not crafting any weapons, only "armor", items, ect, I don't want "weapons crafted" to appear at the top of the Item Synthesis menu.
Obviously, I can rename it, or try to make a singular exception to excuse it's existence, but I'd much rather it just not be there at all.
I tried snooping around in the .js and deleting some things, but I couldn't get it to do what I want.

You can find the plugin, YEP Item Synthesis, here : http://www.yanfly.moe/wiki/Item_Synthesis_(YEP)

ice_screenshot_20231110-232208.png

This is the section I'm looking to remove. By default it says "weapons crafted". As you can see, I've done quite a bit of renaming, but the functions of all of these are the same. It's only the name that's changed. "Enchants" are renamed Armor, and of course Items are Items.
"forged" is crafted. Probably not necessary to explain but thought I might as well.

Also, I do want to keep the stats window up top as it gives a 100% goal to shoot for. Also, while I have you here, any idea on how I might go about checking to see if a player has unlocked and crafted everything? I imagine there's a script call of some kind I could do to check that sort of thing, but the plugin doesn't offer it out the gate (that I'm aware of. I haven't gotten into Lunatic mode though).

Thankyou for your time ^.^ <3
Right in the plugin parameters it says
"Crafted Weapons
Leave this blank if you don't wish to show this."

And the associated window drawing method below looks like that would work correctly. So...rather than trying to mudge around and delete from the code, did you try just leaving that plugin parameter empty? 😉

It looks like the script call $gameSystem.totalRecipes() will return how many recipes the party has. So you can use the Script field of Control Variable to put that in a variable then use Conditional Branch to see if it's equal to the total number of recipes in your game.

Edit: Actually, looks like you could even streamline that. You can do a Conditional Branch and use the Script field:
Code:
$gameSystem.totalRecipes() == Yanfly.IS.SynthesisItemTotal + Yanfly.IS.SynthesisArmorTotal + Yanfly.IS.SynthesisWeaponTotal
Thankyou, I'm actually a little embarrassed to have missed something so obvious, but I suppose it happens to everyone from time to time (I know this isn't my first lol)
The script call works, but since players should wind up coming across all recipes in most playthroughs (with the exception of a single secret recipe only available on certain routes) I'm far more interested in detecting how many the player has actually crafted. That way I can create an achievement system that will give the player a badge for crafting everything in a single run (which is something I'm seriously considering doing)

edit(middle section fully removed as it's something I sorted out myself)

After that I think I'm good for now, and thankyou for always being so helpful. This forums is honestly the best thanks to people like you ^.^
Right in the plugin parameters it says
"Crafted Weapons
Leave this blank if you don't wish to show this."

And the associated window drawing method below looks like that would work correctly. So...rather than trying to mudge around and delete from the code, did you try just leaving that plugin parameter empty? 😉

It looks like the script call $gameSystem.totalRecipes() will return how many recipes the party has. So you can use the Script field of Control Variable to put that in a variable then use Conditional Branch to see if it's equal to the total number of recipes in your game.

Edit: Actually, looks like you could even streamline that. You can do a Conditional Branch and use the Script field:
Code:
$gameSystem.totalRecipes() == Yanfly.IS.SynthesisItemTotal + Yanfly.IS.SynthesisArmorTotal + Yanfly.IS.SynthesisWeaponTotal
I'm a little confused with the editing and crossing out and semi-random picture. As a quick note, the name of that plugin is not a good one - all of the files in your project should adhere to HTML naming conventions to ensure they load properly on everyone's computer. That means no spaces or special characters.

But I think you're still asking about checking what people have crafted, so the solution for that is right in the plugin instructions.

You can put a Custom Synthesis Effect on each craftable item that turns on a switch, then you count how many switches are on and that's how many unique recipes the player has crafted.

For convenience, you can use some JavaScript if you put all of the synthesis switches in consecutive ID order. Putting this in the Script box of a Control Variable will tell you how many switches from 41-80 are ON.
Code:
[...Array(40).keys()].map(x => x+41).filter(index => $gameSwitches.value(index)).length
So the first number (40) is how many switches in a row you're checking, and the second number (41) is the starting ID.
The thing that confused you was a separate question I'm no longer asking since I found another solution. I'm not using that plugin anymore either, so I won't run into any of the issues I mentioned, but that's good to know. ^.^

Got the game detecting when an item has been crafted, thankyou for your help <3
I'm a little confused with the editing and crossing out and semi-random picture. As a quick note, the name of that plugin is not a good one - all of the files in your project should adhere to HTML naming conventions to ensure they load properly on everyone's computer. That means no spaces or special characters.

But I think you're still asking about checking what people have crafted, so the solution for that is right in the plugin instructions.

You can put a Custom Synthesis Effect on each craftable item that turns on a switch, then you count how many switches are on and that's how many unique recipes the player has crafted.

For convenience, you can use some JavaScript if you put all of the synthesis switches in consecutive ID order. Putting this in the Script box of a Control Variable will tell you how many switches from 41-80 are ON.
Code:
[...Array(40).keys()].map(x => x+41).filter(index => $gameSwitches.value(index)).length
So the first number (40) is how many switches in a row you're checking, and the second number (41) is the starting ID.

Original thread: https://forums.rpgmakerweb.com/threads/remove-weapons-crafted-from-yep-item-synthesis.162827/