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


Thread Rating:
  • 2 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Inventory Script File (How to combine two items)
anzki Offline
Member

Posts: 88
Threads: 6
Joined: Apr 2010
Reputation: 1
#5
RE: Inventory Script File

Nope still not working.
Here is an example of original game "inventory.hps" file:
void CombineHammer(string &in asItemA, string &in asItemB)
{
    PlayGuiSound("15_make_hammer", 1.0f);
    
    AddPlayerSanity(10);
    
    RemoveItem(asItemA); RemoveItem(asItemB);
    
    GiveItem("stone_hammer_chipper", "Puzzle", "stone_hammer_chipper", "stone_hammer_chipper.tga", 0);    
}

void OnGameStart()
{
AddCombineCallback("stonechipperhammer", "stone_chipper_1", "stone_hammer_1", "CombineHammer", false);
}

Also tried; "void MakeExplosion(string &in asItemA, string &in asItemB)" and it did not work either.

[Image: 2qnr5av.png]
10-21-2010, 08:27 AM
Find


Messages In This Thread
RE: Inventory Script File - by house - 10-20-2010, 08:08 PM
RE: Inventory Script File - by anzki - 10-20-2010, 08:21 PM
RE: Inventory Script File - by house - 10-23-2010, 07:06 AM
RE: Inventory Script File - by Pandemoneus - 10-20-2010, 08:46 PM
RE: Inventory Script File - by anzki - 10-21-2010, 08:27 AM



Users browsing this thread: 1 Guest(s)