Ok, what I want is to make the script for a label that works like the @OVERHOTSPOT@ and Iv'e run into a problem.

I get the error when I put this script in the repeatedly_execute section:
Code: ags
Is there a work around or am I just not clever enough?
Im not a scripter, so please reply as simple as possible. 
Thanks!
/A-Hed

I get the error when I put this script in the repeatedly_execute section:
function repeatedly_execute() {
// put anything you want to happen every game cycle here
if (Game.GetLocationName(mouse.x, mouse.y) != "") {
Names_Label.Text = Game.GetLocationName(mouse.x, mouse.y);
}
if (Game.GetLocationName(mouse.x, mouse.y) == "") {
Names_Label.Text = "Nothing of interest";
}
}
Is there a work around or am I just not clever enough?


Thanks!
/A-Hed