# Drawstep engine · Effects · `setLife` > Set life — CR 119.5: gain/lose the difference to set a life total, with replacements and triggers. 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#setLife ## Where it goes One step of an ability's `effects[]` (a spell's, a trigger's, an activated ability's, a mode's): `{ "effect": "setLife", … }`. Steps resolve in order. ## Fields | Field | Type | Required | Description | |---|---|---|---| | `who` | `"you" \| "controller" \| "abilityController" \| "sourceController" \| "owner" \| "eachOpponent" \| "eachPlayer" \| "target" \| "triggeringPlayer" \| "defendingPlayer" \| "attackingPlayer" \| "activePlayer" \| "re …` | no | Which player(s) — a player selector (default `you`) | | `target` | `TargetDef` | no | What it acts on (TargetDef) | | `amount` | `ValueDef` | yes | How many / how much (integer or ValueDef) | ## Minimal form ```json {"effect":"setLife","amount":1} ``` The engine reads that minimal form as: “your life total becomes 1”. ## Stock examples - **Ten Life** — “Each player's life total becomes 10.” ```json {"effect":"setLife","who":"eachPlayer","amount":10} ``` - **Blessed Wind** — “Target player's life total becomes 20.” ```json {"effect":"setLife","who":"target","target":{"of":"player","mode":"chosen"},"amount":20} ``` - **Highest Life** — “Your life total becomes the highest life total among your opponents.” ```json {"effect":"setLife","who":"you","amount":{"kind":"lifeTotal","of":"highest","among":"opponents"}} ``` ## 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