# Drawstep engine · Triggers · `doorUnlocked` > Door unlocked — Whenever a door of a Room is unlocked (`thisDoor` for the half printing the ability). 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#doorUnlocked ## Where it goes The `trigger` of a triggered ability: `{ "kind": "triggered", "trigger": { "event": "doorUnlocked", … }, "effects": [ … ] }`. The common trigger fields (`filter`, `by`, `other`, `condition`, `damageKind`, `oneOrMore` …) are on the triggers page. ## Fields No fields besides the discriminator. ## Stock examples - **Derelict Attic** — “When you unlock this door, you draw two cards and you lose 2 life.” ```json {"event":"doorUnlocked","thisDoor":true} ``` - **Grand Entryway** — “When you unlock this door, create a 1/1 white Glimmer enchantment creature token.” ```json {"event":"doorUnlocked","thisDoor":true} ``` - **Meat Locker** — “When you unlock this door, tap up to one target creature and put two stun counters on it.” ```json {"event":"doorUnlocked","thisDoor":true} ``` ## 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