# Drawstep engine · Abilities · `triggered` > Triggered — e.g. “When ~ enters, (no effects)”. 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/abilities#triggered ## Where it goes One entry of `abilities[]`: `{ "kind": "triggered", … }`. ## Fields | Field | Type | Required | Description | |---|---|---|---| | `whenChosen` | `string` | no | CR 614.12c, 607.2m: anchor word; this ability exists only if that option was chosen as this source entered | | `name` | `string` | no | Printed name. On an ability: its ability word ("Hellfire Retribution"), shown in the English rendering, on the stack and in the log | | `trigger` | `TriggerDef` | yes | The TriggerDef: which event, whose, which object | | `optional` | `boolean` | no | "You may": the player chooses whether to do it | | `effects` | `EffectDef[]` | yes | The effects, resolved in order (EffectDef[]) | | `modes` | `object[]` | no | Modal choices: each `{ label, effects, cost? }`; `chooseMin` / `chooseMax` bound how many are picked | | `modeHistory` | `"game" \| "turn"` | no | CR 700.2a, 400.7: "choose one that hasn't been chosen (this turn)" — only modes not chosen earlier for this ability of this object; recorded as the ability is put onto the stack (CR 603.3c) | | `chooseMin` | `number` | no | Minimum number of modes chosen (default 1; 0 for "choose any number") | | `chooseMax` | `ValueDef` | no | CR 700.2a, 107.3: maximum modes, including X announced for the spell | | `chooseAtRandom` | `boolean` | no | CR 700.2a: choose the announced modes using the seeded RNG before targets | | `repeatModes` | `boolean` | no | CR 700.2d: allow repeated modes, each with independent targets announced before resolution | | `modeBudget` | `{ amount: number; exact?: boolean; symbol?: "pawprint" }` | no | CR 700.2i: maximum (or exact) total weight of the modes announced before targets | | `chooseIf` | `{ condition: ConditionDef; min: number; max?: number }` | no | "Choose one. If , (you may) choose both / any number instead": mode bounds that apply when the condition holds as the modes are chosen (CR 601.4) | | `distinctModeTargets` | `"player"` | no | CR 601.2c, 700.2: "Each mode must target a different player." — no two chosen modes may target the same player; each mode's player target is announced from the players no earlier mode targets (checked as the targets are chosen, CR 601.2c) | | `banner` | `boolean` | no | Host banner: an augment replaces this ability's trigger | | `eminence` | `boolean` | no | Also functions while the card is in the command zone | | `triggersFrom` | `"graveyard" \| "exile" \| "hand" \| "library" \| ("battlefield" \| "graveyard" \| "exile" \| "hand" \| "library")[]` | no | CR 113.6b, 113.6k: the ability functions only while its source is in this zone — its effect moves the source out of it ("Whenever a land you control enters, you may return this card from your graveyard to the battlefield"). It never triggers on the battlefield, and a card that entered the zone in the same simultaneous event does not see that event (CR 603.10) | ## Minimal form ```json {"kind":"triggered","trigger":{"event":"enters","filter":{"self":true}},"effects":[],"distinctModeTargets":"player"} ``` The engine reads that minimal form as: “When ~ enters, (no effects)”. ## Stock examples - **Cast Entry Watcher Study** — “” ```json {"kind":"triggered","trigger":{"event":"enters","filter":{"types":["Creature"],"controller":"you"},"condition":{"kind":"wasCast","by":"you"}},"effects":[{"effect":"gainLife","amount":1}]} ``` - **Cast History Study** — “” ```json {"kind":"triggered","trigger":{"event":"enters","filter":{"self":true},"condition":{"kind":"wasCast","by":"you"}},"effects":[{"effect":"gainLife","amount":3}]} ``` - **Damage Source Study** — “” ```json {"kind":"triggered","trigger":{"event":"dealsDamage","filter":{"controller":"you"},"damageKind":"noncombat","damagedPlayer":"opponent"},"effects":[{"effect":"gainLife","amount":1}]} ``` ## Related - [Abilities](https://drawstep.xyz/wiki/mtg/abilities.md) — the whole topic - [Values](https://drawstep.xyz/wiki/mtg/values.md) — every number kind an `amount` accepts - [Effects](https://drawstep.xyz/wiki/mtg/effects.md) — the steps a nested `effects` / `then` list may contain - [Start here](https://drawstep.xyz/wiki/mtg/start.md) — the rules, the output contract and the index of every primitive