# Drawstep engine · Values · index > Every values primitive (59), 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/values.md. - [`var`](https://drawstep.xyz/wiki/mtg/values/var.md) — e.g. “Token”. - [`count`](https://drawstep.xyz/wiki/mtg/values/count.md) — e.g. “the number of permanents on the battlefield”. - [`doneThisWay`](https://drawstep.xyz/wiki/mtg/values/doneThisWay.md) — Number of successful earlier actions; filter uses action-time characteristics, including tokens (CR 609.3, 608.2h). - [`playerAggregate`](https://drawstep.xyz/wiki/mtg/values/playerAggregate.md) — CR 107.1, 608.2h: greatest/least value among players (default eachPlayer). Bind current separately for each player without rebinding you; empty set yields zero. - [`triggerAmount`](https://drawstep.xyz/wiki/mtg/values/triggerAmount.md) — CR 603.2, 608.2h: recorded amount of the event that caused the trigger; damage is the amount actually dealt after prevention. - [`triggeringCount`](https://drawstep.xyz/wiki/mtg/values/triggeringCount.md) — CR 603.2c: number of distinct objects in the triggering event (oneOrMore, or youAttack), fixed when it happened; separate from triggerAmount's damage total. - [`affectedCount`](https://drawstep.xyz/wiki/mtg/values/affectedCount.md) — CR 608.2h: number of objects in the preceding selection of this resolution ("for each creature chosen this way"). - [`devoured`](https://drawstep.xyz/wiki/mtg/values/devoured.md) — CR 702.82a: number of creatures this permanent devoured as it entered (devour); "for each creature it devoured". - [`counterKinds`](https://drawstep.xyz/wiki/mtg/values/counterKinds.md) — CR 122.1: number of different kinds of counter on the permanents matching filter (default: permanents you control); "for each kind of counter among permanents you control". - [`countersAmong`](https://drawstep.xyz/wiki/mtg/values/countersAmong.md) — CR 122.1: the number of counters on the permanents matching filter (default: permanents you control) — of one kind when counter is given, else of every kind; "if there are … - [`costPaid`](https://drawstep.xyz/wiki/mtg/values/costPaid.md) — CR 601.2h, 602.2b, 608.2h: the single object sacrificed, discarded, revealed or exiled (`cost`) to pay this spell or ability; its characteristics are fixed at payment, before … - [`blockers`](https://drawstep.xyz/wiki/mtg/values/blockers.md) — CR 509.1g-h: count creatures currently blocking the source (default) or triggering creature; departed blockers do not count. - [`sourcePower`](https://drawstep.xyz/wiki/mtg/values/sourcePower.md) — e.g. “~'s power”. - [`sourceToughness`](https://drawstep.xyz/wiki/mtg/values/sourceToughness.md) — e.g. “~'s toughness”. - [`intensity`](https://drawstep.xyz/wiki/mtg/values/intensity.md) — The source card's persistent intensity, initialized by startingIntensity; not a counter. - [`affected`](https://drawstep.xyz/wiki/mtg/values/affected.md) — CR 608.2h: a property of the object evaluated by a static, or the preceding single object selection during resolution; a departed battlefield object uses last-known … - [`sacrificed`](https://drawstep.xyz/wiki/mtg/values/sacrificed.md) — CR 601.2h, 602.2b, 608.2h: last-known power, toughness, or mana value of the single object sacrificed as this spell or ability's cost; retained by copies (CR 707.10). - [`countersOnSource`](https://drawstep.xyz/wiki/mtg/values/countersOnSource.md) — e.g. “the number of counters on ~”. - [`activationsThisTurn`](https://drawstep.xyz/wiki/mtg/values/activationsThisTurn.md) — CR 602.2, 608.2h: how many times the resolving activated ability has been activated this turn, counting this activation ("if this ability has been activated four or more times … - [`excessDamageThisWay`](https://drawstep.xyz/wiki/mtg/values/excessDamageThisWay.md) — CR 120.4a: the total damage beyond lethal dealt by this resolution so far ("the amount of excess damage dealt this way"; "if excess damage was dealt this way" compares it with 0). - [`damageDealt`](https://drawstep.xyz/wiki/mtg/values/damageDealt.md) — CR 120.1, 608.2h: damage actually dealt this turn after prevention and replacement, narrowed by recipient, source, kind and combat; "if it was dealt damage this turn" compares … - [`lifeTotal`](https://drawstep.xyz/wiki/mtg/values/lifeTotal.md) — CR 119.1: a selected player life total, or the lowest/highest among players or opponents. - [`chosenNumber`](https://drawstep.xyz/wiki/mtg/values/chosenNumber.md) — Numeric choice in this resolution, falling back to the source choice (CR 608.2d). - [`votes`](https://drawstep.xyz/wiki/mtg/values/votes.md) — CR 701.38: votes cast in the latest vote of this resolution, for an option or received by a player. - [`ringTemptations`](https://drawstep.xyz/wiki/mtg/values/ringTemptations.md) — CR 701.64 (formerly 701.52): times the Ring has tempted this player. - [`playerCounters`](https://drawstep.xyz/wiki/mtg/values/playerCounters.md) — Counters a player has: "energy" ({E}), "experience", "rad", …. - [`unspentMana`](https://drawstep.xyz/wiki/mtg/values/unspentMana.md) — CR 106.4: unspent mana in the players' mana pools ("Omnath gets +1/+1 for each unspent mana you have"). - [`stormCount`](https://drawstep.xyz/wiki/mtg/values/stormCount.md) — Spells cast this turn before the source spell (storm). - [`spellsCastLastTurn`](https://drawstep.xyz/wiki/mtg/values/spellsCastLastTurn.md) — Spells cast during the previous turn — total, or the most by any single player. - [`turnsTaken`](https://drawstep.xyz/wiki/mtg/values/turnsTaken.md) — CR 500.1, 102.1: turns these players have taken this game, counting a current turn of theirs ("unless it's your first, second, or third turn of the game" with isYourTurn, … - [`classLevel`](https://drawstep.xyz/wiki/mtg/values/classLevel.md) — Current level of this Class enchantment. - [`thisTurn`](https://drawstep.xyz/wiki/mtg/values/thisTurn.md) — Turn history: how many times something happened this turn (or last turn), optionally only to objects matching a look-back filter, by a player, or during this combat. - [`cardTypesIn`](https://drawstep.xyz/wiki/mtg/values/cardTypesIn.md) — Number of distinct card types among cards in a zone (delirium). - [`partySize`](https://drawstep.xyz/wiki/mtg/values/partySize.md) — CR 700.8: largest party of distinct controlled creatures, one each of Cleric, Rogue, Warrior and Wizard (0 to 4). - [`domain`](https://drawstep.xyz/wiki/mtg/values/domain.md) — Basic land types among lands you control. - [`unlockedDoors`](https://drawstep.xyz/wiki/mtg/values/unlockedDoors.md) — Unlocked doors among Rooms the player controls (CR 709.5). - [`devotion`](https://drawstep.xyz/wiki/mtg/values/devotion.md) — Devotion to the colors: mana symbols of those colors among permanents you control (chroma: among cards in `zone`). - [`commanderIdentityColors`](https://drawstep.xyz/wiki/mtg/values/commanderIdentityColors.md) — CR 903.4: the number of colors in the player's commanders' color identity (War Room); 0 outside a Commander game. - [`manaSpent`](https://drawstep.xyz/wiki/mtg/values/manaSpent.md) — Mana spent to cast the source spell: total, number of colors (converge), or of one color (adamant); `from` restricts to mana from matching producers (CR 106.3). - [`timesPaid`](https://drawstep.xyz/wiki/mtg/values/timesPaid.md) — How many times an optional additional cost was paid (CR 118.8, 707.10). Cost additional is the generic optionalAdditionalCost; copies retain the payment count. Cost resolution … - [`aggregate`](https://drawstep.xyz/wiki/mtg/values/aggregate.md) — CR 107.1, 608.2h: greatest / least / total power, toughness, mana value or counters among filtered objects in zone (default battlefield), scoped by who. Empty sets give zero. - [`triggering`](https://drawstep.xyz/wiki/mtg/values/triggering.md) — A property of the object that caused the trigger (manaSpent: mana spent to cast the triggering spell; counters: the counters on it, as it last existed on the battlefield once … - [`startingLife`](https://drawstep.xyz/wiki/mtg/values/startingLife.md) — CR 103.3: actual starting life total. - [`poison`](https://drawstep.xyz/wiki/mtg/values/poison.md) — e.g. “the number of poison counters you have”. - [`speed`](https://drawstep.xyz/wiki/mtg/values/speed.md) — A player's speed (0 when they have none). - [`timesMutated`](https://drawstep.xyz/wiki/mtg/values/timesMutated.md) — CR 702.140: number of times the source permanent has mutated (merged creature spells); a new object starts at zero (CR 400.7). - [`commanderTax`](https://drawstep.xyz/wiki/mtg/values/commanderTax.md) — CR 903.8: highest commander tax ({2} per previous command-zone cast) among the player's commanders. - [`commanderCasts`](https://drawstep.xyz/wiki/mtg/values/commanderCasts.md) — CR 903.8: times the player cast their commander from the command zone this game. - [`noted`](https://drawstep.xyz/wiki/mtg/values/noted.md) — A value noted earlier by noteValue. - [`maxSameName`](https://drawstep.xyz/wiki/mtg/values/maxSameName.md) — CR 201.2a, 608.2h: largest number of matching battlefield permanents sharing a name. Face-down and nameless permanents contribute nothing. - [`distinct`](https://drawstep.xyz/wiki/mtg/values/distinct.md) — Number of different values of a property among matching objects (coven); cardType counts card types (CR 205.2a). - [`dieResult`](https://drawstep.xyz/wiki/mtg/values/dieResult.md) — Result of the most recent die roll; with several dice: their total, the highest, the lowest, the number of different results, or the chosen / other result of rollDie.chooseResult. - [`handSize`](https://drawstep.xyz/wiki/mtg/values/handSize.md) — e.g. “the number of cards in your hand”. - [`sharedCreatureTypeMax`](https://drawstep.xyz/wiki/mtg/values/sharedCreatureTypeMax.md) — The greatest number of creatures a player controls that have a creature type in common (CR 205.3m, 107.1); zero with none. - [`targetsChosen`](https://drawstep.xyz/wiki/mtg/values/targetsChosen.md) — Number of targets chosen for this spell/ability. - [`replaced`](https://drawstep.xyz/wiki/mtg/values/replaced.md) — Inside a replacement effect: the amount of the replaced event ("that much damage", "that many counters") or the damage it prevented ("the damage prevented this way"). - [`math`](https://drawstep.xyz/wiki/mtg/values/math.md) — CR 107.1-107.3, 608.2h: recursive arithmetic: add (+), subtract (-), multiply (*) including twice X, divide (/) with round up/down (default down; zero divisor gives zero), or … - [`native`](https://drawstep.xyz/wiki/mtg/values/native.md) — A number computed by the engine. Engine-implemented node: `id` names an implementation the game module registers; cards contain no code, and an id the running engine doesn't … - [`asCast`](https://drawstep.xyz/wiki/mtg/values/asCast.md) — CR 601.2i, 608.2h: the inner value as it stood when this spell became cast ("where X is the number of creatures on the battlefield as you cast this spell"); recorded as casting …