Frictional Games Forum (read-only)
Amnesia Scripting Help! - 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: Amnesia Scripting Help! (/thread-20639.html)



Amnesia Scripting Help! - lawerancerivera - 03-06-2013

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?


RE: Amnesia Scripting Help! - NaxEla - 03-06-2013

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


RE: Amnesia Scripting Help! - lawerancerivera - 03-06-2013

(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