Frictional Games Forum

Full Version: Combind custom items
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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 ???
If you just search around on the forum with the Search button you will find out how to combine items
(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??
(05-13-2012, 08:48 AM)SilentStriker Wrote: [ -> ]http://www.frictionalgames.com/forum/thr...ht=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 ???
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
tryed the script dosn't work :S
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?