# Drawstep engine · Costs · index > Every costs primitive (51), one line each; each name links to its page with all its fields, its minimal form and stock examples. The whole topic in one page: https://drawstep.xyz/wiki/mtg/costs.md. - [`oneOf`](https://drawstep.xyz/wiki/mtg/costs/oneOf.md) — Announce one alternative payment for this cost (CR 118.9, 601.2b). Use this field alone; each branch is a complete cost. - [`chooseX`](https://drawstep.xyz/wiki/mtg/costs/chooseX.md) — CR 107.3b, 601.2b: bounds on announced X. Evaluate max before paying costs, independently of affordability. - [`mana`](https://drawstep.xyz/wiki/mtg/costs/mana.md) — Mana cost string, e.g. {2}{R}. - [`ownManaCost`](https://drawstep.xyz/wiki/mtg/costs/ownManaCost.md) — "Pay its mana cost" (CR 118.12, 202.3): the source's own mana cost, read as the payment is made; a source with no mana cost can't pay it (CR 118.6). - [`genericAmount`](https://drawstep.xyz/wiki/mtg/costs/genericAmount.md) — Computed generic mana added to mana, fixed when a resolution-time cost is paid: "unless you pay {1} for each card in your hand" (CR 107.3, 608.2h). - [`tapSelf`](https://drawstep.xyz/wiki/mtg/costs/tapSelf.md) — {T}. - [`untapSelf`](https://drawstep.xyz/wiki/mtg/costs/untapSelf.md) — {Q}. - [`unattachSelf`](https://drawstep.xyz/wiki/mtg/costs/unattachSelf.md) — CR 701.3d, 118.11, 601.2h: unattach this permanent as payment; an unattached permanent cannot pay this cost. - [`payLife`](https://drawstep.xyz/wiki/mtg/costs/payLife.md) — Pay this much life; { kind: "var", name: "X" } for "pay X life" (X is announced as the spell is cast). - [`getPoison`](https://drawstep.xyz/wiki/mtg/costs/getPoison.md) — The payer gets this many poison counters as the payment: "Ward—Get five poison counters" (The Serpent Society; CR 702.21a, 118.11). - [`othersGainLife`](https://drawstep.xyz/wiki/mtg/costs/othersGainLife.md) — CR 118.3, 118.9: other players gain life as payment — "you may have an opponent gain 3 life" (anOpponent: the payer chooses one), "have each other player gain 6 life" … - [`draw`](https://drawstep.xyz/wiki/mtg/costs/draw.md) — CR 121.1, 118.11, 702.24a: draw this many cards as payment ("Cumulative upkeep—Draw a card"). - [`addMana`](https://drawstep.xyz/wiki/mtg/costs/addMana.md) — CR 106.1, 118.11, 702.24a: add this mana to your mana pool as payment ("Cumulative upkeep—Add {R}"). - [`opponentCreatesToken`](https://drawstep.xyz/wiki/mtg/costs/opponentCreatesToken.md) — CR 118.11, 111.1, 702.24a: an opponent the payer chooses creates this many tokens as payment ("Cumulative upkeep—Have an opponent create a 1/1 red Survivor creature token"). - [`opponentCounter`](https://drawstep.xyz/wiki/mtg/costs/opponentCounter.md) — CR 118.11, 122.1, 702.24a: put counters on a creature an opponent controls, chosen by the payer, as payment ("Cumulative upkeep—Put a +1/+1 counter on a creature an opponent … - [`damageFromSource`](https://drawstep.xyz/wiki/mtg/costs/damageFromSource.md) — CR 118.12, 120.3: punisher payment "unless its controller has ~ deal 6 damage to them" — the source (last known information) deals this much damage to the payer as the payment; … - [`sacrificeSelf`](https://drawstep.xyz/wiki/mtg/costs/sacrificeSelf.md) — Sacrifice the source ("Sacrifice ~"). - [`sacrificeTogether`](https://drawstep.xyz/wiki/mtg/costs/sacrificeTogether.md) — CR 118.10, 601.2h: sacrifice one distinct controlled permanent for each filter, simultaneously; one Swamp Forest cannot pay both requirements. - [`sacrifice`](https://drawstep.xyz/wiki/mtg/costs/sacrifice.md) — Sacrifice another permanent matching this ("sacrifice X creatures": min / max = X). - [`returnToHand`](https://drawstep.xyz/wiki/mtg/costs/returnToHand.md) — Return matching permanents you control to their owners' hands as a cost; selection does not target (CR 118.11, 601.2h). - [`discard`](https://drawstep.xyz/wiki/mtg/costs/discard.md) — Discard this many cards; { kind: "var", name: "X" } for "discard X cards". - [`discardRandom`](https://drawstep.xyz/wiki/mtg/costs/discardRandom.md) — Discard the required cards at random as a cost (CR 701.9b, 118.11). - [`reveal`](https://drawstep.xyz/wiki/mtg/costs/reveal.md) — Reveal one matching card from your hand as a cost; it remains in hand (CR 701.20a, 118.11). - [`revealCards`](https://drawstep.xyz/wiki/mtg/costs/revealCards.md) — Reveal this many matching cards from your hand as a cost; they remain in hand (CR 701.20a, 118.11, 601.2h). "Reveal X blue cards from your hand" (count X); "Reveal two cards … - [`discardHand`](https://drawstep.xyz/wiki/mtg/costs/discardHand.md) — Discard your hand. - [`discardSelf`](https://drawstep.xyz/wiki/mtg/costs/discardSelf.md) — Discard this card (transmute). - [`addCountersSelf`](https://drawstep.xyz/wiki/mtg/costs/addCountersSelf.md) — CR 118.11, 122.1, 601.2h: put counters on this permanent to pay a cost; apply counter replacement effects. - [`removeCounters`](https://drawstep.xyz/wiki/mtg/costs/removeCounters.md) — Remove counters as payment without targeting; omitted counter permits any kinds, from distributes among controlled permanents (CR 122.1, 601.2h). - [`mill`](https://drawstep.xyz/wiki/mtg/costs/mill.md) — Mill this many cards as payment; requires enough cards in the library (CR 701.17, 601.2h). - [`exertSelf`](https://drawstep.xyz/wiki/mtg/costs/exertSelf.md) — Exert the source as a cost; skip the exerting player's next untap step (CR 701.43). - [`revealSelf`](https://drawstep.xyz/wiki/mtg/costs/revealSelf.md) — Reveal this card from hand as a cost (CR 701.20, 602.2a). - [`revealChoice`](https://drawstep.xyz/wiki/mtg/costs/revealChoice.md) — CR 101.4, 607.2d: "Reveal the player you chose:" — reveal the value secretly chosen for this source; payable only while that secret choice is recorded. true reveals the … - [`tapOthers`](https://drawstep.xyz/wiki/mtg/costs/tapOthers.md) — Tap matching untapped controlled permanents as payment (CR 118.11, 601.2h). - [`untapOthers`](https://drawstep.xyz/wiki/mtg/costs/untapOthers.md) — CR 118.11, 601.2h: choose this many tapped controlled permanents without targeting and untap them as payment. Untap replacement effects still apply. - [`exileSelfFromGraveyard`](https://drawstep.xyz/wiki/mtg/costs/exileSelfFromGraveyard.md) — Exile the source from your graveyard (abilities activated from the graveyard). - [`exileGraveyard`](https://drawstep.xyz/wiki/mtg/costs/exileGraveyard.md) — CR 118.12, 406.1: exile every card in the payer's graveyard ("unless its controller exiles all cards from their graveyard"); payable even when it is empty. - [`exileTop`](https://drawstep.xyz/wiki/mtg/costs/exileTop.md) — CR 401.2, 118.12: exile this many cards from the top of your library as payment ("Exile the top card of your library: …"); payable only with that many cards in the library. - [`payCounters`](https://drawstep.xyz/wiki/mtg/costs/payCounters.md) — Pay player counters: "Pay {E}{E}" → counter "energy", amount 2. - [`exileOthers`](https://drawstep.xyz/wiki/mtg/costs/exileOthers.md) — Exile other cards from the zones (escape, craft, "exile a card from your hand", "exile X cards from your graveyard": count = X). - [`moveCards`](https://drawstep.xyz/wiki/mtg/costs/moveCards.md) — CR 118.12, 400.1: move cards you own between your zones as a payment — "return a basic land card from your graveyard to your hand", "put a card from your graveyard on the … - [`exileSelf`](https://drawstep.xyz/wiki/mtg/costs/exileSelf.md) — Exile this object from wherever it is ("Exile ~: …"). - [`collectEvidence`](https://drawstep.xyz/wiki/mtg/costs/collectEvidence.md) — Collect evidence N: exile cards with total mana value N+ from your graveyard. - [`forage`](https://drawstep.xyz/wiki/mtg/costs/forage.md) — Forage: exile three cards from your graveyard or sacrifice a Food. - [`behold`](https://drawstep.xyz/wiki/mtg/costs/behold.md) — Behold a : choose one you control or reveal one from your hand. - [`returnUnblockedAttacker`](https://drawstep.xyz/wiki/mtg/costs/returnUnblockedAttacker.md) — Return an unblocked attacker you control to hand (ninjutsu). - [`discardMatching`](https://drawstep.xyz/wiki/mtg/costs/discardMatching.md) — Discard a card matching the filter (retrace: a land card). - [`linkedToGraveyard`](https://drawstep.xyz/wiki/mtg/costs/linkedToGraveyard.md) — CR 607.2a, 602.2b: put a card exiled with the source that matches this filter into its owner's graveyard ({} = any such card): "Put a creature card exiled with Shelob into its … - [`blight`](https://drawstep.xyz/wiki/mtg/costs/blight.md) — Put N -1/-1 counters on a creature you control. - [`waterbend`](https://drawstep.xyz/wiki/mtg/costs/waterbend.md) — Waterbend: artifacts and creatures you control may be tapped to pay {1} each of the mana. - [`xManaColor`](https://drawstep.xyz/wiki/mtg/costs/xManaColor.md) — CR 107.3: "Spend only black mana on X" — each {X} in `mana` is paid with mana of this colour. - [`manaColor`](https://drawstep.xyz/wiki/mtg/costs/manaColor.md) — CR 106.6, 602.2b: "Spend only mana of the chosen color to activate this ability" — all mana spent on this cost (generic and increases included) must be of this colour; chosen = …