Snapcaster Mage + Cruel Ultimatum

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.

Snapcaster Mage + Cruel Ultimatum

Postby Knetopus » Tue Jun 19, 2012 1:30 pm

Advertising
Hey everyone I'm new to this, and I enjoy Wagic a lot, but there are so many cards missing and that's why I want to learn a bit about coding and so on and try to code some cards I feel missing.

One of these cards is Snapcaster Mage, a card that finds it's way into every blue deck nowadays.
Since it is such an essential card I find it quite puzzling no one made the attempt to code it.

This is what I've got and I haven't tested it yet but I'm sure it doesn't work:

[card]
name=Snapcaster Mage
abilities=flash
auto=may flashback(mygraveyard) target(instant,sorcery|mygraveyard)
text= Flash
When Snapcaster Mage enters the battlefield, target instant or sorcery card in your graveyard gains flashback until end of turn. The flashback cost is equal to its mana cost. (You may cast that card from your graveyard for its flashback cost. Then exile it.)
mana={1}{U}
type=Creature
subtype=Human Wizard
power=2
toughness=1
[/card]

My reasoning is the following:
Even if magic identifies the line "may flashback card in GY" it doesn't provide information about how much the card costs.
My Idea for this can be found in another code:

[card]
name=Yawgmoth's Will
auto=counter(0/0,1,hand) all(*|myhand)
auto=token(-11122351)
auto=moveto(myhand) all(*|mygraveyard) && moveto(exile) all(this)
text=Until end of turn, you may play cards from your graveyard. -- If a card would be put into your graveyard from anywhere this turn, exile that card instead.
mana={2}{B}
type=Sorcery
[/card]

It's not fully correct since it removes all the cards in my hand (I tested it) at the end of turn.
So all that needs to be done is make Snapcaster Mage something like this:

- Return the target card to your hand with a 1 on it, give all other cards a 0 like Goblin Ringleader from Apocalypse.
- at the end of turn remove the card from your hand if you didn't play it
- remove the card from the game when you play it.

I don't know how to do that, but maybe I figure it out. Nevertheless, maybe someone of you guy/galls might be able to code it that way.


The next card i'm trying to create is Cruel Ultimatum, with the little restriction of letting the opponent chose at random, because let's face it... the AI does so many stupid things what does it matter if he sacrifices cards at random, it might even be better for him or sometimes.
Last edited by Knetopus on Thu Jun 21, 2012 10:29 am, edited 1 time in total.
Knetopus
 
Posts: 2
Joined: Tue Jun 19, 2012 1:16 pm

Re: Snapcaster Mage

Postby wthplayer » Wed Jun 20, 2012 9:32 am

Hi,

You may use this workaround. The card goes to your hand (discarded after end of turn) but it will not exile if you cast it:

Code: Select all
[card]
name=Snapcaster Mage
abilities=flash
auto=may target(instant,sorcery|mygraveyard) transforms((,newability[moveTo(myhand)],newability[phaseaction[endofturn once] moveTo(mygraveyard)])) ueot
text=Flash -- When Snapcaster Mage enters the battlefield, target instant or sorcery card in your graveyard gains flashback until end of turn. The flashback cost is equal to its mana cost. (You may cast that card from your graveyard for its flashback cost. Then exile it.)
mana={1}{U}
type=Creature
subtype=Human Wizard
power=2
toughness=1
[/card]
wthplayer
 
Posts: 3
Joined: Mon Jun 04, 2012 11:38 am

Re: Snapcaster Mage

Postby Knetopus » Thu Jun 21, 2012 5:40 am

Wow thanks!

maybe i can make it so it will be removed from play instead.
But this is a basis I can work on, thank you so much!
I#ll go and try it out now, and then I'll edit later if it worked.

€dit:

Snapcaster Mage works fine. Now all I need to figure out is how the card is exiled instead of being put back to your GY.

Meanwhile I'm working on Cruel Ultimatum and Wildfire.

While Wildfire is quite hard because opponent cannot chose, especially for multiple targets that are not creatures. So I try to build it like "destroy 4 target lands" and yeah it's kinda better that way, but the opponent will never make a smart decision anyways...

[edit2]: Here is the code anyways:
[card]
name=Wildfire
auto={S(land|mybattlefield)}{S(land|mybattlefield)}{S(land|mybattlefield)}{S(land|mybattlefield)}: destroy target<4>(land)
auto=damage:4 all(creature)
text=Each player sacrifices four lands. Wildfire deals 4 damage to each creature.
mana={4}{R}{R}
type=Sorcery
[/card]

Cruel Ultimatum shouldn't be such a problem... but it doesn't work the way it is right now.

[card]
name=Cruel Ultimatum
auto=token(-19193571) opponent
target=player
auto=ability$!name(discard 3 cards) target(<3>*|myhand) reject!$ targetedplayer
target=player
auto=life:-5
auto=life:5 controller
auto=draw:3
target=creature|myGraveyard
auto=moveTo(myHand)
text=Target opponent sacrifices a creature, discards three cards, then loses 5 life. You return a creature card from your graveyard to your hand, draw three cards, then gain 5 life.
mana={U}{U}{B}{B}{B}{R}{R}
type=Sorcery
[/card]

I guess it is because of the many "auto" Lines. I don't know how to make it all in one of at least fewer auto lines.
There must be a way that everything that targets the opponent is just one: auto=
and everything that is me as well.
Knetopus
 
Posts: 2
Joined: Tue Jun 19, 2012 1:16 pm

Re: Snapcaster Mage + Cruel Ultimatum

Postby sandman423 » Fri Jul 27, 2012 11:18 pm

How do you get Cruel Ultimatum to work?

I can cast it and when I try to select me or Opponent it doesn't work...I even tried switching phases...

Please make this work.
sandman423
 
Posts: 462
Joined: Thu Sep 10, 2009 8:59 pm

Advertising


Return to Card Coding

Who is online

Users browsing this forum: No registered users and 1 guest