Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
scripting inventory.hps
stokesie95 Offline
Member

Posts: 87
Threads: 29
Joined: Nov 2011
Reputation: 4
#1
scripting inventory.hps

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

Looking for scripting work
12-31-2011, 12:20 AM
Find
palistov Offline
Posting Freak

Posts: 1,208
Threads: 67
Joined: Mar 2011
Reputation: 57
#2
RE: scripting inventory.hps

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

(This post was last modified: 12-31-2011, 12:46 AM by palistov.)
12-31-2011, 12:45 AM
Find




Users browsing this thread: 1 Guest(s)