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
Combining Problem
amusei Offline
Junior Member

Posts: 23
Threads: 8
Joined: Aug 2012
Reputation: 2
#1
Exclamation  Combining Problem

Hi, guys.
I have a problem with combining my hammer and chipper. First, let me tell you how the player gets them since that may be the problem. So in one of the map he takes the hammer(named hammer_1) from a desk and then uses it to destroy some wooden boards. Then he enters the door to the other map. There he finds the chipper(named stone_chipper_1) but then when I try to combine them it says "combination doesn't work".
Here is my inventory.hps script
void OnGameStart()
{
    AddCombineCallback("hammer_chipper", "hammer_1", "stone_chipper_1", "HammerChipperFunc", false);
}

void HammerChipperFunc(string &in asItemA, string &in asItemB)
{
    PlayGuiSound("15_make_hammer", 1.0f);
    RemoveItem(asItemA);
    RemoveItem(asItemB);
    GiveItem("stone_hammer_chipper", "stone_hammer_chipper", "", "stone_hammer_chipper.tga", 1);
}
Thanks in advance Smile
(This post was last modified: 01-21-2013, 05:00 PM by amusei.)
01-21-2013, 01:39 PM
Find
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#2
RE: Combining Problem

GiveItem("stone_hammer_chipper", "Puzzle", "stone_hammer_chipper", "stone_hammer_chipper.tga", 0);

Try this one. Also, check names and delete any map_caches if there are.

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
01-21-2013, 01:59 PM
Find
amusei Offline
Junior Member

Posts: 23
Threads: 8
Joined: Aug 2012
Reputation: 2
#3
RE: Combining Problem

(01-21-2013, 01:59 PM)The chaser Wrote: GiveItem("stone_hammer_chipper", "Puzzle", "stone_hammer_chipper", "stone_hammer_chipper.tga", 0);

Try this one. Also, check names and delete any map_caches if there are.

Checked names, deleted map_caches, changed script still doesn't work Undecided
01-21-2013, 02:06 PM
Find
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#4
RE: Combining Problem

Where do you have the inventory.hps?

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
01-21-2013, 02:18 PM
Find
amusei Offline
Junior Member

Posts: 23
Threads: 8
Joined: Aug 2012
Reputation: 2
#5
RE: Combining Problem

(01-21-2013, 02:18 PM)The chaser Wrote: Where do you have the inventory.hps?
in redist/custom stories/My custom story folder/maps

Fixed. There was an intro map I forgot about since I made my story start from the next map. Deleting the cache really solved the problem. Thanks "The chaser" Smile
(This post was last modified: 01-21-2013, 04:59 PM by amusei.)
01-21-2013, 04:09 PM
Find




Users browsing this thread: 1 Guest(s)