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
Why the hell does the combine not work?? :S
ksnider Offline
Junior Member

Posts: 9
Threads: 0
Joined: Jul 2012
Reputation: 0
#6
RE: Why the hell does the combine not work?? :S

You need to have all combine callbacks in a file named "inventory.hps", and it needs to be placed in (custom_stories/"StoryName"/maps).

If you want to be able to combine the jars after picking up all four, then put this in your "inventory.hps".

void OnStart()
{
SetLocalVarInt("Flask1", 0);
SetEntityCallbackFunc("flask01_cuprite_1", "OnPickUpIngedient");
SetEntityCallbackFunc("flask01_aqua_regia_1", "OnPickUpIngedient");
SetEntityCallbackFunc("flask01_calamine_1", "OnPickUpIngedient");
SetEntityCallbackFunc("flask01_orpiment_1", "OnPickUpIngedient");
}

void OnPickUpIngedient(string &in asEntity, string &in type)
{
AddLocalVarInt("Flask1", 1);
func_01();
}

void func_01()
{
  if(GetLocalVarInt("Flask1") == 4)
  {
      AddCombineCallback("", "flask01_cuprite_1", "chemical_container_half_1", "UseFlaskOnContainer", true);
      AddCombineCallback("", "flask01_aqua_regia_1", "chemical_container_half_1", "UseFlaskOnContainer", true);
      AddCombineCallback("", "flask01_calamine_1", "chemical_container_half_1", "UseFlaskOnContainer", true);
      AddCombineCallback("", "flask01_orpiment_1", "chemical_container_half_1", "UseFlaskOnContainer", true);
  }
}

void UseFlaskOnContainer(string &in asItemA, string &in asItemB)
{
RemoveItem(asItemA);
}

Creator of Pewdie's Revenge
07-29-2012, 09:21 AM
Find


Messages In This Thread
RE: Why the hell does the combine not work?? :S - by ksnider - 07-29-2012, 09:21 AM



Users browsing this thread: 1 Guest(s)