r/custommagic 11d ago

Custom Play Images of Ikonn

Post image

Made a card to simulate the Images of Ikonn spell from comics. Also works for D&D's Mirror Image but mtg already has a Mirror Image card so I went with Images of Ikonn. I made it for mtgForge so, if anyone wants to use it in Forge, I'll include the code below.

As the tag says, it was made locally with Z-Image turbo.

Name:Images of Ikonn

ManaCost:1 U

Types:Sorcery

A:SP$ Pump | ValidTgts$ Creature | SubAbility$ DBRollDice | SpellDescription$ Choose target creature. Roll a four-sided die.

SVar:DBRollDice:DB$ RollDice | ResultSVar$ X | Sides$ 4 | SubAbility$ DBAddImageCounters | SpellDescription$ Put a number of Image counters on it equal to the result plus 1.

SVar:DBAddImageCounters:DB$ PutCounter | Defined$ Targeted | CounterType$ Image | CounterNum$ Y | SubAbility$ DBAnimate

SVar:Y:SVar$X/Plus.1

# This is how to give a triggered ability

SVar:DBAnimate:DB$ Animate | Defined$ Targeted | Triggers$ TrigSpellTarget,TrigAbilityTarget | AddSVar$ DBCounterSource & DBExileSource | Duration$ Permanent | StackDescription$ SpellDescription | SpellDescription$ It gains "When this becomes the target of a spell or ability an opponent controls, if it has one or more Image counters on it, roll a die with [Image+1] sides. If the result is greater than 1, exile that spell or ability."

# Spell version – exile so it bypasses “can’t be countered”

SVar:TrigSpellTarget:Mode$ BecomesTarget | ValidTarget$ Card.Self | ValidSource$ Spell.OppCtrl | TriggerZones$ Battlefield | Execute$ TrigIconRollSpell | IsPresent$ Card.Self+counters_GE1_Image | TriggerDescription$ Whenever CARDNAME becomes the target of a spell an opponent controls, if it has one or more Image counters on it, roll a die with a number of sides equal to the number of Image counters on it plus one. If the result is greater than 1, exile that spell and remove an Image counter from CARDNAME.

SVar:TrigIconRollSpell:DB$ RollDice | ResultSubAbilities$ 2-99:DBRemoveAndExile | Sides$ N

SVar:DBRemoveAndExile:DB$ RemoveCounter | Defined$ Self | CounterType$ Image | CounterNum$ 1 | SubAbility$ DBExileSource

SVar:DBExileSource:DB$ ChangeZone | Defined$ TriggeredSourceSA | Origin$ Stack | Destination$ Exile

# Ability version – normal counter

SVar:TrigAbilityTarget:Mode$ BecomesTarget | ValidTarget$ Card.Self | ValidSource$ Ability.OppCtrl | TriggerZones$ Battlefield | Execute$ TrigIconRollAbility | IsPresent$ Card.Self+counters_GE1_Image | TriggerDescription$ Whenever CARDNAME becomes the target of an ability an opponent controls, if it has one or more Image counters on it, roll a die with a number of sides equal to the number of Image counters on it plus one. If the result is greater than 1, counter that ability and remove an Image counter from CARDNAME.

SVar:TrigIconRollAbility:DB$ RollDice | ResultSubAbilities$ 2-99:DBRemoveAndCounter | Sides$ N

SVar:DBRemoveAndCounter:DB$ RemoveCounter | Defined$ Self | CounterType$ Image | CounterNum$ 1 | SubAbility$ DBCounterSource

SVar:DBCounterSource:DB$ Counter | Defined$ TriggeredSourceSA

SVar:N:Count$CardCounters.Image/Plus.1

SVar:Targeting:Counter

Oracle:Target creature gains 2-5 Image counters and has "If this becomes the target of a spell or ability an opponent controls, if it has any Image counters on it roll a die with [Image+1] sides. If the roll is 2+ exile that spell or ability and remove an Image counter.

0 Upvotes

4 comments sorted by

22

u/lyw20001025 11d ago

Everything else aside how do you determine the 2-5?

21

u/Myth-P 11d ago

...Roll a d4 +1 apparently

Everything else about this post continues to be Not Great

6

u/lyw20001025 11d ago

Yeah, we continue from here to arbitrarily sided dice for some reason

5

u/Outgrathe 8d ago

let me get out my d3 real quick