Frictional Games Forum (read-only)
Script - 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 (/thread-15596.html)



Script - LolMak - 05-24-2012

Hello guys, i need help with my inventory hps. I need combine item, two item, I wrote this script:///////////////////////////////////
////////////COMBINATIONS///////////
///////////////////////////////////

void Oleniym(string &in asItemA, string &in asItemB)
{
PlayGuiSound("15_make_hammer", 1.0f);
GiveItem("Oleniym", "chemical", "Oleniym", "hollow_needle.tga", 1);
}

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

/////COMBOS/////
AddCombineCallback("Water_Acrid", ""chemical_container_1", "chemical_container_epoxy_1", "Water_Acrid", true);
}
But it does not work. Please tell me my mistake.


RE: Script - wolfmaster1231 - 05-24-2012

instead of chemical use puzzle on GiveItem("Oleniym", "chemical", "Oleniym", "hollow_needle.tga", 1);


RE: Script - LolMak - 05-24-2012

Thanks dude


RE: Script - wolfmaster1231 - 05-24-2012

that thing is type specific and hey np Smile


RE: Script - Cranky Old Man - 05-24-2012

Edit: Never mind.