Frictional Games Forum (read-only)
[SCRIPT] I'm trying to create a custom addcombinecallback combination - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: [SCRIPT] I'm trying to create a custom addcombinecallback combination (/thread-20778.html)



I'm trying to create a custom addcombinecallback combination - PixelHurricane - 03-16-2013

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?


RE: I'm trying to create a custom addcombinecallback combination - Your Computer - 03-16-2013

Where did you place your inventory.hps?


RE: I'm trying to create a custom addcombinecallback combination - PixelHurricane - 03-16-2013

it's in the main folder


RE: I'm trying to create a custom addcombinecallback combination - Your Computer - 03-16-2013

What's the "main" folder?


RE: I'm trying to create a custom addcombinecallback combination - PixelHurricane - 03-16-2013

custom_stories/(my custom story)


RE: I'm trying to create a custom addcombinecallback combination - Your Computer - 03-16-2013

It needs to be in your maps folder.


RE: I'm trying to create a custom addcombinecallback combination - PixelHurricane - 03-16-2013

it's working now, thanks!