# Drawstep engine · Effects · `reflexiveTrigger` > Reflexive trigger — When you do (CR 603.12): a separate triggered ability about the objects just acted on; choose its targets on the stack. 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/effects#reflexiveTrigger ## Where it goes One step of an ability's `effects[]` (a spell's, a trigger's, an activated ability's, a mode's): `{ "effect": "reflexiveTrigger", … }`. Steps resolve in order. ## Fields | Field | Type | Required | Description | |---|---|---|---| | `about` | `TargetDef` | no | Optional fixed objects this trigger refers to; omitted for a payment-only trigger | | `effects` | `EffectDef[]` | yes | The effects, resolved in order (EffectDef[]) | | `modes` | `({ label: string; effects: EffectDef[]; weight?: number; cost?: CostDef })[]` | no | CR 603.12, 700.2a: "When you do, choose one —": the reflexive ability's modes, chosen as it goes on the stack; effects is then empty | | `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 of the reflexive ability | | `condition` | `ConditionDef` | no | CR 603.12: it triggers only if this holds as the preceding action finishes ("When you reveal one or more nonland cards this way, …") | ## Minimal form ```json {"effect":"reflexiveTrigger","effects":[]} ``` The engine reads that minimal form as: “when you do, ”. ## Stock examples - **Paid Values** — “You may pay {X}. When you do, Paid Values deals X damage to target creature.” ```json {"effect":"reflexiveTrigger","effects":[{"effect":"dealDamage","target":{"of":"object","mode":"chosen","filter":{"types":["Creature"]}},"amount":{"kind":"var","name":"X"}}]} ``` - **Ambulatory Edifice** — “When this creature enters, you may pay 2 life. When you do, target creature gets -1/-1 until end of turn.” ```json {"effect":"reflexiveTrigger","effects":[{"effect":"modifyPT","target":{"of":"object","mode":"chosen","filter":{"types":["Creature"]}},"power":-1,"toughness":-1,"duration":"endOfTurn"}]} ``` - **Gorbag of Minas Morgul** — “Whenever a Goblin or Orc you control deals combat damage to a player, you may sacrifice it. When you do, choose one —” ```json {"effect":"reflexiveTrigger","effects":[],"modes":[{"label":"Draw a card","effects":[{"effect":"drawCards","who":"you","amount":1}]},{"label":"Create a Treasure token","effects":[{"effect":"createToken","who":"you","token":{"name":"Treasure","tokenDefId":"token-treasure"},"amount":1}]}],"chooseMin":1,"chooseMax":1} ``` ## Related - [Effects](https://drawstep.xyz/wiki/mtg/effects.md) — the whole topic - [Filters & targets](https://drawstep.xyz/wiki/mtg/targets.md) — how `target` / `filter` select objects and players (selection algebra) - [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