I'm working on a large combining script that uses items that randomly appear. When I was testing the scripts with the "_1" items, it worked fine, but now that I've implemented the "_2" and "_3" items, the only items that will combine are ones that share the same suffix.
Is there a way to fix this so that any item, no matter the suffix, can be combined with each other? Or is this an impassible bug?
This code is located in the inventory.hps and it does work in some cases. I've checked spellings and such. It only works with matching suffixes.
void OnGameStart()
{
for(int i = 1; i <= 3; i++)
{
AddCombineCallback("VermillionLiquid", "mercury_"+i, "sulfur_"+i, "Liquid", true);
AddCombineCallback("VermillionLiquidInJar", "paint_"+i, "liquidvermillion", "LiquidInJar", true);
AddCombineCallback("Binder+Solvent", "linseed_"+i, "turpentine_"+i, "PaintA", true);
AddCombineCallback("Solvent+Pigment", "turpentine_"+i, "refinedvermillion", "PaintB", true);
AddCombineCallback("Pigment+Binder", "refinedvermillion", "linseed_"+i, "PaintC", true);
AddCombineCallback("BinderSolventM+Pigment", "BinderSolvent", "refinedvermillion", "PaintD", true);
AddCombineCallback("SolventPigmentM+Binder", "SolventPigment", "linseed_"+i, "PaintE", true);
AddCombineCallback("PigmentBinderM+Solvent", "PigmentBinder", "turpentine_"+i, "PaintF", true);
}
}