# Drawstep AI pack (Magic) — part 15 of 15: Worked examples > Complete stock cards: Oracle text, the engine's reading, the JSON. Pack index: https://drawstep.xyz/wiki/mtg/pack.md · previous: https://drawstep.xyz/wiki/mtg/pack/cookbook.md · everything in one document: https://drawstep.xyz/wiki/drawstep-mtg-ai-pack.md. Generated from Drawstep's card schema; field names and discriminators are exact. ## Worked examples (Oracle text → JSON) Taken from the stock library; each is a complete, valid card. Defaults (`schemaVersion`, `game`, `source: "stock"`, empty arrays) are omitted for brevity. ### Temptation Witness Oracle text: Engine reads it as: Whenever the Ring tempts you, you gain 2 life. ```json { "id": "iter49-ringwatch", "name": "Temptation Witness", "types": [ "Creature" ], "power": 1, "toughness": 3, "text": "", "abilities": [ { "kind": "triggered", "trigger": { "event": "ringTempted", "by": "you" }, "effects": [ { "effect": "gainLife", "amount": 2 } ] } ] } ``` ### Copy Test Oracle text: Engine reads it as: Copy target spell. You may choose new targets for the copy. ```json { "id": "iter31-copy", "name": "Copy Test", "types": [ "Instant" ], "manaCost": "{U}", "text": "", "abilities": [ { "kind": "spell", "effects": [ { "effect": "copySpell", "target": { "of": "spell", "mode": "chosen" } } ] } ] } ``` ### Filter Aura Oracle text: Enchant permanent Engine reads it as: Enchant permanent ```json { "id": "iter68-aura", "name": "Filter Aura", "types": [ "Enchantment" ], "subtypes": [ "Aura" ], "manaCost": "{0}", "keywordAbilities": [ { "keyword": "enchant", "target": { "of": "object", "mode": "chosen" } } ], "text": "Enchant permanent" } ``` ### Filter Equipment Oracle text: Engine reads it as: Equip {0} ```json { "id": "iter68-equipment", "name": "Filter Equipment", "types": [ "Artifact" ], "subtypes": [ "Equipment" ], "manaCost": "{0}", "keywordAbilities": [ { "keyword": "equip", "cost": { "mana": "{0}" } } ], "text": "" } ``` ### Loyal Walker Witness Oracle text: +1: You gain 1 life. Engine reads it as: +1: You gain 1 life. ```json { "id": "iter108-walker", "name": "Loyal Walker Witness", "supertypes": [ "Legendary" ], "types": [ "Planeswalker" ], "subtypes": [ "Teferi" ], "manaCost": "{0}", "loyalty": 3, "text": "+1: You gain 1 life.", "abilities": [ { "kind": "loyalty", "loyaltyCost": 1, "effects": [ { "effect": "gainLife", "who": "you", "amount": 1 } ] } ] } ``` ### Tale of Three Oracle text: I — Draw a card. II — Put a +1/+1 counter on target creature you control. III — Create a 2/2 green Bear creature token. Engine reads it as: I — Draw a card. · II — Put a +1/+1 counter on target creature you control. · III — Create a 2/2 green Bear creature token. ```json { "id": "tale-of-three", "name": "Tale of Three", "layout": "saga", "types": [ "Enchantment" ], "subtypes": [ "Saga" ], "manaCost": "{2}{G}", "colors": [ "G" ], "text": "I — Draw a card. II — Put a +1/+1 counter on target creature you control. III — Create a 2/2 green Bear creature token.", "abilities": [ { "kind": "triggered", "trigger": { "event": "chapter", "chapter": 1 }, "effects": [ { "effect": "drawCards", "who": "you", "amount": 1 } ] }, { "kind": "triggered", "trigger": { "event": "chapter", "chapter": 2 }, "effects": [ { "effect": "addCounters", "target": { "of": "object", "mode": "chosen", "filter": { "types": [ "Creature" ], "controller": "you" } }, "counter": "+1/+1", "amount": 1 } ] }, { "kind": "triggered", "trigger": { "event": "chapter", "chapter": 3 }, "effects": [ { "effect": "createToken", "who": "you", "token": { "name": "Bear", "types": [ "Creature" ], "subtypes": [ "Bear" ], "colors": [ "G" ], "power": 2, "toughness": 2 }, "amount": 1 } ] } ] } ``` ### Iter62 class Oracle text: Engine reads it as: When Iter62 class becomes level 2, draw two cards. · {0}: Level 2 · {0}: Level 3 ```json { "id": "iter62-class", "name": "Iter62 class", "layout": "class", "types": [ "Enchantment" ], "subtypes": [ "Class" ], "manaCost": "{0}", "text": "", "abilities": [ { "kind": "triggered", "trigger": { "event": "levelGained", "filter": { "self": true }, "level": 2 }, "effects": [ { "effect": "drawCards", "amount": 2 } ] } ], "classLevels": [ { "level": 2, "cost": { "mana": "{0}" } }, { "level": 3, "cost": { "mana": "{0}" } } ] } ``` ### Modal Witness Oracle text: Engine reads it as: Choose up to X — • You gain 2 life. • Each opponent loses 1 life. ```json { "id": "iter49-modal", "name": "Modal Witness", "types": [ "Instant" ], "manaCost": "{X}", "text": "", "abilities": [ { "kind": "spell", "modes": [ { "label": "You gain 2 life", "effects": [ { "effect": "gainLife", "amount": 2 } ] }, { "label": "Each opponent loses 1 life", "effects": [ { "effect": "loseLife", "who": "eachOpponent", "amount": 1 } ] } ], "chooseMin": 0, "chooseMax": { "kind": "var", "name": "X" } } ] } ``` ### Glorious Anthem Oracle text: Creatures you control get +1/+1. Engine reads it as: Creatures you control get +1/+1. ```json { "id": "glorious-anthem", "name": "Glorious Anthem", "types": [ "Enchantment" ], "manaCost": "{1}{W}{W}", "colors": [ "W" ], "text": "Creatures you control get +1/+1.", "abilities": [ { "kind": "static", "effect": { "type": "modifyPT", "to": { "of": "object", "mode": "all", "filter": { "types": [ "Creature" ], "controller": "you" } }, "power": 1, "toughness": 1 } } ] } ``` ### Iter99 Draw Doubler Oracle text: Engine reads it as: If you would draw a card, you draw twice that many cards instead. ```json { "id": "iter99-draw-doubler", "name": "Iter99 Draw Doubler", "types": [ "Enchantment" ], "text": "", "abilities": [ { "kind": "replacement", "replacement": { "replaces": "event", "event": "draw", "toPlayer": "you", "multiply": 2 } } ] } ``` ### Steamflogger Temp Oracle text: {6}, {T}: This creature assembles a Contraption. (Put the top card of your Contraption deck face up onto one of your sprockets.) Engine reads it as: {6}, {T}: Assemble a Contraption. ```json { "id": "steamflogger-temp", "name": "Steamflogger Temp", "types": [ "Creature" ], "subtypes": [ "Goblin", "Rigger" ], "manaCost": "{1}{R}", "colors": [ "R" ], "power": 2, "toughness": 1, "text": "{6}, {T}: This creature assembles a Contraption. (Put the top card of your Contraption deck face up onto one of your sprockets.)", "abilities": [ { "kind": "activated", "cost": { "mana": "{6}", "tapSelf": true }, "effects": [ { "effect": "assembleContraption", "who": "you" } ] } ] } ``` ### Event Probe treasures Oracle text: Engine reads it as: Create two Treasure tokens. ```json { "id": "iter37-treasures", "name": "Event Probe treasures", "types": [ "Instant" ], "manaCost": "{0}", "text": "", "abilities": [ { "kind": "spell", "effects": [ { "effect": "createToken", "token": { "name": "Treasure", "tokenDefId": "token-treasure" }, "amount": 2 } ] } ] } ```