Szyu's Crafting System

Since I am new to this forum, I want to say hello to this community and start right off with a script of mine:
 
Szyu's Crafting System
 
About
This script allows you to define crafting books and recipes, that let your player create all sorts of things. You can also seperate your crafting items into different categories such as "Alchemy" or "Blacksmith". But it is difficult to describe, so here you got some screenshots:
 
 
Screenshots
Crafting menu with a list of all ingredients (colored by availability of items)
dg6fW9.jpg

 
Here are the stats of the item you want to craft
tuOoGb.jpg

 
This is how you define a recipe book (All Key-Items [They have to be KEY-ITEMS] with this note field will be handled as recipe books)
xfUb07.jpg

 
And this is how you define the ingredients you will need to craft an item
LMHShb.jpg

 
 
How to use
 
Database:
- "<ingredients> content </ingredients>" marks the area used to define the item's/ weapon's/ armor's ingredients
Example:

<ingredients>i: 3x 5 => 3 items of item_id 5w: 2x 7 => 2 weapons of weapon_id 7a: 1x 2 => 1 armor of armor_id 2</ingredients>- "<recipe book>" marks an item as recipe book (Please only use on items while they are tagged as key item!)
- "<category: x>" marks a recipe book to have a category from the list inside the script (0 based)
- "<recipes> content </recipes>" marks the area used to define the recipes held by the book
Example:

<recipes>i: 5 => ability to craft the item with id 5w: 7 => ability to craft the weapon with id 7a: 2 => ability to craft the armor with id 2</recipes>Script calls:
 
- "SceneManager.call(Scene_Crafting)" opens the crafting menu
- "SceneManager.call(Scene_Crafting, x) opens the categorized crafting menu with category x (x = -1 for all categories)
 
- "$data_items[book_id].add_recipe("i/w/a: id")" adds a new recipe to the recipe book
Example:

$data_items[5].add_recipe("w: 33") 

- "$data_items[book_id].remove_recipe("i/w/a: id")"removes a recipe from the recipe book
Example:

$data_items[5].remove_recipe("w: 33") 
 
Keep in mind that wherever you can tell the script, that an item has ingredients or recipes like in recipes

<recipes>a: 3</recipes>you can also apply multiple items to this list:

<recipes>a: 3 - 7 # This would make the recipes book hold the recipes for creating armors with id 3, 4, 5, 6 and 7</recipes>However this does not work with ingredients
 
 
Links
Pastebin direct
 
 
Credits
Credits to Szyu if you plan to use this script.
Hello Szyu. This app looks awesome and very useful first of all! I'm making a game that needs crafting, and this one is probably the best one I found. But although I know I need to give you credit for it (obviously), I don't know if I can use it in a commercial game or not. If I can, I'd be glad to send you a free copy, if you want  😉 . So please tell me, or if the answer is there and I just missed it plenty of times, can someone else help me? Thanks in advance, me.  ☺️
Is there a way to link the crafts to a class in order to gain experience on said class?
This script is golden, simple and elegant. I've been using it for a while and it's worked perfectly up until the installation of a new script. The script is Fomar's equipment level up system (http://pastebin.com/raw.php?i=VFRfmB6w), with that installed i now get this error:
 

Spoiler
crafting system line 296 no method error occured
 
undefined method 'recipe_book' for
#<Game_CustomEquip:0xc1a46e8> 
 
if the crafting system is put below the equipment level up script the same error occurs only with the new value of 0xc2116bc.
 
Does anybody know how I could go about solving this conflict issue?
 
Thanks
@DarkInspiration:

Commercial or non-commercial use is ok... I just would be happy to be mentioned in the credits.

@Master_Sic:

There is no way by now, but you could just alias my on_crafted method and call your methods

@Anuhazi_Owl:

The hex number doesnt state anything... It is just an internal "ID"-number of an object in your computers memory.

The problem here would be (I didnt test it, so its just assumption) that the other script's class Game_CustomEquip is used as a recipe book, but does not derive from RPG::Item, which is essential for a recipe book to work
Hello! I recently found and am trying to use this script for a game I'm making, but I can't seem to get it to work. The crafting window appears, but I am unable to see any recipes or resources. I apologize if I simply missed the instruction in the script, but I have put an item's recipe in the note box, and a assigned it to a book. Specifically, I'm trying to have eight of two different battle items make a helmet. Also, is it possible for one item to have more than one recipe?
Hi. I need your help this script.
How to open Menu craft on a Categories ? I'm go to Work Table and crafting weapon, go to Kitchen and cooking. I don't want select Cateories to craft.
I keep getting an error.
NoMethodError Occured. Undefined Method: 'empty?' for nil:NilClass

please help...

Original thread: https://forums.rpgmakerweb.com/threads/szyus-crafting-system.31377/