Bornescript
The scripting language of the Borne Engine. Write the rules of your game on the server and the pictures on the client, and try both in your browser before you run a server.
// Count three ticks, then say so.function onCreated() { this.count = 0; setTimer(0.5);}
function onTimeout() { this.count++; echo("tick " @ this.count); if (this.count < 3) { setTimer(0.5); } else { echo("done"); }}Output
- tick 1
- tick 2
- tick 3
- done
Language guide
Values, scopes, events, timers, and the quirks that older scripts rely on, with examples that run.
API reference
Every built-in function, method, and property, with its signature, the side it runs on, and an example.
Playground
Write a script and run it with the real compiler and engine. A fake clock makes timers instant.
For AI assistants
Download an AGENTS.md that teaches your coding assistant the language, the limits, and the conventions.
Run a server
Set up, configure, secure, and back up a server, and look after it with the RC tool.
Bornescript reads scripts written for older GS2 servers and keeps their behavior, with the differences listed in the language guide. It adds async and await, try and catch, regular expressions, and optional type annotations.
Engine version 0.1.0. Built 2026-11-18.