Using items from combining items - 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: Using items from combining items (/thread-9640.html) |
Using items from combining items - TarkoRehin - 08-07-2011 How do I use an item obtained from combining two others to open for example a door? Here's my inventory.hps file: Code: void CombineOilKey(string &in asItemA, string&in asItemB) This script works perfectly fine, I use the Oil on the Rusty Key and get the Key I want, however I'm not sure how to use the new key for another script. Here's the script file for the level "Second_Floor" Code: void UnlockCabinet(string &in asItem, string &in asEntity) Obviously this is wrong, but I'm not sure what else to do. I've been staring at the script for the hand drill and hammer & chipper for a long time now and I can't make sense of it anymore >.< please help. EDIT: Solved it! the above script should now be correct. |