# Drawstep engine · Triggers · `state` > State — A state trigger (CR 603.8): triggers whenever `eventCondition` is true and the ability isn't already on the stack ("when you control no Islands, sacrifice ~"). Requires `eventCondition`. Engine: Magic: The Gathering (`mtg`). This is one primitive of the Drawstep card vocabulary; field names and the discriminator are exact. Wiki page: https://drawstep.xyz/wiki/mtg/triggers#state ## Where it goes The `trigger` of a triggered ability: `{ "kind": "triggered", "trigger": { "event": "state", … }, "effects": [ … ] }`. The common trigger fields (`filter`, `by`, `other`, `condition`, `damageKind`, `oneOrMore` …) are on the triggers page. ## Fields No fields besides the discriminator. ## Stock examples - **Sea Serpent** — “When you control no Islands, sacrifice this creature.” ```json {"event":"state","eventCondition":{"kind":"not","condition":{"kind":"controls","who":"you","filter":{"subtypes":["Island"]},"min":1}}} ``` - **Homarid** — “Whenever there are four or more tide counters on this creature, remove all tide counters from it.” ```json {"event":"state","eventCondition":{"kind":"compare","a":{"kind":"countersOnSource","counter":"tide"},"op":">=","b":4}} ``` ## Related - [Triggers](https://drawstep.xyz/wiki/mtg/triggers.md) — the whole topic - [Start here](https://drawstep.xyz/wiki/mtg/start.md) — the rules, the output contract and the index of every primitive