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 once 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:
- Quick start: a first script, from opening the window to the triggers it makes.
- Writing triggers:
trigger()and the helpers for writing many at once. - Programs: code that runs in the game. Its language and its library of modules have guides of their own: TrigScript language and TrigScript library.
- Coming from eudplib: where each eudplib and epScript idea went, for map makers who build EUD maps with euddraft.
- Testing and Simulate: trying the script in the simulator, and tests that run after every change.
- The workspace: the script window, its files, and the script in a panel beside the map.
- Reference: every function, and what is not supported.