scmJS docs

Trigger reference

Every trigger condition and action: what it does, its arguments, its text form and where it is stored in the map.

Every trigger condition and action in StarCraft and Brood War: what it does in the game, the arguments it takes, how it is written as text, and where each argument is stored in the map file. The game's behaviour described here is StarCraft 1.16.1's, found by running test maps. Much of StarCraft: Remastered's trigger code has been read as well, and the parts a map maker would notice were checked by playing test maps. What it does differently is under In StarCraft: Remastered.

Each condition and action has a number, a line in the text form, and a table of where its arguments are stored. These come from the same tables the editor reads and writes maps with. The text form is SCMDraft 2's TrigEdit syntax, so an example line can be pasted into SCMDraft or into the editor's Text Trigger Editor.

In scmJS, triggers are edited in:

The Trigger Map plugin, from Plugins ▸ Browse Plugins…, draws which triggers set and read each switch, death count and location, and lists triggers that can never run. See Triggers in the user guide.