![]() |
Why the hell does the combine not work?? :S - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: Why the hell does the combine not work?? :S (/thread-17108.html) |
Why the hell does the combine not work?? :S - neocrawler - 07-19-2012 Why doesn't it remove the flasks? void OnPickUpIngedient_4(string &in asEntity, string &in type) { AddLocalVarInt("Flask1", 1); 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("flask01_cuprite_1"); RemoveItem("flask01_aqua_regia_1"); RemoveItem("flask01_calamine_1"); RemoveItem("flask01_orpiment_1"); } RE: Why the hell does the combine not work?? :S - Your Computer - 07-19-2012 Probably because GetLocalVarInt("Flask1") != 4. Can't figure it out with so little information. RE: Why the hell does the combine not work?? :S - neocrawler - 07-19-2012 nah don't think its that one. I allready tested that one with SetPlayerActive(false); and when I picked up the fourt jar my player went unactive :/ RE: Why the hell does the combine not work?? :S - Your Computer - 07-19-2012 Just to make sure, did you try to combine any of the items after picking up each "Ingedient"? RE: Why the hell does the combine not work?? :S - neocrawler - 07-19-2012 I didn't try before I picked up all four of them ![]() RE: Why the hell does the combine not work?? :S - ksnider - 07-29-2012 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". Code: void OnStart() RE: Why the hell does the combine not work?? :S - neocrawler - 08-07-2012 Okay thanks ![]() |