04-05-2013, 09:27 AM
04-05-2013, 09:49 AM
Make a .txt file.
Change it's extension to .hps.
Rename it so that it will look like "global.hps".
Open it with Notepad.
Copy-paste the following code to your global.hps
Change
"Nameofthefirstitem" to the First Item you wanna combine.
AND
"Nameoftheseconditem" to the Second Item you wanna combine.
The names must be the same as their name in the Level Editor. And always use quotation marks ("") around names.
Change it's extension to .hps.
Rename it so that it will look like "global.hps".
Open it with Notepad.
Copy-paste the following code to your global.hps
Code:
void OnGameStart()
{
AddCombineCallback("HandDrill", "Nameofthefirstitem", "Nameoftheseconditem", "CombineHandDrill", true);
}
void CombineHandDrill(string &in asItemA, string &in asItemB)
{
PlayGuiSound("12_make_drill", 1.0f);
RemoveItem(asItemA); RemoveItem(asItemB);
GiveItem("HandDrill", "Puzzle", "hand_drill", "hand_drill.tga", 0);
}
"Nameofthefirstitem" to the First Item you wanna combine.
AND
"Nameoftheseconditem" to the Second Item you wanna combine.
The names must be the same as their name in the Level Editor. And always use quotation marks ("") around names.
04-05-2013, 10:55 AM
(04-05-2013, 09:49 AM)JustAnotherPlayer Wrote: [ -> ]Make a .txt file.
Change it's extension to .hps.
Rename it so that it will look like "global.hps".
Open it with Notepad.
Copy-paste the following code to your global.hps
ChangeCode:void OnGameStart()
{
AddCombineCallback("HandDrill", "Nameofthefirstitem", "Nameoftheseconditem", "CombineHandDrill", true);
}
void CombineHandDrill(string &in asItemA, string &in asItemB)
{
PlayGuiSound("12_make_drill", 1.0f);
RemoveItem(asItemA); RemoveItem(asItemB);
GiveItem("HandDrill", "Puzzle", "hand_drill", "hand_drill.tga", 0);
}
"Nameofthefirstitem" to the First Item you wanna combine.
AND
"Nameoftheseconditem" to the Second Item you wanna combine.
The names must be the same as their name in the Level Editor. And always use quotation marks ("") around names.
how about 3 parts like from the storage in ATDD?
04-05-2013, 11:07 AM
(04-05-2013, 10:55 AM)TimeSpectre Wrote: [ -> ]Dunno. The Script Functions page only gave me two.(04-05-2013, 09:49 AM)JustAnotherPlayer Wrote: [ -> ]Make a .txt file.
Change it's extension to .hps.
Rename it so that it will look like "global.hps".
Open it with Notepad.
Copy-paste the following code to your global.hps
ChangeCode:void OnGameStart()
{
AddCombineCallback("HandDrill", "Nameofthefirstitem", "Nameoftheseconditem", "CombineHandDrill", true);
}
void CombineHandDrill(string &in asItemA, string &in asItemB)
{
PlayGuiSound("12_make_drill", 1.0f);
RemoveItem(asItemA); RemoveItem(asItemB);
GiveItem("HandDrill", "Puzzle", "hand_drill", "hand_drill.tga", 0);
}
"Nameofthefirstitem" to the First Item you wanna combine.
AND
"Nameoftheseconditem" to the Second Item you wanna combine.
The names must be the same as their name in the Level Editor. And always use quotation marks ("") around names.
how about 3 parts like from the storage in ATDD?
04-05-2013, 12:16 PM
Does it require any script at all? I heard that combinantions working in Amnesia: The Dark Descent, work in Custom Stories without additional scripting. Everything has been already set in "Inventory.hps" in main Amnesia folder with maps. I think only combinations that have never existed in The Dark Descent require scripting. And this might be quite troublesome, as with Justine patch it seems not to work properly.
04-05-2013, 03:40 PM
......
The file name was supposed to be "Inventory.hps". Sorry.
The file name was supposed to be "Inventory.hps". Sorry.