+- 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: SCRIPTING PROBLEMS (/thread-9182.html)
I keep getting this error [see attachment] every time I try and load. I've gotten rid of the tokens, added the ';' it wants, and it still complains. -.- Here's my full script:
Woah.. ok.. first off, '(wake up)', that does NOT belong there lol, nothing goes inbetween the parenthesis of OnStart(), OnLeave(), or OnEnter().
and there are extra brackets everywhere.
Here:
I had to redo most of the script, there might be some syntax error, i'm not sure, i'm being lazy right now sorry.
None of the commands belong in a seperate set of brackets like you had it.
EX:
{
AddEntityCollideCallback(blah, blah, blah)
}
It doesn't work that way, these commands will always be in one of the On sections (OnStart, OnEnter, etc.)
The only things that get a bracket are the callback functions themselves.
EDIT: lol, I dunno if I messed it up or not, considering the way you had it.
I'm sorry about putting the wakeup() in the OnStart parenthesis.. I got the script from someone else and the directions said to put that in between a code and I was very clueless.. xD I've made a backup of my original script and have copied Snuffalofagus' script to try out instead, I'll let you know if it works.