# Drawstep engine · Triggers · `playerLost` > Player lost — Whenever a player (`by`) loses the game, for any reason, seen after they have left a game that goes on (CR 104.3, 800.4a): "whenever a player / an opponent loses the game". A subject read through the source ("when enchanted player loses the game") is `lostGame`. 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#playerLost ## Where it goes The `trigger` of a triggered ability: `{ "kind": "triggered", "trigger": { "event": "playerLost", … }, "effects": [ … ] }`. The common trigger fields (`filter`, `by`, `other`, `condition`, `damageKind`, `oneOrMore` …) are on the triggers page. ## Fields No fields besides the discriminator. ## Stock examples - **Mourning Witness** — “Whenever a player loses the game, put five +1/+1 counters on this creature.” ```json {"event":"playerLost","by":"any"} ``` - **Share the Spoils** — “When this enchantment enters and whenever an opponent loses the game, exile the top card of each player's library.” ```json {"event":"playerLost","by":"opponent"} ``` ## 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