TRIG
The triggers, 2400 bytes each, in the order they run. The record is laid out in the trigger reference, which also has a page for every condition and action.
Only Use Map Settings reads the map's triggers. Melee and the other game types run
triggers of their own, built into the game, and never read this section. Remastered's map
list reads it for every map, to see whether the map uses EUD triggers, so there a map with
no TRIG section is refused, even for melee.
When the game loads the triggers, it hands each player in the game a copy of every trigger that runs for them, and drops the rest. Which owners that covers is in the trigger reference, under Who a trigger runs for.
| Name | TRIG (54 52 49 47) |
|---|---|
| Size | 2400 bytes per trigger. |
| Read by | The game, at the start of a Use Map Settings game. Melee and the other game types never read it. |
| Required | For Use Map Settings. Without it a Use Map Settings game stops at the start with Error loading scenario file. Melee and the other game types play without it. In StarCraft: Remastered every map needs it, whatever the game type: its map list reads the triggers, and shows a map without them, or with a length that is not whole triggers, as Invalid Scenario. |
| The game accepts | Whole triggers only. A length that is not a multiple of 2400 refuses the map. |
| More than one copy | The copies are joined into one list: the records of all of them, in file order. |
| In scmJS | Read, and written again when you change what it holds. |
Each trigger:
| Offset | Type | Holds |
|---|---|---|
| 0 | u8 × 2400 | One trigger; see the trigger record |