Item Combination System

Helllo all,
I am making an item combination script. I would like some feed back on how to make this into a plugin.

Currently you have to edit the script to add recipes. How would you like to be able to do this?

I do not know if there is currently a script like this out there but I made it for my monster hunter style rpg I am making.

Edit: Plugin commands: ItemComboMenuEnabled false , ItemComboMenuEnabled true     false for manual scene activation , true for it shows up in the menu

Edit2: Plugin commands: itemComboLearn # , itemComboForget #           where # is the item number in your database

Note tags are as follows:
<comboChance:0.80>


<comboIngredient1:3,2> where 3 is item 3 and 2 is the required amount

<comboIngredient2:5,1> where 5 is item 5 and 1 is the required amount

Supports up to 5 ingredients.

Edit3: note tags are as follows <comboFail:4> if you fail then you make item 4 instead

Displays the success chance : green >75%, yellow > 50%, orange>25%, red >0%

Centered the combo button.

The command combine shows up on the main menu.

Spoiler
Menu_zpsa9rzhn8t.png
When you have the ingredients the details page lights up and is active instead of gray.

Spoiler
menu1_zpsuutbrzjc.png
You are then allowed to combine. It will show in your inventory.

Spoiler
menu2_zpsurat6dgu.png
Code is an absolute nightmare and I haven't commented it yet.

Raw code.

Spoiler
Code:
var copyOfAddOrginalCommands = Window_MenuCommand.prototype.addOriginalCommands;Window_MenuCommand.prototype.addOriginalCommands = function() {	copyOfAddOrginalCommands.call(this)	var enabled = this.isItemComboEnabled();	if(enabled){	this.addCommand('Combine', 'itemCombinationCommand', enabled);};};Window_MenuCommand.prototype.isItemComboEnabled = function() {	if(Game_Party.prototype._craftingLearnedRecipes.length < 1 ){		return false;	}else if(Game_Party.prototype._CombineMenuEnabled != true){		return false;	}else{	return true	};};Game_Party.prototype._CombineMenuEnabled = true;var copyOfCreateCommandWindow = Scene_Menu.prototype.createCommandWindow;Scene_Menu.prototype.createCommandWindow = function() {	copyOfCreateCommandWindow.call(this);	this._commandWindow.setHandler('itemCombinationCommand',    this.commandCombinationMenu.bind(this));};Scene_Menu.prototype.commandCombinationMenu = function() {    SceneManager.push(Scene_CraftingMenu);};//recipe1: [item to be crafted,success chance, [item required,amount],[item required,amount],etc]Game_Party.prototype._craftingRecipes = {};var copyOfInitializeCombo = Game_Party.prototype.initialize;Game_Party.prototype.initialize = function() {    copyOfInitializeCombo.call(this);	this.populateCraftingRecipes();};Game_Party.prototype.populateCraftingRecipes = function() {	var lengthOfItemList = $dataItems.length;			for(var i = 1; i < lengthOfItemList; i++){	var ingredientArray = [];	if(typeof $dataItems[i].meta.comboChance !== "undefined"){			ingredientArray.push(Number($dataItems[i].id));			ingredientArray.push(Number($dataItems[i].meta.comboChance));			ingredientArray.push(Number($dataItems[i].meta.comboFail));		};		if(typeof $dataItems[i].meta.comboIngredient1 !== "undefined"){			var ingredientArrayIngredient = $dataItems[i].meta.comboIngredient1.split(',');			for(var j=0; j<2; j++) {			ingredientArrayIngredient[j] = parseInt(ingredientArrayIngredient[j], 10);};			ingredientArray.push(ingredientArrayIngredient);		};		if(typeof $dataItems[i].meta.comboIngredient2 !== "undefined"){			var ingredientArrayIngredient = $dataItems[i].meta.comboIngredient2.split(',');			for(var j=0; j<2; j++) {			ingredientArrayIngredient[j] = parseInt(ingredientArrayIngredient[j], 10);};			ingredientArray.push(ingredientArrayIngredient);		};		if(typeof $dataItems[i].meta.comboIngredient3 !== "undefined"){			var ingredientArrayIngredient = $dataItems[i].meta.comboIngredient3.split(',');			for(var j=0; j<2; j++) {			ingredientArrayIngredient[j] = parseInt(ingredientArrayIngredient[j], 10);};			ingredientArray.push(ingredientArrayIngredient);		};		if(typeof $dataItems[i].meta.comboIngredient4 !== "undefined"){			var ingredientArrayIngredient = $dataItems[i].meta.comboIngredient4.split(',');			for(var j=0; j<2; j++) {			ingredientArrayIngredient[j] = parseInt(ingredientArrayIngredient[j], 10);};			ingredientArray.push(ingredientArrayIngredient);		};		if(typeof $dataItems[i].meta.comboIngredient5 !== "undefined"){			var ingredientArrayIngredient = $dataItems[i].meta.comboIngredient5.split(',');			for(var j=0; j<2; j++) {			ingredientArrayIngredient[j] = parseInt(ingredientArrayIngredient[j], 10);};			ingredientArray.push(ingredientArrayIngredient);		};				if(typeof $dataItems[i].meta.comboChance !== "undefined"){		Game_Party.prototype._craftingRecipes[$dataItems[i].name] = ingredientArray;		}		else{}			};		};Game_Party.prototype._craftingLearnedRecipes = [];Game_Party.prototype.canCombine = function(value){	var recipeKeyName = value;	var ingredientArray = Game_Party.prototype.ingredients(recipeKeyName);	var numberOfRequiredIngredients = ingredientArray.length;	var ingredientArrayNames = [];	var recipe = $dataItems[itemNumber]	var haveAllIngredients = 0;			for(i =0;i< numberOfRequiredIngredients;i++){					var itemNumber = ingredientArray[i][0];			var requiredAmount = ingredientArray[i][1];			var ingredient = $dataItems[itemNumber];			ingredientArrayNames.push(ingredient);			if ($gameParty.numItems(ingredient) >= requiredAmount){				haveAllIngredients += 1;			};		};			if(haveAllIngredients == numberOfRequiredIngredients){				return true;			}			else{			return false; 			};};Game_Party.prototype.learnRecipe = function(value) {	if(this._craftingLearnedRecipes.indexOf(value) === -1){		this._craftingLearnedRecipes.push(value);	};};Game_Party.prototype.forgetRecipe = function(value) {	//Stores the value of the index, if the value is -1 then we do not have the recipe.	var index = this._craftingLearnedRecipes.indexOf(value);	//If we do have the recipe learned then delete it from out learned recipes list.	if(this._craftingLearnedRecipes.indexOf(value) != -1){		this._craftingLearnedRecipes.splice(index,1);	};};Game_Party.prototype.ingredients = function(recipeKeyName){	var recipeDetails = Game_Party.prototype._craftingRecipes[recipeKeyName];	var numberOfIngredients = recipeDetails.length;	var ingredientsList =[];	for(i = 3; i < numberOfIngredients; i++){		var itemNumber = recipeDetails[i];		ingredientsList.push(itemNumber);	};	return ingredientsList;};function craftingTitleWindow() {    this.initialize.apply(this, arguments);};craftingTitleWindow.prototype = Object.create(Window_Base.prototype);craftingTitleWindow.prototype.constructor = craftingTitleWindow;craftingTitleWindow.prototype.initialize = function(x, y) {    var width = this.windowWidth();    var height = this.windowHeight();	Window_Base.prototype.initialize.call(this, x, y, width, height);    this.update();};craftingTitleWindow.prototype.windowWidth = function() {    return 816;};craftingTitleWindow.prototype.windowHeight = function() {    return this.fittingHeight(1);};craftingTitleWindow.prototype.drawCraftingTitle = function( x, y, width) {    var unitWidth = Math.min(80);    this.resetTextColor();    this.drawText("Item Combination Menu", x, y, width - unitWidth - 6, 'left');    this.changeTextColor(this.systemColor());   };   craftingTitleWindow.prototype.update = function() {    var x = this.textPadding();    var width = this.contents.width - this.textPadding() * 2;    this.contents.clear();	this.drawCraftingTitle( 0, 0, width);};craftingTitleWindow.prototype.open = function() {    this.update();    Window_Base.prototype.open.call(this);};function craftingListWindow() {    this.initialize.apply(this, arguments);}craftingListWindow.prototype = Object.create(Window_Command.prototype);craftingListWindow.prototype.constructor = craftingListWindow;craftingListWindow.prototype.canCombine = false;craftingListWindow.prototype.initialize = function(x, y) {    Window_Command.prototype.initialize.call(this, x, y);    this.selectLast();};craftingListWindow.prototype.update = function() {	Window_Command.prototype.update.call(this); }; craftingListWindow.initCommandPosition = function() {    this._lastCommandSymbol = null;};craftingListWindow.prototype.windowWidth = function() {    return 240;};craftingListWindow.prototype.windowHeight = function() {    return 552;};craftingListWindow.prototype.numVisibleRows = function() {    return this.maxItems();};craftingListWindow.prototype.makeCommandList = function() {    this.addOriginalCommands();};craftingListWindow.prototype.addOriginalCommands = function() {  	var numberOfLearnedRecipes = Game_Party.prototype._craftingLearnedRecipes;	for(var i = 0; i < numberOfLearnedRecipes.length; i++){		var recipeKeyName = Game_Party.prototype._craftingLearnedRecipes[i];		var enabled = Game_Party.prototype.canCombine(recipeKeyName);		var recipeDetails = Game_Party.prototype._craftingRecipes[recipeKeyName];		var itemNumber = recipeDetails[0];		var recipeName = $dataItems[itemNumber];		this.addCommand(recipeName.name, recipeName.name, enabled);	}; }; craftingListWindow.prototype.isCurrentItemEnabled = function(){	var recipeKeyName = Game_Party.prototype._craftingLearnedRecipes[craftingDetailsWindow.prototype.currentItemIndex];	var enabled = Game_Party.prototype.canCombine(recipeKeyName)	return enabled;};craftingListWindow.prototype.processOk = function() {    craftingListWindow._lastCommandSymbol = this.currentSymbol();    Window_Command.prototype.processOk.call(this);};craftingListWindow.prototype.selectLast = function() {    this.selectSymbol(craftingListWindow._lastCommandSymbol);};function craftingDetailsWindow() {    this.initialize.apply(this, arguments);};craftingDetailsWindow.prototype = Object.create(Window_Command.prototype);craftingDetailsWindow.prototype.constructor = craftingDetailsWindow;craftingDetailsWindow.prototype.currentItemIndex = 0;craftingDetailsWindow.prototype.initialize = function(x, y) {    Window_Command.prototype.initialize.call(this, x, y);	this.deactivate();	this.deselect();};craftingDetailsWindow.prototype.windowWidth = function() {    return 576;};craftingDetailsWindow.prototype.windowHeight = function() {    return 552;};craftingDetailsWindow.prototype.update = function() {	Window_Command.prototype.update.call(this);    this.contents.clear();	this.drawDetailsName(0, 0, this.windowWidth());	this.drawDetailsDescription(0, 100, this.windowWidth());	this.drawIngredient(0,200-28,this.windowWidth()/2);	this.drawComboChance(0,400,this.windowWidth());	this.drawDetailsIngredients(0, 200, this.windowWidth()/2);	this.drawItem(0);};craftingDetailsWindow.prototype.maxItems = function() {    return 1;};craftingDetailsWindow.prototype.maxCols = function(){return 1;};craftingDetailsWindow.prototype.itemRect = function(index) {    var rect = new Rectangle();    var maxCols = this.maxCols();    rect.width = this.textWidth('Combine');    rect.height = this.itemHeight();    rect.x = this.windowWidth()/2-rect.width+32;    rect.y = 450;    return rect;};craftingDetailsWindow.prototype.drawDetailsName = function(x, y, width) {    this.resetTextColor();	var unitWidth = Math.min(80);	var recipeKeyName = Game_Party.prototype._craftingLearnedRecipes[this.currentItemIndex];	var recipeDetails = Game_Party.prototype._craftingRecipes[recipeKeyName];		var itemNumber = recipeDetails[0];	var recipe = $dataItems[itemNumber]		this.drawText(recipe.name, x, y, this.windowWidth() -32, 'center');    this.changeTextColor(this.systemColor());	this.drawIcon(recipe.iconIndex, this.windowWidth()/2-32, y+50);};craftingDetailsWindow.prototype.drawIngredient = function(x, y, width) {    this.resetTextColor();	var unitWidth = Math.min(80);	this.drawText('Ingredients :', x, y, width - unitWidth, 'center');    this.changeTextColor(this.systemColor());};craftingDetailsWindow.prototype.drawComboChance = function(x, y, width) {	this.resetTextColor();	var unitWidth = Math.min(80);	var recipeKeyName = Game_Party.prototype._craftingLearnedRecipes[this.currentItemIndex];	var recipeDetails = Game_Party.prototype._craftingRecipes[recipeKeyName];		var chance = recipeDetails[1] * 100;	if(chance>75){	this.changeTextColor(this.textColor(3))}	else if(chance > 50){this.changeTextColor(this.textColor(14))}	else if(chance > 25){this.changeTextColor(this.textColor(20))}	else {this.changeTextColor(this.textColor(10))};		var unitWidth = Math.min(80);	this.drawText(chance + ' %', x, y, this.windowWidth() - 32 , 'center');    this.changeTextColor(this.systemColor());};craftingDetailsWindow.prototype.drawDetailsDescription = function(x, y, width) {    var unitWidth = Math.min(80);    this.resetTextColor();	var recipeKeyName = Game_Party.prototype._craftingLearnedRecipes[craftingDetailsWindow.prototype.currentItemIndex];	var recipeDetails = Game_Party.prototype._craftingRecipes[recipeKeyName];	var itemNumber = recipeDetails[0];	var recipe = $dataItems[itemNumber]	var enabled = Game_Party.prototype.canCombine(recipeKeyName);	this.changePaintOpacity(enabled);	this.drawText(recipe.description, x, y, width - 32, 'center');    this.changeTextColor(this.systemColor());};craftingDetailsWindow.prototype.isCurrentItemEnabled = function(){	var recipeKeyName = Game_Party.prototype._craftingLearnedRecipes[craftingDetailsWindow.prototype.currentItemIndex];	var enabled = Game_Party.prototype.canCombine(recipeKeyName)	return enabled;};craftingDetailsWindow.prototype.drawDetailsIngredients = function(x, y, width) {    var unitWidth = Math.min(80);    this.resetTextColor();	var inIntialY = y;	var recipeKeyName = Game_Party.prototype._craftingLearnedRecipes[craftingDetailsWindow.prototype.currentItemIndex];	var ingredientArray = Game_Party.prototype.ingredients(recipeKeyName);	var numberOfRequiredIngredients = ingredientArray.length;		var ingredientArrayNames = [];	var recipe = $dataItems[itemNumber]	var spacing = 28;	var haveAllIngredients = 0;			for(i =0;i< numberOfRequiredIngredients;i++){			var y = inIntialY + spacing*i;			var itemNumber = ingredientArray[i][0];			var requiredAmount = ingredientArray[i][1];			var ingredient = $dataItems[itemNumber];			ingredientArrayNames.push(ingredient);			if ($gameParty.numItems(ingredient) >= requiredAmount){				haveAllIngredients += 1;				this.resetTextColor();			}			else{				this.changeTextColor(this.hpGaugeColor1())}			this.drawText($gameParty.numItems(ingredient), x, y, width, 'right');			this.drawText('/' + requiredAmount, x +this.textWidth('0'), y, width + this.textWidth('00') , 'right');			this.drawText(ingredient.name, x +this.textWidth('00'), y, width - unitWidth - 18, 'right');				};		this.changeTextColor(this.systemColor());};craftingDetailsWindow.prototype.drawItem = function(index){	var rect = this.itemRectForText(index);	var recipeKeyName = Game_Party.prototype._craftingLearnedRecipes[craftingDetailsWindow.prototype.currentItemIndex];	var enabled = Game_Party.prototype.canCombine(recipeKeyName);    this.resetTextColor();    this.addCommand("Combine", "Combine", enabled);	this.drawText(this.commandName(index), rect.x , rect.y, rect.width, 'center')	this.resetTextColor();};craftingDetailsWindow.prototype.processOk = function() {    craftingDetailsWindow._lastCommandSymbol = this.currentSymbol();    Window_Command.prototype.processOk.call(this);};craftingDetailsWindow.prototype.selectLast = function() {    this.selectSymbol(craftingDetailsWindow._lastCommandSymbol);};function Scene_CraftingMenu() {    this.initialize.apply(this, arguments);}Scene_CraftingMenu.prototype = Object.create(Scene_MenuBase.prototype);Scene_CraftingMenu.prototype.constructor = Scene_CraftingMenu;Scene_CraftingMenu.prototype.initialize = function() {    Scene_MenuBase.prototype.initialize.call(this);};Scene_CraftingMenu.prototype.update = function() {	Scene_MenuBase.prototype.update.call(this);	this.updateDetails();};Scene_CraftingMenu.prototype.updateDetails = function(){	if(this._commandItemWindow.active){		craftingDetailsWindow.prototype.currentItemIndex = this._commandItemWindow.index();	};};Scene_CraftingMenu.prototype.create = function() {   Scene_MenuBase.prototype.create.call(this);   this.createTitleWindow();   this.createCommandWindow();   this.createDetailsWindow(); }; Scene_CraftingMenu.prototype.start = function() {    Scene_MenuBase.prototype.start.call(this);};	Scene_CraftingMenu.prototype.createCommandWindow = function() {    var y = craftingTitleWindow.prototype.windowHeight();    this._commandItemWindow = new craftingListWindow(0, y);	this._commandItemWindow.setHandler('ok',    	this.commandDetails.bind(this));	this._commandItemWindow.setHandler('cancel',    this.popScene.bind(this));	this.addWindow(this._commandItemWindow);};Scene_CraftingMenu.prototype.createDetailsWindow = function() {	var x = craftingListWindow.prototype.windowWidth();	var y = craftingTitleWindow.prototype.windowHeight();    this._commandDetailsWindow = new craftingDetailsWindow(x, y);	this.addWindow(this._commandDetailsWindow );};Scene_CraftingMenu.prototype.createTitleWindow = function() {    this._craftingTitleWindow = new craftingTitleWindow(0, 0);    this.addWindow(this._craftingTitleWindow);};Scene_CraftingMenu.prototype.commandDetails = function() {	this._commandDetailsWindow.selectLast();	this._commandItemWindow.deselect();    this._commandDetailsWindow.activate();	this._commandDetailsWindow .setHandler('ok',    	this.onDetailsOk.bind(this));	this._commandDetailsWindow .setHandler('cancel',    this.onDetailsCancel.bind(this));};Scene_CraftingMenu.prototype.onDetailsOk = function() {	var recipeKeyName = Game_Party.prototype._craftingLearnedRecipes[craftingDetailsWindow.prototype.currentItemIndex];	var ingredientArray = Game_Party.prototype.ingredients(recipeKeyName);	var numberOfRequiredIngredients = ingredientArray.length;	var recipeDetails = Game_Party.prototype._craftingRecipes[recipeKeyName];	var ingredientArrayNames = [];	var itemNumber = recipeDetails[0];	var recipe = $dataItems[itemNumber];	var fail = $dataItems[recipeDetails[2]];	var enabled = Game_Party.prototype.canCombine(recipeKeyName)		if(enabled){		for(i =0;i< numberOfRequiredIngredients;i++){			var itemNumber = ingredientArray[i][0];			var requiredAmount = ingredientArray[i][1];			var ingredient = $dataItems[itemNumber];			$gameParty.loseItem(ingredient, requiredAmount);		};	var rng = Math.random();	var chance = recipeDetails[1];	if(rng < chance){	$gameParty.gainItem(recipe, 1);	}	else{	$gameParty.gainItem(fail, 1);	SoundManager.playBuzzer();	};	};		SceneManager.goto(Scene_CraftingMenu);};Scene_CraftingMenu.prototype.onDetailsCancel = function() {	this._commandItemWindow.selectLast();    this._commandItemWindow.activate();};var comboMenuEnabled_pluginCommand = Game_Interpreter.prototype.pluginCommand;Game_Interpreter.prototype.pluginCommand = function(command, args) {	comboMenuEnabled_pluginCommand.call(this, command, args);	if (command === "ItemComboMenuEnabled") {	Game_Party.prototype._CombineMenuEnabled = JSON.parse(args[0]);	};};var itemComboLearn_pluginCommand = Game_Interpreter.prototype.pluginCommand;Game_Interpreter.prototype.pluginCommand = function(command, args) {	itemComboLearn_pluginCommand.call(this, command, args);	if (command === "itemComboLearn") {		var arg = $dataItems[JSON.parse(args[0])].name;		$gameParty.learnRecipe(arg);	};};var itemComboForget_pluginCommand = Game_Interpreter.prototype.pluginCommand;Game_Interpreter.prototype.pluginCommand = function(command, args) {	itemComboForget_pluginCommand.call(this, command, args);	if (command === "itemComboForget") {		var arg = $dataItems[JSON.parse(args[0])].name;		$gameParty.forgetRecipe(arg);	};}; 
My advice - you're going to have to enter the items into the database anyway, right?

  • Any item only obtained from crafting should never be listed in a shop.
     
  • Use tags to define recipes on craftable items.  When the system loads those items, you can go through, check for those with recipes, and automatically build a list that way.

    If you've never touched tags before, take a look at the code for Yanfly's Core Engine, as he uses a fair number of 'em.  (Granted, not for anything as complex as you're talking about, but you'll want simple examples before going crazier.)  Note where the tags are processed and how he does it.  In case you're unfamiliar with certain parts of the code, you'll want to learn "Regular Expressions," as that's the crazy gobbledy-gook that'll give you a visceral reaction.  It's complex, but very powerful.

    I do something marginally more complex with tags in a plugin I've been authoring - that "Status Menu Core" plugin under development - where some tags have multiple lines of information inside.  If you need more help after understanding Yanfly's plugin, the code for this one might provide a little more help.

    From there, it's a matter of figuring out how to make and arrange tags to aid your parsing without getting in the way, while also making it easy for others to understand and use.

I might suggest tags like the following - place this in the "Note" area of your "Greater Potion" if you decide to use similar tags:

<recipe chance: 0.8><component: 1, 1><component: 2, 1></recipe><recipe> - defines the start of a crafting recipe for this item.  (The item whose Note box this recipe is placed.)

The "chance" part defines the chance of success.  (I'm assuming that's why the 0.8 you had in the definition above?

<component: x, y>  - Requires y copies of x to make.  Multiple such tags mean multiple item requirements.

Something like that should be simple enough for others to work with while not being too complex in parsing requirements.  (Obviously, there's the difficulty of working with tags; this adds as little extra difficulty as possible while still giving you what you want.)

If you start feeling really adventurous, you could take in names instead of item IDs in the component tag's x slot, scanning the item list for the ID matching each name during the load.  That'll add extra work for you, but would make it a lot clearer to use when defining recipes in the database.  (Only try doing this after you get the ID-based version working.)
Ok, I have never worked with tags before I will give it a try. Does having more than one tag on an item interfere with other peoples scripts?

If so how do I get around this?
I'd suggest either using unique tag names (prepending them with a namespace or something) or make them configurable as plugin parameters, so users can make sure there are no conflicts.
Ok, I have never worked with tags before I will give it a try. Does having more than one tag on an item interfere with other peoples scripts?

If so how do I get around this?
The only concern you should have is using a unique name on your tags.  As long as no one else uses an identically-named tag, you're safe.

BTW, I went through and edited my last post a bit with a few more suggestions and details for you.
Ok, thanks for the feed back looks like I have some coding to do.
make it so that you can call a script for the menu scene, some users might only want to only enable it in a shop, and customization name 
make it so that you can call a script for the menu scene, some users might only want to only enable it in a shop, and customization name 
Says the person with a Fullmetal Alchemist avatar.  Can't help but notice the irony.

Irony aside, yes, that'd be a good idea.
So you are saying I should have a plugin option that can disable it from showing in the main menu.
At that point you would have to make a script call to open it correct?

That's a good idea.
yep

So you are saying I should have a plugin option that can disable it from showing in the main menu.
At that point you would have to make a script call to open it correct?

That's a good idea.
yep just like in ff9 how you could only access it in a shop. 
I just have to learn how to do note tags and plugin commands now.

Long night probably. 

If anyone knows where a good tutorial is let me know!
I just have to learn how to do note tags and plugin commands now.

Long night probably. 

If anyone knows where a good tutorial is let me know!
there should be some topic on the learning java script forum, and looking at some of yanfly's plugins should give you a good guide, im relatively new to js myself so i dont have that good of an idea 
I have added true/false plugin command for manual activation.
If set to true and you have at least one recipe the option will show. If set to false then it will never show and can only be activated manually.
Updated the plugin to have commands and note tags.
It should be pretty clear. Let me know if I need changes or want to see other improvements before I start to comment the code.
Edited to show success chance, note tag to indicate what item you want to get if you fail.

Success chance color changes depending on the success %.

Original thread: https://forums.rpgmakerweb.com/threads/item-combination-system.48498/