A simple "Hello World" custom script. To use it, create a new custom script object, copy&paste the code and type "HelloWorldInit" without the " and without any brackets in the "Initialization Function (optional)" line
There are other ways of using custom script; you can use custom script lines for many trigger functions or a whole block within a Gui trigger; you can also import additional script files and include them in your script or even replace the whole map script.
So I've written my custom script in galaxy. How do I tell my map to use it?
Custom Script Objects have an optional initializer, which runs at map initialization. Use it by typing the name of a function to run at init. Example:
A simple "Hello World" custom script. To use it, create a new custom script object, copy&paste the code and type "HelloWorldInit" without the " and without any brackets in the "Initialization Function (optional)" line
There are other ways of using custom script; you can use custom script lines for many trigger functions or a whole block within a Gui trigger; you can also import additional script files and include them in your script or even replace the whole map script.