Frictional Games Forum (read-only)
firstkey is not defined - 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: firstkey is not defined (/thread-16211.html)



firstkey is not defined - liamthespy - 06-16-2012

I am working on my first custom story, and the basis of the first area is you need a key to get through a door. the key is called firstkey and the door is called firstdoor and I followed this tutorial; http://www.youtube.com/watch?v=T4k5ILstUxc&feature=relmfu

Basically, when I try to run the custom story it doesn't have a description even though I have made a description for it in the extra_english.lang file and when I try and run it amnesia closes saying firstkey is not defined.

I checked the lang file with a tool from the HPL editor wiki and it said there were no errors, any help please?


RE: firstkey is not defined - Obliviator27 - 06-16-2012

I'm assuming that you don't have firstkey in quotation marks.
Without the quotation marks, the compiler reads firstkey as a variable that was not declared earlier in the script, as opposed to the string "firstkey".