Frictional Games Forum (read-only)

Full Version: Amnesia Scripting Help!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm having trouble in the scripting for amnesia. I have an orbpiece and a stone chipper that I want to combine in the inventory to make a stone hammer. Im using the addcombinecallback but I'm not sure what the internal names are for the orbpiece and the stone chipper.

void OnStart()
{
AddCombineCallback("", "stone_chipper", "orbpiece_crimson", "awesome", true);
}

void awesome(string &in asItemA, string &in asItemB)
{
GiveItemFromFile("stonehammer", "stone_hammer.ent");
}

What am I doing wrong?
You need to make an inventory.hps, and put the combine callbacks in that file. What you already have for your script should work fine, except you'll need to change OnStart to OnGameStart.

Here's a video with more info: http://www.youtube.com/watch?v=VtgSk36Sa8E
(03-06-2013, 03:49 AM)NaxEla Wrote: [ -> ]You need to make an inventory.hps, and put the combine callbacks in that file. What you already have for your script should work fine, except you'll need to change OnStart to OnGameStart.

Here's a video with more info: http://www.youtube.com/watch?v=VtgSk36Sa8E

This worked!! Thanks a ton Big Grin