Crafting Items - ItemCombineScene plugin modification

This is my first thread, yeaay 🙂

While playing around with the standard assets of my newly installed RPG Maker MZ, I noticed about ItemCombineScene plugin of Sasuke KANNAZUKI which comes with the maker itself and enables users to do some basic (but very nice!) crafting.

I find this really nice and easy to add to games, but encountered an error and another point which I'd liked to change. So i created a (very little) mod.

1) When users are setting up the plugin at first time, most users (at lead I did) will maybe not set up everything correct in the first place. When you do not specify an Item as a "material" at all, an error will pop up telling you "candidates[this._category] is not iterable". Baaam. If you do not programm, you may be stuck here. So. It was clear that something was missing and I already described that it was because I did not specify any Item with the <material:xxxx> tag. This results in no "candidate" being able to present in the menu and forces this error to appear. I changed a line of code to catch this and now it does not even matter, if some "material" is spefified or not. If not, the menu for item combination will just be empty.

2) I noticed that with an item specified as "material", this material will be present in the menu even if it is not currently owned by the player. So EVERY Item specified als material will be visible in the menu from the beginning. This is kind of a big spoiler in my eyes, but may be useful for some of you. So I added a parameter which let u choose to display such items or to just display items that the player currently possesses.

Hope you find it useful!
I'm surprised no one commented on it. Supercool, thank you so much.
hey man love the app but it wont show up in menu could you help me with a whriting a scene call
hey man love the app but it wont show up in menu could you help me with a whriting a scene call
Are you using other plugins that affects menu?
hey man love the app but it wont show up in menu could you help me with a whriting a scene call

Are you using other plugins that affects menu?

Good question as it should show up without doing anything else. I'd recommend to start from an empty project and adding one plugin after another to figure out incompatibilities.
Good question as it should show up without doing anything else. I'd recommend to start from an empty project and adding one plugin after another to figure out incompatibilities.

I found that moving it from the very top to the very bottom helped it show up, pass the plug-ins like VisuMZ, MOG and CGMZ and using one of the plugins becuse having the orginal and modded one will of course and surprizing crash the game.

Original thread: https://forums.rpgmakerweb.com/threads/crafting-items-itemcombinescene-plugin-modification.140533/