Frictional Games Forum (read-only)
Just wondering if its possible to do this? - 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: Just wondering if its possible to do this? (/thread-21419.html)



Just wondering if its possible to do this? - serbusfish - 05-06-2013

I was thinking of a scenario where you enter a section which is flooded in a way that means you cant descend some stairs to access the next level door, so you need to find a way to drain the water from the level, then once its gone you can go down the stairs and proceed to the next level.

Can this be done? I would have thought it could as in the base game you enter a corridor that isnt flooded which then becomes flooded, so surely it can work the other way around?


RE: Just wondering if its possible to do this? - Tomato Cat - 05-06-2013

Yeah, I think it can be done. Try playing around with SetEntityActive a bit.

*edit*

Misread the question, sorry.


RE: Just wondering if its possible to do this? - CarnivorousJelly - 05-06-2013

I'm not a scripting expert (quite far from it, actually), but I know this was done in A:TDD; if my memory serves me right, it was done in the cistern level. Open up the map in the level editor and the .hps in notepad++ (or your choice of scripting program). They were pretty awesome and wrote notes about what each of the components did in most of their scripting files, so you should be able to find it fairly easily.

Good luck! :)

Edit: In case you're not familiar with the engine scripts, here's a list of them http://wiki.frictionalgames.com/hpl2/amnesia/script_functions

What all that stuff means:
ab[insert another word here]: looking for a bool. In script, you would type "true" or "false" without the quotations
string: usually the name of the script, area, entity, lever, light, etc, written in quotations (eg "PointLight_25")
float or af[insert word here]: A numerical value with decimal places. 1.0 is a float, 1 is not


RE: Just wondering if its possible to do this? - OriginalUsername - 05-06-2013

You could create something like a flooded stairway. Just place a blockbox with a script_area saying he can't go there because it's flooded. The player has to drain this (Like turning a valve) in another room. So when it's turned, it'll deactivate the blockbox, water, and the script_area. The scripting won't be too hard, but you can always ask if you don't understand!


RE: Just wondering if its possible to do this? - serbusfish - 05-06-2013

Ah that's great, thanks a lot guys! I will have a go at the scripting and see if I can get it working, ive only been doing it since January/February though so i've still got a lot to learn.


RE: Just wondering if its possible to do this? - OriginalUsername - 05-06-2013

(05-06-2013, 02:19 AM)serbusfish Wrote: Ah that's great, thanks a lot guys! I will have a go at the scripting and see if I can get it working, ive only been doing it since January/February though so i've still got a lot to learn.

This should help you along the way Wink