Frictional Games Forum (read-only)
[SCRIPT] Combind custom 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: [SCRIPT] Combind custom items (/thread-15400.html)



Combind custom items - SilentHideButFine - 05-12-2012

Hello , i wanna know how i combine like "fresh_meat_1" with "chemical_container_1" when i'v combined them i want this to come "chemical_container_full.ent" any clue ???


RE: Combind custom items - SilentStriker - 05-12-2012

If you just search around on the forum with the Search button you will find out how to combine items


RE: Combind custom items - SilentHideButFine - 05-13-2012

(05-12-2012, 08:20 PM)SilentStriker Wrote: If you just search around on the forum with the Search button you will find out how to combine items
can't find , can you post the code??


RE: Combind custom items - SilentStriker - 05-13-2012

http://www.frictionalgames.com/forum/thread-13885.html?highlight=Combine


RE: Combind custom items - SilentHideButFine - 05-14-2012

(05-13-2012, 08:48 AM)SilentStriker Wrote: http://www.frictionalgames.com/forum/thread-13885.html?highlight=Combine
Hmm don't really get the full script file :S

"///////////////////////////////////

////////////COMBINATIONS///////////

///////////////////////////////////



void AquaRegia(string &in asItemA, string &in asItemB)

{

RemoveItem(asItemA); RemoveItem(asItemB);

PlayGuiSound("15_make_hammer", 1.0f);

GiveItem("flask01_aqua_regia", "flask01_aqua_regia", "aqua_regia", "flask01_aqua_regia.tga", 1);

}



void AuricHydro(string &in asItemA, string &in asItemB)

{

RemoveItem(asItemA); RemoveItem(asItemB);

PlayGuiSound("15_make_hammer", 1.0f);

GiveItem("flask01_orpiment", "flask01_orpiment", "auric_hydroxide", "flask01_orpiment.tga", 1);

}



////////////////////////////

// Run at the start of the game.

void OnGameStart()

{



/////COMBOS/////

AddCombineCallback("", "chemical_container_1", "vitriol", "AquaRegia", true);

AddCombineCallback("", "flask01_aqua_regia", "ammonia", "AuricHydro", true);

}"

Can you explain that litle more? Smile
Like this "AddCombineCallback("", "ItemA", "ItemB", "func ", true); etc ???


RE: Combind custom items - SilentStriker - 05-14-2012

If you read everything you will notice that you need to make a Inventory.hps

and write stuff inside that

I can explain if you're just not able to figure it out yourself Smile

But I want you to find it out yourself it is more rewarding Smile


RE: Combind custom items - SilentHideButFine - 05-14-2012

tryed the script dosn't work :S


RE: Combind custom items - SilentStriker - 05-14-2012

Just remember that you can't copy and past and hope to make it work since you have different items etc (I would guess) have you made a Inventory.hps?