Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help Combind custom items
SilentHideButFine Offline
Member

Posts: 156
Threads: 38
Joined: May 2012
Reputation: 6
#1
Combind custom items

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 ???

[url= http://www.moddb.com/mods/jessehmusic [/url] ,HOSPITAL OF HORROR MOD
05-12-2012, 07:18 PM
Find Reply
SilentStriker Offline
Posting Freak

Posts: 950
Threads: 26
Joined: Jul 2011
Reputation: 43
#2
RE: Combind custom items

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
Find Reply
SilentHideButFine Offline
Member

Posts: 156
Threads: 38
Joined: May 2012
Reputation: 6
#3
RE: Combind custom 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??

[url= http://www.moddb.com/mods/jessehmusic [/url] ,HOSPITAL OF HORROR MOD
05-13-2012, 01:53 AM
Find Reply
SilentStriker Offline
Posting Freak

Posts: 950
Threads: 26
Joined: Jul 2011
Reputation: 43
#4
RE: Combind custom items

http://www.frictionalgames.com/forum/thr...ht=Combine

05-13-2012, 08:48 AM
Find Reply
SilentHideButFine Offline
Member

Posts: 156
Threads: 38
Joined: May 2012
Reputation: 6
#5
RE: Combind custom items

(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 ???

[url= http://www.moddb.com/mods/jessehmusic [/url] ,HOSPITAL OF HORROR MOD
05-14-2012, 03:03 PM
Find Reply
SilentStriker Offline
Posting Freak

Posts: 950
Threads: 26
Joined: Jul 2011
Reputation: 43
#6
RE: Combind custom items

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

(This post was last modified: 05-14-2012, 03:10 PM by SilentStriker.)
05-14-2012, 03:10 PM
Find Reply
SilentHideButFine Offline
Member

Posts: 156
Threads: 38
Joined: May 2012
Reputation: 6
#7
RE: Combind custom items

tryed the script dosn't work :S

[url= http://www.moddb.com/mods/jessehmusic [/url] ,HOSPITAL OF HORROR MOD
05-14-2012, 03:14 PM
Find Reply
SilentStriker Offline
Posting Freak

Posts: 950
Threads: 26
Joined: Jul 2011
Reputation: 43
#8
RE: Combind custom items

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?

05-14-2012, 03:32 PM
Find Reply




Users browsing this thread: 1 Guest(s)