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.

TrigScript has a guide of its own, docs/trigscript.md:
- Opening the script: the script window, its files, Simulate and Apply.
- Tests: tests that check the script in the simulator after every change.
- Beside the map: the script in a panel over the map.
- Writing triggers:
trigger()and the helpers for writing many at once. - Programs: code that runs in the game.
- TrigScript beside TypeScript: what works inside a program as it does in TypeScript, and what differs.
- Examples: complete scripts to start from.
- Reference: every function, and what is not supported.