Skip to content
AEOWUN
Docs Menu

Your first script

Print a message when Play starts.

Create the file

With a project open, create scripts/hello.aeo. Save this code:

debug.log("Hello from AeoScript")

This is top-level code. Do not wrap it in on_ready() or bind it to a floor block.

Run and check

Start Play. Open Output and look for Hello from AeoScript. If it is missing, check the saved path, script enabled state, and first error in Output.

Add a function

fn add(a, b) {
    return a + b
}
debug.log(add(10, 20))

Run again. The result is 30. See Functions for the explanation.

[BETA] marks features newer than the current public release. Current release: 0.8.0.