じ☆ve冰风 发表于 2026-7-15 20:59:31

Crafting Items - ItemCombineScene plugin modification

This is my first thread, yeaay
data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7

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 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!


本贴来自国际rpgmaker官方论坛作者:ST0RMTiger处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/crafting-items-itemcombinescene-plugin-modification.140533/
页: [1]
查看完整版本: Crafting Items - ItemCombineScene plugin modification