06-03-2014, 09:20 PM
Hey guys,
I was making a combination for my mod (connecting hollow needle + copper tube), made inventory.hps, placed it into my custom story's maps folder, and when I try to combine those items via inventory, it simply doesnt work and shows me "the combination does not work".
The item names 100% match the level editor ones, so you know, yeah.
My inventory.hps file
I was making a combination for my mod (connecting hollow needle + copper tube), made inventory.hps, placed it into my custom story's maps folder, and when I try to combine those items via inventory, it simply doesnt work and shows me "the combination does not work".
The item names 100% match the level editor ones, so you know, yeah.
My inventory.hps file
PHP Code:
///////////////////////////////////
////////////COMBINATIONS///////////
///////////////////////////////////
void Coppers(string &in asItemA, string &in asItemB)
{
RemoveItem(asItemA); RemoveItem(asItemB);
PlayGuiSound("15_make_hammer", 1.0f);
GiveItemFromFile("copper_tube_and_needle", "copper_tube_and_needle.ent");
GiveItem("copper_tube_and_needle", "copper_tube_and_needle", "copper_tube_and_needle", "copper_tube_and_needle.tga", 1);
}
////////////////////////////
// Run at the start of the game.
void OnGameStart()
{
/////COMBOS/////
AddCombineCallback("", "item1", "stone_chipper_1", "Coppers", true);
}