scmJS docs

TrigScript

TrigScript writes triggers as code: TypeScript files kept inside the map. It is a plugin, on from the start, and Triggers ▸ TrigScript… opens it as soon as a map is open. Each trigger() call the script makes becomes an ordinary trigger, the same kind the Trigger Editor shows, and plays on any version of the game. Code inside program(() => { … }) runs in the game itself, with variables, arrays, functions and loops, and a map with a program in it needs StarCraft: Remastered.

The TrigScript editor on a wave-defence script: the files on the left and the code checked as you type

TrigScript has a guide of its own, docs/trigscript.md: