![]() |
scripting inventory.hps - 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: scripting inventory.hps (/thread-12209.html) |
scripting inventory.hps - stokesie95 - 12-31-2011 i need help scripting a inventory.hps file i need it so that i need three things to be combined into one how can i do this RE: scripting inventory.hps - palistov - 12-31-2011 In the inventory.hps, add callbacks for each part to be combined with the other 2 parts. You should have 3 total. Place the AddCombineCallback functions under OnGameStart() Combos: 1 + 2 1 + 3 2 + 3 I'm pretty sure when you script a combination, it applies both ways (using the first on the second works when using the second on the first) Make each callback call the same function, under which you remove all 3 of the items and give the player the completed item. The appropriate script functions can be found here: http://wiki.frictionalgames.com/hpl2/amnesia/script_functions#inventory |