TSSL is a TypeScript subset that transpiles to Fallout SSL (Star-Trek Scripting Language). It lets you write Fallout 1/2 game scripts using TypeScript syntax with full IDE support -- type checking, autocomplete, go-to-definition, and module imports -- while targeting the same runtime as hand-written SSL.
.tssl files are bundled with esbuild, converted to .ssl via the transpiler, then compiled to .int bytecode by sslc.
- You write
.tsslfiles using a subset of TypeScript - Transpiler converts
.tsslto.ssl, the resulting file is written next to the source - sslc compiles the
.sslto.intfor the Fallout engine
Engine builtins and sfall functions are provided by folib as typed declarations.
- Writing TSSL -- Comprehensive reference for all supported syntax, forbidden constructs, and gotchas
- Converting SSL to TSSL -- Step-by-step migration guide from existing SSL scripts
- LLM Reference -- Compact reference optimized for LLM context windows (copy into your project for AI-assisted coding)