Frictional Games Forum (read-only)
[SCRIPT] Combine Thingss??? - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: [SCRIPT] Combine Thingss??? (/thread-19253.html)



Combine Thingss??? - jamistara - 11-16-2012

Hi! I am creating a custom story called unconscious : prelude, and i got little problem with that!
I want to combine some items, but it doesnt work!!! this is the script!



void OnStart() {


AddCombineCallback("CombineThing", "chemical_container_1", "bucket_of_tar_1", "Combine", false);

}

void Combine(string &in asItemA, string &in asItemB){

RemoveItem("bucket_of_tar_1");
RemoveItem("chemical_container_1");
GiveItemFromFile("GiveThing", "chemical_container_full.ent");
}


would someone help me? i would love it!!!!


RE: Combine Thingss??? - Your Computer - 11-16-2012

You're supposed to put combination callbacks in your inventory.hps file.


RE: Combine Thingss??? - jamistara - 11-16-2012

(11-16-2012, 08:45 PM)Your Computer Wrote: You're supposed to put combination callbacks in your inventory.hps file.
But how? Sorry, i may sound like a noob, but i never have used combinecallbacks:=)


RE: Combine Thingss??? - The chaser - 11-16-2012

http://wiki.frictionalgames.com/hpl2/tutorials/level_editor/combininghammerchipperjenniferorange

This should help you Smile


RE: Combine Thingss??? - jamistara - 11-16-2012

(11-16-2012, 09:13 PM)The chaser Wrote: http://wiki.frictionalgames.com/hpl2/tutorials/level_editor/combininghammerchipperjenniferorange

This should help you Smile
hey thanks! I got things under control and everything! Thank you!!!