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
String of custom combinations
Damascus Offline
Senior Member

Posts: 646
Threads: 118
Joined: Mar 2012
Reputation: 29
#3
RE: String of custom combinations

Alright, I got that to work, but they still wont' combine with the flasks. I'm guessing there's a default name for those that I need too? I added "_01" to the end of the flask names thinking it might work, but it didn't work.

Edit: Despite the fact that I got the first combination to work, I'm now cutting out the salt mixture step and mixing the saltpetre directly with the the vitriol, and using seperate flasks for every new substance. (chemical container = saltpetre, cuprite = vitriol, calamine = ammonia)

Edit2: I've solved it by matching changing the in-game item names and internal names in the callback. They matched beforehand, but for some reason by changing them both to something else, the combination works now. Here's my script as it is for anyone else trying to figure this out.

Spoiler below!
///////////////////////////////////
////////////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);
}

I'm marking this as solved. Thanks for the help, everyone!

(This post was last modified: 03-11-2012, 02:34 AM by Damascus.)
03-11-2012, 01:14 AM
Find


Messages In This Thread
String of custom combinations - by Damascus - 03-10-2012, 06:26 AM
RE: String of custom combinations - by JMFStorm - 03-10-2012, 05:45 PM
RE: String of custom combinations - by Damascus - 03-11-2012, 01:14 AM



Users browsing this thread: 1 Guest(s)