Yeah, you should never open the trigger editor, as that tends to reset MapScript.galaxy I just use the following MapScript.galaxy file:
[code]<br>
include "TriggerLibs/NativeLib"<br>
include "Script"<br>
void InitMap () {<br>
libNtve_InitLib();<br>
initScript();<br>
}<br>[/code]
which calls initScript() from my own script file. That means I only need to import Script.galaxy after I'm done coding (in Notepad++), and everything will work. 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. All of this is done in the Import Module. See [[http://www.sc2mapster.com/forums/resources/tutorials/888-trigger-writing-code-in-pure-galaxy/#posts|here]] for MotiveMe's original tutorial on how to do this.
I would also recommend using a language extension, as galaxy is pretty lacking. I still use Andromeda, but Galaxy++ is probably the way to go these days. You can find out more about Andromeda at sc2mod.com, and Galaxy++ has a page somewhere here on SC2Mapster.
Yeah, you should never open the trigger editor, as that tends to reset MapScript.galaxy I just use the following MapScript.galaxy file:
[code]<br> include "TriggerLibs/NativeLib"<br> include "Script"<br> void InitMap () {<br> libNtve_InitLib();<br> initScript();<br> }<br>[/code]
which calls initScript() from my own script file. That means I only need to import Script.galaxy after I'm done coding (in Notepad++), and everything will work. 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. All of this is done in the Import Module. See [[http://www.sc2mapster.com/forums/resources/tutorials/888-trigger-writing-code-in-pure-galaxy/#posts|here]] for MotiveMe's original tutorial on how to do this.
I would also recommend using a language extension, as galaxy is pretty lacking. I still use Andromeda, but Galaxy++ is probably the way to go these days. You can find out more about Andromeda at sc2mod.com, and Galaxy++ has a page somewhere here on SC2Mapster.