Frictional Games Forum (read-only)

Full Version: I'm trying to create a custom addcombinecallback combination
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm trying to combine the stone hammer with the stone chipper to get a crowbar. but I can't get the game to stop giving me a hammer and chipper as an item.

this is my inventory.hps file
PHP Code:
void OnGameStart()
{
AddCombineCallback("crowbar""stone_hammer_1""stone_chipper_1""makecrowbar"false);
}
void makecrowbar(string &in asItemAstring &in asItemB)
{
GiveItem("crowbar""crowbar""crowbar""crowbar.tga"1);
RemoveItem("stone_chipper_1");

can anyone help me on this?
Where did you place your inventory.hps?
it's in the main folder
What's the "main" folder?
custom_stories/(my custom story)
It needs to be in your maps folder.
it's working now, thanks!