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 Frustrating combination problem.
Slanderous Offline
Posting Freak

Posts: 1,606
Threads: 78
Joined: Dec 2012
Reputation: 63
#5
RE: Frustrating combination problem.

I did what you told me here, guys, and it didn't work. I removed the GiveItemFromFileFunc, and changed the GiveItem function (the second word) to Puzzle, as Mudbill said. I also added a debug message to the inventory.hps, not sure if thats what i was meant to do, anyway my current script:

PHP Code: (Select All)
///////////////////////////////////
////////////COMBINATIONS///////////
///////////////////////////////////

void Coppers(string &in asItemA, string &in asItemB)
{
RemoveItem(asItemA); RemoveItem(asItemB);
PlayGuiSound("15_make_hammer", 1.0f);
GiveItem("copper_tube_and_needle", "Puzzle", "copper_tube_and_needle", "copper_tube_and_needle.tga", 1);
}


////////////////////////////
// Run at the start of the game.
void OnGameStart()
{

AddDebugMessage("This is a test debug message. Thanks to Mudbill and DnALANGE for help! Cheers!", false);
AddCombineCallback("", "item1", "stone_chipper_1", "Coppers", true);
} 
06-04-2014, 03:48 PM
Find


Messages In This Thread
Frustrating combination problem. - by Slanderous - 06-03-2014, 09:20 PM
RE: Frustrating combination problem. - by Mudbill - 06-03-2014, 11:51 PM
RE: Frustrating combination problem. - by Mudbill - 06-04-2014, 01:55 AM
RE: Frustrating combination problem. - by Slanderous - 06-04-2014, 03:48 PM
RE: Frustrating combination problem. - by Mudbill - 06-05-2014, 01:54 PM
RE: Frustrating combination problem. - by Neelke - 06-05-2014, 03:21 PM



Users browsing this thread: 1 Guest(s)