A script is a Java class, hence you need to know the Java programming language.
There is not yet a public API for scripts, but if there is interest we will consider creating one. For now, example scripts are provided that can be modified by end-users.
While developing scripts, it is useful to be able to compile the script to ensure that it works before running it in Ecolego.
Ecolego binaries are stored in a semi-hidden folder in the user directory.
On Windows, this folder is located at
%APPDATA%/Roaming/Ecolego 7/lib
On Linux, it is located in
~/.facilia/Ecolego 7/lib
This folder contains jar files for Ecolego and all third-party libraries that Ecolego uses.
When compiling a script, you must ensure that these files are included in the classpath.
On Windows:
javac -cp "%APPDATA%/Roaming/Ecolego 7/lib/*" MyScriptFile.java
Unix
javac -cp "~/.facilia/Ecolego 7/lib*" MyScriptFile.java