Quote from: monkey_05_06 on Wed 25/05/2011 10:24:02
If you try to call a function or set the value of a variable outside of any function then AGS doesn't know when you're wanting the code to execute. You can only execute commands (calling a function, setting a variable, etc.) from within a function, whether it's a custom function, a built-in function (like game_start), or one of the event handlers you linked in the editor.
Yep I figured, I need to stop coding attempts when my insomnia kicks in. I didn't know what function it belonged under or where else to put it...fixed now.