# Events

> The event sheet - rows that read When … If … Do …, groups, sub-rows and custom events.

Your game's rules live on the **Events** page. Each row reads like a sentence.

![The Simple Football event sheet: custom events at the top, then rows such as When the match starts, do set phase to kickoff.](/shots/events-sheet.png)

- **When**: what starts it. _The match starts_, _Every 5 seconds_…
- **If**: what must be true. Optional.
- **Do**: what happens, in order.

## Make a row

![Building a row: choosing the trigger A disc crosses, setting the line to Goal, then adding 1 to score.](/shots/first-game-score.mp4)

1. Press **New row** and pick a trigger.
2. Click a blue slot to fill it.
3. Press **Condition** or **Action** to add more.

Empty slots show as problems until you fill them.

_Create a circle_, _Create a box_ and the rest, one per shape, hold the
visual they create: selecting the action edits it with the same inspector
as a placed one. Values from the trigger, such as its
`player`, are taken when the row runs. _Send chat message_ and _Play
{sound}_ take an optional **To**, an audience like a visual's; a sound
played at a disc can also reach only the players **near** it. _Play
{sound}_ also takes an optional **Volume**, from 0 to 1. Each listener's
screen works it out while the sound plays, so **Fade by distance** (from
the disc, full within one distance, silent at another) makes it quieter
farther away.

## Sub-rows

Open a row's **⋯** menu to add:

- **If** / **Otherwise**: branch.
- **For each player**: repeat for every player.
- **After**: wait some seconds first.

## Groups

- **New group** keeps related rows together.
- Untick a group to switch it off while testing.
- Drag the handle to reorder. Rows run top to bottom.

## Custom events

Your own triggers. _Raise Goal_ runs every row that starts with
_Goal is raised_. Good for doing one thing from many places.

## Names a row can use

A trigger gives its row names to use. _A player enters the match_ gives
`player` and their `disc`.

Every trigger, condition and action: [Studio events reference](/reference/studio-events).
