Here's an error log from MWEdit
Spoiler
1) lookoutScript: Failed to compile script!
2) Error: Line 41 (38): Syntax Error: Expected ')' but found 'Unknown' (=)!
Invalid input was received!
3) AF_GoldScript: Failed to compile script!
4) Error: Line 9 (8): Syntax Error: Expected 'end' but found 'elseif' (elseif)!
Invalid input was received!
5) AE_BandLeaderScript: Failed to compile script!
6) Error: Line 10 (8): Syntax Error: Expected 'end' but found 'elseif' (elseif)!
Invalid input was received!
7) AC_VictimTPScript: Failed to compile script!
8) Error: Line 12 (8): Syntax Error: Expected 'end' but found 'elseif' (elseif)!
Invalid input was received!
9) AC_VictimOutsideScript: Failed to compile script!
Some things to be aware of from taking a quick glance at the scripts:
When using "elseif", do not put an "endif" after the preceeding "if" block.
As an example, in "AC_HidingScript" you have this:
if ( GameHour > 23 )
set correcttime to 1
endif
elseif ( GameHour < 6 )
set correcttime to 1
endif
Instead, you should do it as so:
if ( GameHour > 23 )
set correcttime to 1
elseif ( GameHour < 6 )
set correcttime to 1
endif
That quirk seems like it may be what's breaking some of your scripts, so you'll want to go through and fix those in the log above.
Another thing I noticed, that won't get caught by the error log, is that your GetButtonPressed blocks are missing the "-1" button.
As an example, If you have a script like this:
if ( msgBox )
set button to GetButtonPressed
if ( button == 0 )
MessageBox "first button selected!"
elseif ( button == 1 )
MessageBox "second button selected!"
endif
endif
StopScript Example
Despite looking like it may work, it would actually do nothing. That is because the default state of GetButtonPressed is -1. There's no check for "button == -1" here, so when running through the script it'll evaluate both of the other button checks as false and proceed onward to the StopScript command. In this case even though the message box would pop up giving you options, before you could actually click any of them the script would be stopped and the buttons would become useless.
To fix this you would need to do:
if ( msgBox )
set button to GetButtonPressed
if ( button == -1 )
return
elseif ( button == 0 )
MessageBox "first button selected!"
elseif ( button == 1 )
MessageBox "second button selected!"
endif
endif
StopScript Example
Now when the script runs it would recognize when no button has been pressed and if so it'll return to back to the start and repeat until one of the buttons are selected. Since the return happens before the StopScript when we finally do select a button the script is still active and would actually display our message boxes.
I can't guarantee that those changes will solve your teleport problem, but they would likely fix a lot of other bugs you might not be aware of just yet. If the teleporting still persists after the error log is clean then I'll try and help investigate further.