Frictional Games Forum (read-only)
Question - 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 (https://www.frictionalgames.com/forum/forum-35.html)
+---- Forum: Technical Support (https://www.frictionalgames.com/forum/forum-37.html)
+---- Thread: Question (/thread-21881.html)



Question - Fusionz - 06-21-2013

Hello everybody, first of all I am new in this thing of Custom Stories and mapping, just wanted to ask one question.
I've got an idea to make in my CS, which is that when 'A' lamp is lit, the door is opened else you die.

I've been trying like doing if SetLampLit but I think it doesn't work out? (I don't know right), I tried to make variables but didn't go that well.

If anyone could help me with that, I would really appreciate it Smile

If you still didn't get the idea; there are 10 lamps over a place, only one lamp should be lit, if that lamp is lit then the door is opened, if any other lamp besides that one is lit you die.

Greetings!


Answer - 7heDubz - 06-21-2013

Well, it doesn't sound like you need any variable at all really.

you know how you click on a torch and it will light up? just put a script area around every torch and when the player clicks on it either set the player health to 0 (Just have the game call one callback for all 9 torches)or set the door unlocked (through script)


RE: Question - Fusionz - 06-21-2013

(06-21-2013, 01:41 AM)WIWWM Wrote: Well, it doesn't sound like you need any variable at all really.



you know how you click on a torch and it will light up? just put a script area around every torch and when the player clicks on it either set the player health to 0 (Just have the game call one callback for all 9 torches)or set the door unlocked (through script)

Well yea I guess I got to put areas as I still don't get it working, I'll notice back if it works!


RE: Question - PutraenusAlivius - 06-21-2013

Use SetLocalVarInt for the variables. Global if you want this to be done across maps.