Frictional Games Forum (read-only)
Chemical mixing? - 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: Chemical mixing? (/thread-10936.html)



Chemical mixing? - blend - 10-23-2011

Hey,

I just wanted to ask if its possible to put chemicals into your custom stories. Ive tried looking in the original game files but that stuff is just way too hard for me to put into my custom story, not a pro in scripting.

Couldnt find any tutorials on this either. Does anyone know how to do this? Smile


RE: Chemical mixing? - flamez3 - 10-23-2011

Not very sure if this would work:
Go into editor, make the pot 1 wherever you want it to be, then make pot 2 directly on it and aswell but uncheck "active" so that it wont appear until you tell it to. And then:


"AddUseItemCallback" you would for making a key work on a door:

void OnStart()
{
AddUseItemCallback("", "name of item", "thing to interact", "nameoffunction", true);

}

And then in the function:

void namefunction(string &in asItem, string &in asEntity)
{
SetEntityActive("pot1", false);

SetEntityActive("pot2", true);

}

And then, make it so that the pot2 is required to advance through the door or where ever:

void OnStart()
{
AddUseItemCallback("", "pot2", "door or what ever", "getthrough", true);

}

void getthrough(string &in asItem, string &in asEntity)

{
SetSwingDoorLocked("door", false, true);

}

I don't know if that would work, but its worth a shot.


RE: Chemical mixing? - blend - 10-23-2011

Ah, that helps a bit, I was actually thinking of something like the acid mixing thing in the original story, but this will do. Thanks!


RE: Chemical mixing? - flamez3 - 10-23-2011

(10-23-2011, 01:43 PM)blend Wrote: Ah, that helps a bit, I was actually thinking of something like the acid mixing thing in the original story, but this will do. Thanks!
Yeh, i have no idea how that worked in the original story :S


RE: Chemical mixing? - JenniferOrange - 10-25-2011

If you want to know how the main game did it just look it up in their .hps. I've seen it, it's confusing.