Frictional Games Forum (read-only)
[SCRIPT] combination does not work? - 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] combination does not work? (/thread-15048.html)



combination does not work? - zombiehacker595 - 04-24-2012



so i added this to my inventory.hps file i have 3 working combinations all the same just different names in that file but this one doesnt seem to want to wrok any help?

//COMBINE TUBE//
////////////////////

void NEEDLE_TUBE(string &in asItemA, string &in asItemB)
{
PlayGuiSound("15_make_hammer", 1.0f);
RemoveItem(asItemA); RemoveItem(asItemB);
GiveItem("copper_tube_and_needle", "Puzzle", "copper_tube_and_needle", "copper_tube_and_needle.tga", 0);
}

////////////////////////////
// Run at the start of the game.
void OnGameStart()
{

/////NEEDLE & TUBE COMBO/////
AddCombineCallback("NEEDLE_TUBE", "copper_tube_1", "hollow_needle_1", "NEEDLE_TUBE", false);



}



RE: combination does not work? - Dutton - 04-24-2012

is there something called OnGameStart? i thought the only 3 options was OnStart, OnEnter and OnLeave?

EDIT: Have you tryed Editing?

Code:
void OnGameStart()

to

Code:
void OnStart()



RE: combination does not work? - zombiehacker595 - 04-24-2012

(04-24-2012, 11:35 AM)Dutton Wrote: is there something called OnGameStart? i thought the only 3 options was OnStart, OnEnter and OnLeave?

EDIT: Have you tryed Editing?

Code:
void OnGameStart()


to

Code:
void OnStart()

herp de derp i figured it out thanks for the help Smile and for the inventory.hps "ongamestart" is what you use i accidently added 2 to the one file Smile


RE: combination does not work? - Dutton - 04-24-2012

Hehe no problem! glad you figured it out Smile