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
Script Help I'm trying to create a custom addcombinecallback combination
PixelHurricane Offline
Junior Member

Posts: 24
Threads: 8
Joined: Jul 2012
Reputation: 0
#1
I'm trying to create a custom addcombinecallback combination

I'm trying to combine the stone hammer with the stone chipper to get a crowbar. but I can't get the game to stop giving me a hammer and chipper as an item.

this is my inventory.hps file
PHP Code: (Select All)
void OnGameStart()
{
AddCombineCallback("crowbar""stone_hammer_1""stone_chipper_1""makecrowbar"false);
}
void makecrowbar(string &in asItemAstring &in asItemB)
{
GiveItem("crowbar""crowbar""crowbar""crowbar.tga"1);
RemoveItem("stone_chipper_1");

can anyone help me on this?
03-16-2013, 06:00 PM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#2
RE: I'm trying to create a custom addcombinecallback combination

Where did you place your inventory.hps?

Tutorials: From Noob to Pro
03-16-2013, 07:49 PM
Website Find
PixelHurricane Offline
Junior Member

Posts: 24
Threads: 8
Joined: Jul 2012
Reputation: 0
#3
RE: I'm trying to create a custom addcombinecallback combination

it's in the main folder
03-16-2013, 07:55 PM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#4
RE: I'm trying to create a custom addcombinecallback combination

What's the "main" folder?

Tutorials: From Noob to Pro
03-16-2013, 08:06 PM
Website Find
PixelHurricane Offline
Junior Member

Posts: 24
Threads: 8
Joined: Jul 2012
Reputation: 0
#5
RE: I'm trying to create a custom addcombinecallback combination

custom_stories/(my custom story)
03-16-2013, 08:11 PM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#6
RE: I'm trying to create a custom addcombinecallback combination

It needs to be in your maps folder.

Tutorials: From Noob to Pro
03-16-2013, 08:26 PM
Website Find
PixelHurricane Offline
Junior Member

Posts: 24
Threads: 8
Joined: Jul 2012
Reputation: 0
#7
RE: I'm trying to create a custom addcombinecallback combination

it's working now, thanks!
03-16-2013, 08:35 PM
Find




Users browsing this thread: 1 Guest(s)