Frictional Games Forum (read-only)
[WIP] The Grey Knights. Custom Story *Demo* - 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)
+--- Thread: [WIP] The Grey Knights. Custom Story *Demo* (/thread-9789.html)

Pages: 1 2 3


RE: The Grey Knights. Custom Story *Demo* - Khan - 08-17-2011

Well, I just need to find out how to make several keys in one map, and then the full Demo is ready for release.



RE: The Grey Knights. Custom Story *Demo* - Tanshaydar - 08-17-2011

Please pardon my ignorance, but what is a full demo?


RE: The Grey Knights. Custom Story *Demo* - Khan - 08-17-2011

(08-17-2011, 02:19 PM)Tanshaydar Wrote: Please pardon my ignorance, but what is a full demo?

So far I realeased a TINY little "demo" a few days ago, I decided to release a real, full demo, by full I mean nice, semi long, and showing off the good scares that everyone loves Smile. Stick around, the Full demo release is scheduald for today, I just need to learn how to make another key in the same map, pardon my scripting, Im new to it, lol :p


RE: The Grey Knights. Custom Story *Demo* - Tanshaydar - 08-17-2011

What exactly do yo need? A second key to open one door?


RE: The Grey Knights. Custom Story *Demo* - Khan - 08-17-2011

(08-17-2011, 02:39 PM)Tanshaydar Wrote: What exactly do yo need? A second key to open one door?

Ive got a key in the map already, but Im new to this scripting thing, so Im not sure how to set up another key to unlock a different door in the same map, I gave it a shot a few times, trying a few different things, but totaly failed :|


RE: The Grey Knights. Custom Story *Demo* - Tanshaydar - 08-17-2011

Simply place another key and script it to another Use Item Callback.
Nice tutorials are here: http://wiki.frictionalgames.com/hpl2/tutorials/start


RE: The Grey Knights. Custom Story *Demo* - Khan - 08-17-2011

Ive hit small snag, Ive got the other key to the point where it almost works, when I use it on the door, it makes the unlock sound and everything, but the door is still locked ;(


RE: The Grey Knights. Custom Story *Demo* - Tanshaydar - 08-17-2011

Setswingdoorlocked("door's name", false, true);

That should do in the call back function you wrote.

To be able to make it re-usable for every key-door use item callback, you can make it:

setswingdoorlocked(asEntity, false, true);

You should write the signature functions though, as I wrote here just examples and won't work in actual code as they are.


RE: The Grey Knights. Custom Story *Demo* - Khan - 08-17-2011

KK, Demo is done and out. Enjoy!


RE: The Grey Knights. Custom Story *Demo* - Khan - 08-18-2011

Working on the next area, this is coming together nicely. Will post screens sometime tommorow.