Documentation
TypeScript type definitions and TSTL plugin for Second Life's SLua runtime
Overview
@gwigz/slua provides complete LSL/SLua type definitions and a
TypeScript-to-Lua plugin for developing
Second Life scripts in TypeScript. Write type-safe code with full editor
support, then compile to SLua with minimal runtime overhead.
Getting Started
Install dependencies and configure your project
@gwigz/slua-modules
Reusable runtime modules for config, async yields, and testing
@gwigz/slua-create
Scaffold a new SLua TypeScript project in seconds
@gwigz/slua-json
Tagged JSON codec for exchanging typed data with SLua scripts
Examples
Projects built with this toolchain, it's how the rough edges get found and fixed.
slua-derez-patcher
Skips the rez-edit-take-replace cycle, patches rezzed objects in-place using ll.DerezObject
sim-wide-relay
Region-wide chat relay system, a multi-script project deployed at a live sim
Resources
Official
Creator Portal
Second Life creator tools and documentation
VSCode Extension
SLua language support for VS Code by Linden Lab
LSL Definitions
LSL and SLua API definitions by Linden Lab