# Drawstep engine · Effects · `noteValue` > Note value — CR 107.3, 608.2h: snapshot value under key (default number) for later noted references; local restricts numeric storage to the resolution. 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#noteValue ## Where it goes One step of an ability's `effects[]` (a spell's, a trigger's, an activated ability's, a mode's): `{ "effect": "noteValue", … }`. Steps resolve in order. ## Fields | Field | Type | Required | Description | |---|---|---|---| | `target` | `TargetDef` | no | What it acts on (TargetDef) | | `key` | `string` | no | Storage key of a noted value or choice (defaults to the choice's kind) | | `value` | `ValueDef` | no | The value to store or compare | | `local` | `boolean` | no | CR 608.2h: store numeric value only in this resolution's variables, inherited by delayed effects; do not persist on the source | | `chooseCardName` | `boolean` | no | The noted value is a card name chosen as it resolves | | `chooseColor` | `boolean` | no | The noted value is a color chosen as it resolves | ## Minimal form ```json {"effect":"noteValue"} ``` The engine reads that minimal form as: “note ?”. ## Stock examples - **Token Snapshot** — “” ```json {"effect":"noteValue","key":"__X","value":{"kind":"math","op":"/","a":{"kind":"lifeTotal","who":"you"},"b":2,"round":"up"}} ``` - **Incubation Snapshot** — “Incubate X twice, where X is the number of lands you control.” ```json {"effect":"noteValue","key":"__X","value":{"kind":"count","filter":{"types":["Land"],"controller":"you"}},"local":true} ``` - **Gnostro, Voice of the Crags** — “{T}: Choose one. X is the number of spells you've cast this turn.” ```json {"effect":"noteValue","key":"__X","value":{"kind":"thisTurn","event":"spellsCast","who":"you"},"local":true} ``` ## 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 - [Start here](https://drawstep.xyz/wiki/mtg/start.md) — the rules, the output contract and the index of every primitive