I have seen Gamestudio projects with nearly 100k lines of code and more, I doubt that there is any limitation to the size of an script, expect integer precision but then you must have at least two gigabytes in _one_ file.
Shitlord by trade and passion. Graphics programmer at Laminar Research. I write blog posts at feresignum.com