The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
Game does not recognize inventory.hps file
LagerShan Offline
Junior Member

Posts: 11
Threads: 2
Joined: Dec 2018
Reputation: 0
#1
Game does not recognize inventory.hps file

When trying to combine both items, the game does not seem to combine both items at all, nor give out a debug message.
I can post in the Code here and let me know what the problem is, thanks. I tried multiple ways to fix it but none worked so far.
And yeah, the items in game have the same name as what is put into the code. It does not combine the items whatsoever. Nothing functions. The file is also placed in the same folder of the map and hps file.
void OnGameStart()
{
    AddCombineCallback("", "HammerPiece_1", "HammerPiece2_1", "GetFullHammer", true);
}

void GetFullHammer(string &in asItemA, string &in asItemB)
{
    GiveItem("Hammer", "stone_hammer.ent", "FullHammer", "stone_hammer.tga", 1);
    PlayGuiSound("make_hammer", 1);
    RemoveItem(asItemA);
    RemoveItem(asItemB);
}
(This post was last modified: 11-10-2019, 11:50 AM by LagerShan.)
11-08-2019, 08:55 PM
Find


Messages In This Thread
Game does not recognize inventory.hps file - by LagerShan - 11-08-2019, 08:55 PM



Users browsing this thread: 1 Guest(s)