Frictional Games Forum (read-only)

Full Version: scripting inventory.hps
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
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/amn...#inventory