Scripting¶
Everything about how Lua code runs inside Anomaly — from how files are loaded to how your code hooks into engine events.
Pages in this section¶
- Lua in Anomaly — The Lua version, available standard libraries, globals injected by the engine, and the module system
- Script Lifecycle — When scripts load, execution order, and how to safely depend on other scripts
- The Callback System —
RegisterScriptCallbackandAddScriptCallbackin depth, with patterns for safe registration and cleanup - Save & Load State — Persisting mod data across saves using the
save_state/load_statecallback pair