


See ] for MotiveMe's original tutorial on how to do this. All of this is done in the Import Module.

This is better than just importing a file called MapScript.galaxy since the only way to do that is rename it to something else before importing and then renaming it back once it is imported, which is tedious. That means I only need to import Script.galaxy after I'm done coding (in Notepad++), and everything will work. Which calls initScript() from my own script file. Yeah, you should never open the trigger editor, as that tends to reset MapScript.galaxy I just use the following MapScript.galaxy file:
