Skip to main content
Selvut scripts use Lua syntax: local variables, function callbacks, tables for objects and arrays, and nil for missing values.
Use tables for API options:
Register callbacks with Script.on:
Many game-state APIs return nil when the player or world is unavailable:
Lua array-style tables are one-based: