Thanks, this has been very helpful. I'm trying to experiment with the example script provided. I set a special encounter rectangle for state 10 and another for state 11. When I try to test this with a party, walking onto the rectangle for state 10 brings up the message box with a and b written in it, but then it says in red text there is a error with the townscript file, Missing semicolon in line 25.
I've been looking over it and I don't see where the semicolon should go. The script file for this town is currently an exact copy/paste of the example provided in this post from Metatron.