[SCRIPT] trouble with 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: [SCRIPT] trouble with combining items (/thread-20745.html) |
trouble with combining items - PixelHurricane - 03-14-2013 what I want to happen is have the hammer (found in the level) be use on the bed to chip of a piece of metal (stone chipper) an then be able to combine those to produce a crowbar and hammer (kind of bend the metal and what not) getting the chipper works fine. it's the AddCombineCallback that seems to be not working at all PHP Code: //////////////////////////// RE: trouble with combining items - NaxEla - 03-14-2013 You need to make an inventory.hps and put the combine callbacks in there. Also, you'll need to put OnGameStart() instead of OnStart(). Here's a video tutorial made by Your Computer: http://www.youtube.com/watch?v=VtgSk36Sa8E RE: trouble with combining items - PixelHurricane - 03-14-2013 I tried it first in the inventory.hps first actually. the addcombinecallback and the makecrowbar parts are exactly the same RE: trouble with combining items - FlawlessHappiness - 03-15-2013 Well, it shouldn't work in the map.hps. Inventory.hps is the only place it should be. You probably made a mistake in there. RE: trouble with combining items - PixelHurricane - 03-15-2013 ok, i removed the function for combining from jail.hps and put in into the inventory.hps it now looks like this. PHP Code: void OnGameStart() |