Output from the syntax checker run:
Method count: 56
Command count: 56
*** Pass 1 - Label accounting:
*** Error - Subroutine dropoff - Line 91 nested without return.
*** Warning - GOTO main: - Line 104 has no matching tag
Subroutine labels = 7
Tag labels = 1
4 Code block(s).
1 Warnings(s) encountered.
*** Pass 2 - Execution [SYNTAXCHECK]
You can download and run it yourself here:
http://www.scriptuo.com/index.php?action=downloads;cat=1You'll probably have to run the checker, fix and error and run the checker again until you get no more errors and minimal warnings.
But a quick couple hints:
1) Each one of your subs needs to be terminated in a "return". You should never jump out of a subroutine, or execute past the end into the next subroutine.
2) Your main loop executed down into your subs. You need to move your "goto main" back up to the very end of you main loop just after your "gosub loot"
3) verify your use of the "repeat" loop. Looks like you don't need it. For a repeat loop to work, it needs a corresponding "until" statement.