Madness cards (working without tokens)

For all your questions regarding Image Card Coding.
Please read the Image Posting Guideline & Index before posting in this forum.
Forum rules
DO NOT POST BUG REPORT IN THIS FORUM !!

Please read carefully the forum rules related to the card coding section : viewtopic.php?f=21&t=1545

All post will be edited to follow forum rules.
Post Reply
dber
Posts: 68
Joined: Sun Jan 08, 2012 4:28 am

Madness cards (working without tokens)

Post by dber »

Basking rootwalla

Code: Select all

[card]
name=Basking Rootwalla
auto={1}{G}:2/2
autograveyard=@movedTo(this|mygraveyard) from(myhand): may pay({0}) name(Madness) moveto(mybattlefield)
text={1}{G}: Basking Rootwalla gets +2/+2 until end of turn. Activate this ability only once each turn. -- Madness {0} (If you discard this card, you may cast it for its madness cost instead of putting it into your graveyard.)
mana={G}
type=Creature
subtype=Lizard
power=1
toughness=1
[/card]
Grave Scrabbler

Code: Select all

[card]
name=Grave Scrabbler
autograveyard=@movedTo(this|mygraveyard) from(myhand): may pay({1}{B}) name(Madness) moveto(mybattlefield) && target(creature|myGraveyard) moveTo(myHand)
text=Madness {1}{B} (If you discard this card, you may cast it for its madness cost instead of putting it into your graveyard.) -- When Grave Scrabbler enters the battlefield, if its madness cost was paid, you may return target creature card in a graveyard to its owner's hand.
mana={3}{B}
type=Creature
subtype=Zombie
power=2
toughness=2
[/card]
Gorgon Recluse

Code: Select all

[card]
name=Gorgon Recluse
autograveyard=@movedTo(this|mygraveyard) from(myhand): may pay({B}{B}) name(Madness) moveto(mybattlefield)
auto=@combat(blocking,blocked) source(this) from(creature[-black]):all(trigger[from]) phaseaction[combatends once] destroy
text=Whenever Gorgon Recluse blocks or becomes blocked by a nonblack creature, destroy that creature at end of combat. -- Madness {B}{B} (If you discard this card, you may cast it for its madness cost instead of putting it into your graveyard.)
mana={3}{B}{B}
type=Creature
subtype=Gorgon
power=2
toughness=4
[/card]
#How to use it? Simple
1. A spell makes you discard
2. As a response, press (X) and gain the enough mana, then click the targetted madness card and it will do the madness.

#Possible errors = the game can stop at end of turn, I don't know why that happens. hELP! (I think that's because the "autocard" abilities have much errors)
dber
Posts: 68
Joined: Sun Jan 08, 2012 4:28 am

Re: Madness cards (working without tokens)

Post by dber »

I've seen that the "pay" effect makes errors (to stop the game). So to avoid the previous errors, here is the implementation using tokens

Code: Select all

[card]
name=Basking Rootwalla
auto={1}{G}:2/2
autograveyard=@movedTo(this|mygraveyard) from(myhand): token(-66164661)
#autograveyard=@movedTo(this|mygraveyard) from(myhand): may pay({0}) name(Madness) moveto(mybattlefield)
text={1}{G}: Basking Rootwalla gets +2/+2 until end of turn. Activate this ability only once each turn. -- Madness {0} (If you discard this card, you may cast it for its madness cost instead of putting it into your graveyard.)
mana={G}
type=Creature
subtype=Lizard
power=1
toughness=1
[/card]

[card]
name=Basking Rootwalla Madness
id=-66164661
auto={0}:moveto(mybattlefield) target(basking rootwalla|mygraveyard) && moveto(exile) all(this)
auto=@next mybeforenextturn: moveto(exile) all(this)
type=nothing
[/card]

Code: Select all

[card]
name=Grave Scrabbler
autograveyard=@movedTo(this|mygraveyard) from(myhand): token(-66164662)
#autograveyard=@movedTo(this|mygraveyard) from(myhand): may pay({1}{B}) name(Madness) moveto(mybattlefield)
text=Madness {1}{B} (If you discard this card, you may cast it for its madness cost instead of putting it into your graveyard.) -- When Grave Scrabbler enters the battlefield, if its madness cost was paid, you may return target creature card in a graveyard to its owner's hand.
mana={3}{B}
type=Creature
subtype=Zombie
power=2
toughness=2
[/card]

[card]
name=Grave Scrabbler Madness
id=-66164662
auto={1}{B}:moveto(mybattlefield) target(grave scrabbler|mygraveyard) && moveto(exile) all(this)
auto=@next mybeforenextturn: moveto(exile) all(this)
type=nothing
[/card]

Code: Select all

[card]
name=Gorgon Recluse
autograveyard=@movedTo(this|mygraveyard) from(myhand): token(-66164663)
#autograveyard=@movedTo(this|mygraveyard) from(myhand): may pay({B}{B}) name(Madness) moveto(mybattlefield)
auto=@combat(blocking,blocked) source(this) from(creature[-black]):all(trigger[from]) phaseaction[combatends once] destroy
text=Whenever Gorgon Recluse blocks or becomes blocked by a nonblack creature, destroy that creature at end of combat. -- Madness {B}{B} (If you discard this card, you may cast it for its madness cost instead of putting it into your graveyard.)
mana={3}{B}{B}
type=Creature
subtype=Gorgon
power=2
toughness=4
[/card]

[card]
name=Gorgon Recluse Madness
id=-66164663
auto={B}{B}:moveto(mybattlefield) target(gorgon recluse|mygraveyard) && moveto(exile) all(this)
auto=@next mybeforenextturn: moveto(exile) all(this)
type=nothing
[/card]

KF1
Posts: 1952
Joined: Tue Apr 06, 2010 7:04 pm

Re: Madness cards (working without tokens)

Post by KF1 »

Wow! This is great. One of the biggest headaches for the developers had been token work arounds not working after WTH upgrades.

I can't wait to try this out.

Thank you for sharing this with us.
Post Reply