![]() |
Noob needs scripting help. - 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: Noob needs scripting help. (/thread-10158.html) |
Noob needs scripting help. - A Tricky Carnie - 09-04-2011 I'm working on a custom story, and I've run into a problem. I have a locked door that I want to open with a key, but when I go into the map, the game crashes and says there was an error in the script. This is my script: Quote://////////////////////////// The map worked fine until I added the key commands into my script. Any help would be greatly appreciated. RE: Noob needs scripting help. - Your Computer - 09-04-2011 You forgot a ; and } at the end of KeyOnDoor's code block. RE: Noob needs scripting help. - Tanshaydar - 09-04-2011 You didn't put a ';' and '}' at the end of your KeyOnDoor function. RemoveItem("Key_1"); } RE: Noob needs scripting help. - A Tricky Carnie - 09-04-2011 ahhh. thanks, didn't notice that. (09-04-2011, 11:13 PM)A Tricky Carnie Wrote: ahhh. thanks, didn't notice that.I thought I fixed it, but I guess not, heres what I have now: Quote://////////////////////////// the "FATAL ERROR" box that shows up when I enter the map says... Quote:FATAL ERROR: Could not load script file I don't know if that is of any help, but I'm assuming the (8,1) refers to line 8 of the .hps file and the 1 means the first character on that line, which would be '{', and I don't know how to fix that. RE: Noob needs scripting help. - A Tricky Carnie - 09-05-2011 nvm, I re-wrote it, and got it to work. |