Frictional Games Forum (read-only)
How combine two Items? - 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: How combine two Items? (/thread-14484.html)

Pages: 1 2


RE: How combine two Items? - Shives - 04-06-2012

Oh I forgot to
Post my Script


void Expoxy(string &in asItemA, string &in asItemB)
{
PlayGuiSound("12_epoxy_fill.snt", 1.0f);
RemoveItem("Chemie");
RemoveItem("Flasche");
GiveItem("Spreng", "chemical_container_half", "", "chemical_container_half.tga", 1);
}

void OnGameStart()
{
AddCombineCallback("", "Flasche", "Chemie", "Expoxy", false);
}



RE: How combine two Items? - Cranky Old Man - 04-06-2012

Code:
void OnGameStart()

Cool function. When is it called? Wink




RE: How combine two Items? - Shives - 04-06-2012

i Replaced void OnGameStart()
with void OnStart()

But the result is the same


void Expoxy(string &in asItemA, string &in asItemB)
{
PlayGuiSound("12_epoxy_fill.snt", 1.0f);
RemoveItem("Chemie");
RemoveItem("Flasche");
GiveItem("Spreng", "chemical_container_half", "", "chemical_container_half.tga", 1);
}

void OnStart()
{
AddCombineCallback("", "Flasche", "Chemie", "Expoxy", false);
}



RE: How combine two Items? - SilentStriker - 04-06-2012

(04-06-2012, 01:55 PM)Cranky Old Man Wrote:
Code:
void OnGameStart()

Cool function. When is it called? Wink
void OnGameStart is only used in Inventory.hps





RE: How combine two Items? - Your Computer - 04-06-2012

Don't capitalize the file name for inventory.hps. This may have issues on operating systems other than Windows.