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


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Amnesia Scripting Help!
lawerancerivera Offline
Junior Member

Posts: 3
Threads: 1
Joined: Mar 2013
Reputation: 0
#1
Amnesia Scripting Help!

I'm having trouble in the scripting for amnesia. I have an orbpiece and a stone chipper that I want to combine in the inventory to make a stone hammer. Im using the addcombinecallback but I'm not sure what the internal names are for the orbpiece and the stone chipper.

void OnStart()
{
AddCombineCallback("", "stone_chipper", "orbpiece_crimson", "awesome", true);
}

void awesome(string &in asItemA, string &in asItemB)
{
GiveItemFromFile("stonehammer", "stone_hammer.ent");
}

What am I doing wrong?
(This post was last modified: 03-06-2013, 12:59 AM by lawerancerivera.)
03-06-2013, 12:57 AM
Find
NaxEla Offline
Senior Member

Posts: 415
Threads: 5
Joined: Dec 2012
Reputation: 28
#2
RE: Amnesia Scripting Help!

You need to make an inventory.hps, and put the combine callbacks in that file. What you already have for your script should work fine, except you'll need to change OnStart to OnGameStart.

Here's a video with more info: http://www.youtube.com/watch?v=VtgSk36Sa8E

In Ruins [WIP]
03-06-2013, 03:49 AM
Find
lawerancerivera Offline
Junior Member

Posts: 3
Threads: 1
Joined: Mar 2013
Reputation: 0
#3
RE: Amnesia Scripting Help!

(03-06-2013, 03:49 AM)NaxEla Wrote: You need to make an inventory.hps, and put the combine callbacks in that file. What you already have for your script should work fine, except you'll need to change OnStart to OnGameStart.

Here's a video with more info: http://www.youtube.com/watch?v=VtgSk36Sa8E

This worked!! Thanks a ton Big Grin
03-06-2013, 04:18 AM
Find




Users browsing this thread: 1 Guest(s)