Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help Combind custom items
Author Message
SilentHideButFine Offline
Member

Posts: 151
Joined: May 2012
Reputation: 6
Post: #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 ???

Vill inte se mera. , New song check it out , download like comment!
05-12-2012 07:18 PM
Find all posts by this user Quote this message in a reply
SilentStriker Offline
Posting Freak

Posts: 939
Joined: Jul 2011
Reputation: 39
Post: #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 all posts by this user Quote this message in a reply
SilentHideButFine Offline
Member

Posts: 151
Joined: May 2012
Reputation: 6
Post: #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??

Vill inte se mera. , New song check it out , download like comment!
05-13-2012 01:53 AM
Find all posts by this user Quote this message in a reply
SilentStriker Offline
Posting Freak

Posts: 939
Joined: Jul 2011
Reputation: 39
Post: #4
RE: Combind custom items
http://www.frictionalgames.com/forum/thr...ht=Combine

05-13-2012 08:48 AM
Find all posts by this user Quote this message in a reply
SilentHideButFine Offline
Member

Posts: 151
Joined: May 2012
Reputation: 6
Post: #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 Confused

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

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

Vill inte se mera. , New song check it out , download like comment!
05-14-2012 03:03 PM
Find all posts by this user Quote this message in a reply
SilentStriker Offline
Posting Freak

Posts: 939
Joined: Jul 2011
Reputation: 39
Post: #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 all posts by this user Quote this message in a reply
SilentHideButFine Offline
Member

Posts: 151
Joined: May 2012
Reputation: 6
Post: #7
RE: Combind custom items
tryed the script dosn't work Confused

Vill inte se mera. , New song check it out , download like comment!
05-14-2012 03:14 PM
Find all posts by this user Quote this message in a reply
SilentStriker Offline
Posting Freak

Posts: 939
Joined: Jul 2011
Reputation: 39
Post: #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 all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)