Lunaris

Lunaris Logo

Lunaris is the scripting language used for mods in Erios. It is based on Lua, but adds modern programming features.

This manual is organized by learning path instead of one flat topic list. If you are new to Lunaris, start at the top and move down. If you already know the language, jump straight to the section you need.

Start Here

Use this section if you are learning Lunaris for the first time.

Core Flow

These pages cover the main control-flow building blocks you will use in normal scripts.

Data And Abstractions

This section covers how Lunaris models data, reusable types, and larger program structure.

Using Lunaris In Erios

These pages are about how Lunaris scripts run inside Erios rather than the core language itself.

Main.luna is the main entry script for a mod. It runs when the mod loads and is commonly used for setup, subscriptions, and loading other scripts.

// Show a notification when the mod is loaded
Notification.Info("Hello World")

Reference

These pages are best used as lookup material once you already know the basics.

Categories:

Updated: