Frictional Games Forum (read-only)

Full Version: Combination doesn't work.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey guys,

So I was making a stone and a chipper combining puzzle, I have the inventory.hps:

PHP Code:
void OnGameStart()
{
    
AddCombineCallback("hammer_chipper""hammer""chipper""hammer_chipper"false);
}

void hammer_chipper(string &in asItemAstring &in asItemB)
{
    
AddPlayerSanity(10);
    
PlayGuiSound("15_make_hammer"1.0f);
    
RemoveItem(asItemA); RemoveItem(asItemB);
    
GiveItem("stone_hammer_chipper""Puzzle""stone_hammer_chipper""stone_hammer_chipper.tga"0);    


The names in the inventory.hps and Level Editor are surely the same, I chcecked it like 10 times, and when I try to combine the hammer with chipper in-game it doesn't work.

The inventory.hps is ofc located in my maps folder.

Any thoughts on what is causing this problem? Any help will be appreciated.
I sometimes fix it by placing everything in the hps file instead. Try giving it a go.
(03-24-2014, 05:07 PM)Neelke Wrote: [ -> ]I sometimes fix it by placing everything in the hps file instead. Try giving it a go.

Nope, sitll doesn't work.
You should try adding debug messages (if you have dev environment enabled) or just something to indicate if this event is executed. Using those you can trace back to where it stops working.

The script does look fine though. Perhaps the problem is that the file isn't loaded.
(03-24-2014, 06:51 PM)Mudbill Wrote: [ -> ]You should try adding debug messages (if you have dev environment enabled) or just something to indicate if this event is executed. Using those you can trace back to where it stops working.

The script does look fine though. Perhaps the problem is that the file isn't loaded.

Fuck, adding debug message helped me again, like in my lever problem :o
This is seriously paranormal, anyway thank you guys for helping another soul!
Heh, oh my. You should call the Ghost Busters.