Show and Tell, Mishra's Workshop, Time Vault finally working

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.
Garrafa
Posts: 15
Joined: Tue Nov 08, 2011 1:50 am

Show and Tell, Mishra's Workshop, Time Vault finally working

Post by Garrafa »

I worked on these 3 cards and they're almost 100% working!
Show and tell works fine, when you play it, you may choose between "put artifact in play", "put creature in play", "put enchantment in play" or "put land in play". I don't know how to get rid of the "ability" options though.


[card]
name=Show and Tell
auto=if type(artifact|hand)~morethan~0 then if type(artifact|opponenthand)~lessthan~1 then ability$!name(put in play) notatarget(artifact|myhand) moveTo(mybattlefield)!$ controller
auto=if type(artifact|hand)~lessthan~1 then if type(artifact|opponenthand)~morethan~0 then ability$!name(put in play) notatarget(artifact|myhand) moveTo(mybattlefield)!$ opponent
auto=if type(artifact|hand)~morethan~0 then if type(artifact|opponenthand)~morethan~0 then name(put in play) choice name(put artifact in play) notatarget(artifact|myhand) transforms((,newability[ability$!name(put in play) notatarget(artifact|myhand) moveTo(mybattlefield)!$ opponent],newability[moveTo(mybattlefield)]))
auto=if type(creature|hand)~morethan~0 then if type(creature|opponenthand)~lessthan~1 then ability$!name(put in play) notatarget(creature|myhand) moveTo(mybattlefield)!$ controller
auto=if type(creature|hand)~lessthan~1 then if type(creature|opponenthand)~morethan~0 then ability$!name(put in play) notatarget(creature|myhand) moveTo(mybattlefield)!$ opponent
auto=if type(creature|hand)~morethan~0 then if type(creature|opponenthand)~morethan~0 then name(put in play) choice name(put creature in play) notatarget(creature|myhand) transforms((,newability[ability$!name(put in play) notatarget(creature|myhand) moveTo(mybattlefield)!$ opponent],newability[moveTo(mybattlefield)]))
auto=if type(enchantment|hand)~morethan~0 then if type(enchantment|opponenthand)~lessthan~1 then ability$!name(put in play) notatarget(enchantment|myhand) moveTo(mybattlefield)!$ controller
auto=if type(enchantment|hand)~lessthan~1 then if type(enchantment|opponenthand)~morethan~0 then ability$!name(put in play) notatarget(enchantment|myhand) moveTo(mybattlefield)!$ opponent
auto=if type(enchantment|hand)~morethan~0 then if type(enchantment|opponenthand)~morethan~0 then name(put in play) choice name(put enchantment in play) notatarget(enchantment|myhand) transforms((,newability[ability$!name(put in play) notatarget(enchantment|myhand) moveTo(mybattlefield)!$ opponent],newability[moveTo(mybattlefield)]))
auto=if type(land|hand)~morethan~0 then if type(land|opponenthand)~lessthan~1 then ability$!name(put in play) notatarget(land|myhand) moveTo(mybattlefield)!$ controller
auto=if type(land|hand)~lessthan~1 then if type(land|opponenthand)~morethan~0 then ability$!name(put in play) notatarget(land|myhand) moveTo(mybattlefield)!$ opponent
auto=if type(land|hand)~morethan~0 then if type(land|opponenthand)~morethan~0 then name(put in play) choice name(put land in play) notatarget(land|myhand) transforms((,newability[ability$!name(put in play) notatarget(land|myhand) moveTo(mybattlefield)!$ opponent],newability[moveTo(mybattlefield)]))
auto=if type(enchantment|hand)~morethan~0 then if type(enchantment|opponenthand)~morethan~0 then name(put in play) choice name(put in play) notatarget(enchantment|myhand) transforms((,newability[ability$!name(put in play) notatarget(enchantment|myhand) moveTo(mybattlefield)!$ opponent],newability[moveTo(mybattlefield)]))
text=Each player may put an artifact, creature, enchantment, or land card from his or her hand onto the battlefield.
mana={2}{U}
type=Sorcery
[/card]


Mishra's Workshop's 3 manas can be used to cast everything, not just artifacts...

[card]
name=Mishra's Workshop
auto={T}:Add {3}
text={T}: Add {3} to your mana pool. Spend this mana only to cast artifact spells.
type=Land
[/card]

Time Vault works fine, but you can't untap it by losing one turn

[card]
name=Time Vault
abilities=doesnotuntap
auto=tap
auto={T}:turns:+1 controller
text=Time Vault enters the battlefield tapped. -- {T}: Take an extra turn after this one.
mana={2}
type=Artifact
[/card]

I'll try to work on Jace 2.0
Garrafa
Posts: 15
Joined: Tue Nov 08, 2011 1:50 am

Re: Show and Tell, Mishra's Workshop, Time Vault finally wor

Post by Garrafa »

I tested Jace 2.0 and Tezzeret 2.0 and, after some changes, they are working fine. Jace still needs some changes

[card]
name=Jace, the Mind Sculptor
auto=counter(0/0,3,Loyalty)
auto={C(0/0,2,Loyalty)}:token(-674)
auto={C(0/0,2,Loyalty)}:token(-774)
auto={C(0/0,0,Loyalty)}:draw:3 && token(-672)
auto={C(0/0,-1,Loyalty)}:moveto(ownerhand) target(creature)
auto={C(0/0,-12,Loyalty)}:moveto(exile) all(*|opponentlibrary) && moveto(opponentlibrary) all(*|opponenthand) && shuffle
mana={2}{U}{U}
abilities=shroud
type=Planeswalker
subtype=Jace
toughness=0
[/card]
[card]
name=Move to top of deck 1
id=-672
type=nothing
auto=moveto(mylibrary) target(*|myhand)
auto=moveto(exile) all(this)
auto=token(-673)
[email protected] endofturn:moveTo(ownergraveyard)
[/card]
[card]
name=Move to top of deck 2
auto=counter(0/0,1,Brainstorm)
[email protected](*|myLibrary) from(myhand):thisforeach(counter{0/0.1.Brainstorm}>0) moveTo(myLibrary) target(*|myhand) && counter(0/0,-1,Brainstorm) && counter(0/0,1,Bury)
auto=thisforeach(counter{0/0.1.Bury}>0) exile all(this)
id=-673
[email protected] endofturn:moveTo(ownergraveyard)
type=Nothing
[/card]
[card]
name=Look at MY top card
id=-674
type=nothing
auto=counter(0/0,1,topcard)
auto=counter(0/0,1,original) all(*|myhand)
auto={C(0/0,-1,topcard)}:draw:1
[email protected](*|myhand):may token(-675) && moveto(mylibrary) target(*[-counter{0/0.1.original}]|myhand) && counter(0/0,-1,original) all(*|myhand) && moveto(junk) all(this) && shuffle
[email protected](*|myhand):may token(-676) && moveto(mylibrary) target(*[-counter{0/0.1.original}]|myhand) && counter(0/0,-1,original) all(*|myhand) && moveto(junk) all(this)
[email protected] endofturn:moveTo(ownergraveyard)
[/card]
[card]
name=Move To Bottom
auto=moveto(junk) all(this)
id=-675
[email protected] endofturn:moveTo(ownergraveyard)
type=nothing
[/card]
[card]
name=Move To Top
auto=moveto(junk) all(this)
id=-676
[email protected] endofturn:moveTo(ownergraveyard)
type=nothing
[/card]

[card]
name=Look at opponent top card
id=-774
type=nothing
auto=counter(0/0,1,topcard)
auto=counter(0/0,1,original) all(*|opponenthand)
auto={C(0/0,-1,topcard)}:draw:1 opponent
[email protected](*|opponenthand):may token(-675) && moveto(opponentlibrary) target(*[-counter{0/0.1.original}]|opponenthand) && counter(0/0,-1,original) all(*|opponenthand) && moveto(junk) all(this) && shuffle
[email protected](*|opponenthand):may token(-676) && moveto(opponentlibrary) target(*[-counter{0/0.1.original}]|opponenthand) && counter(0/0,-1,original) all(*|myhand) && moveto(junk) all(this)
[email protected] endofturn:moveTo(ownergraveyard)
[/card]
[card]
name=Tezzeret, Agent of Bolas
auto=counter(0/0,3,Loyalty)
auto={C(0/0,1,Loyalty)}:token(-611) asSorcery
auto={C(0/0,-1,Loyalty)}{C(0/1,-1,Loyalty)}:becomes(Artifact Creature,5/5) target(artifact|myBattlefield) asSorcery
auto={C(0/0,-4,Loyalty)}:foreach(artifact|myBattlefield) damage:2 target(player) && foreach(artifact|myBattlefield) life:2 controller asSorcery
text=+1: Look at the top fie cards of your library. You may reveal an artifact card from among them and put it into your hand. Put the rest on the bottom of your library. -- -1: Target artifact becomes a 5/5 artifact creature. -- -4: Target player loses X life and you gain X life. Where X is twice the number of artifacts you control.
mana={2}{U}{B}
type=planeswalker
subtype=Tezzeret
[/card]
[card]
name=Look at my top 5 cards
id=-611
type=nothing
auto=counter(0/0,1,topcard)
auto=counter(0/0,5,original) all(*|myhand)
auto={C(0/0,-1,topcard)}:draw:5 asSorcery
[email protected](*|myhand):may token(-613) && moveto(mylibrary) target(*[-counter{0/0.1.original}]|myhand) && counter(0/0,-1,original) all(*|myhand) && shuffle
[email protected] endofturn:moveTo(ownergraveyard)
[/card]
[card]
name=Move To four Top
auto=moveto(junk) all(this)
id=-613
type=nothing
[email protected] endofturn:moveTo(ownergraveyard)
[/card]
[card]
name=Look-Look top 3 cards
id=-704579
auto=counter(0/0,1,hand) all(*|myhand)
auto=draw:3
[email protected](this|nonbattlezone): token(-704580)
auto=moveto(exile) all(this)
type=nothing
[/card]

[card]
name=Look-Put cards on top
id=-704580
auto=choice name(Put cards on top) moveto(mylibrary) target(<3>*[-counter{0/0.1.hand}]|myhand) && moveto(exile) all(this)
[email protected](this|nonbattlezone):counter(0/0,-1,hand) all(*|myhand)
type=nothing
[/card]
Zethfox
Posts: 3029
Joined: Thu Jun 10, 2010 11:28 pm

Re: Show and Tell, Mishra's Workshop, Time Vault finally wor

Post by Zethfox »

you have a good understanding of the code, but try to stay away from token workarounds at all cost ok.
sandman423
Posts: 739
Joined: Thu Sep 10, 2009 8:59 pm

Re: Show and Tell, Mishra's Workshop, Time Vault finally wor

Post by sandman423 »

Tezzeret, Agent of Bolas not working...I can choose cards to put on bottom but adds none to hand
excessum
Posts: 220
Joined: Wed Jan 16, 2013 5:03 am
Contact:

Re: Show and Tell, Mishra's Workshop, Time Vault finally wor

Post by excessum »

Here's a fix for the Time Vault untap:

Code: Select all

[card]
name=Time Vault
abilities=doesnotuntap
auto=tap
auto={0}:untap && turns:-1 controller
auto={T}:turns:+1 controller
text=Time Vault enters the battlefield tapped. -- {T}: Take an extra turn after this one.
mana={2}
type=Artifact
[/card]
Garrafa
Posts: 15
Joined: Tue Nov 08, 2011 1:50 am

Re: Show and Tell, Mishra's Workshop, Time Vault finally wor

Post by Garrafa »

Zethfox wrote:you have a good understanding of the code, but try to stay away from token workarounds at all cost ok.
Thanks, I'll try not to mess with tokens
sandman423 wrote:Tezzeret, Agent of Bolas not working...I can choose cards to put on bottom but adds none to hand
it works, you just need to select the 4 cards than choose to cancel on the fifth time, it will stay in your hand.
excessum wrote:Here's a fix for the Time Vault untap:

Code: Select all

[card]
name=Time Vault
abilities=doesnotuntap
auto=tap
auto={0}:untap && turns:-1 controller
auto={T}:turns:+1 controller
text=Time Vault enters the battlefield tapped. -- {T}: Take an extra turn after this one.
mana={2}
type=Artifact
[/card]
Thank you, that should work now
Garrafa
Posts: 15
Joined: Tue Nov 08, 2011 1:50 am

Re: Show and Tell, Mishra's Workshop, Time Vault finally wor

Post by Garrafa »

I coded Izzet Charm, peer through depths and remand. You need to have the tezz 2.0 code that I posted here to make peer through depths work. Just select "move to four top" and select 4 cards that you want in the bottom of your library and "cancel" on the fifth time, so you can keep the instant/sorcery you want in your hand.

They're not 100% working though,

Code: Select all

[card]
name=Remand
target=*|stack
auto=fizzle 
auto=draw:1 controller
color=blue
mana={1}{U}
type=Instant
[/card]


[card]
name=Peer Through Depths
auto=token(-611)
color=blue
mana={1}{U}
type=instant
[/card]


[card]
name=Izzet Charm
auto=aslongas(*[-creature]|stack) choice fizzle
auto=aslongas(creature|battlefield) choice damage:2 target(creature)
auto=choice token(-13377)
text=Choose one - Destroy target Wall; or Chaos Charm deals 1 damage to target creature; or target creature gains haste until end of turn.
mana={U}{R}
type=Instant
[/card]

[card]
name=draw and discard
id=-13377
auto=draw:2
auto=reject target(<2>*|myhand)
type=nothing
auto=moveto(exile) all(this)
[/card]
Garrafa
Posts: 15
Joined: Tue Nov 08, 2011 1:50 am

Re: Show and Tell, Mishra's Workshop, Time Vault finally wor

Post by Garrafa »

the only problem with the show and tell code is that if you choose to put a creature in play, the opponet must put a creature in play. That means the opponent can't choose what kind of permanent he wants to put in play
Garrafa
Posts: 15
Joined: Tue Nov 08, 2011 1:50 am

Re: Show and Tell, Mishra's Workshop, Time Vault finally wor

Post by Garrafa »

I coded martyr of sands and it is working like metalworker:
[card]
name=Martyr of Sands
auto={1}{S}:foreach(*[white]|myHand) life:3 controller
mana={W}
type=Creature
subtype=Human Cleric
power=1
toughness=1
[/card]
I also coded Protean Hulk and Jin-Gitaxias, Jin forces the opponent to discard 10 cards instead of resizing his or her hand size and Hulk crashes the game when you choose a creature with toughness=0, but the 'combo' works if you put artifact creatures with toughness >= 0, arcbound ravager/carrion feeder and disciple of the vaults, sacrificing the artifact creatures for the arcbound ravager or the carrion feeder.

[card]
name=Protean Hulk
[email protected](this|graveyard) from(Battlefield): moveTo(myBattlefield) target(<upto:60>creature[manacost<=6]|myLibrary)
text=When Ranger of Eos enters the battlefield, you may search your library for up to two creature cards with converted mana cost 1 or less, reveal them, and put them into your hand. If you do, shuffle your library.
mana={5}{G}{G}
type=Creature
subtype=Beast
power=6
toughness=6
[/card]

[card]
name=Jin-Gitaxias, Core Augur
[email protected] my endofturn:draw:7
[email protected] opponentendofturn:discard:10 opponent
mana={8}{U}{U}
type=Legendary Creature
power=5
toughness=4
[/card]
Zethfox
Posts: 3029
Joined: Thu Jun 10, 2010 11:28 pm

Re: Show and Tell, Mishra's Workshop, Time Vault finally wor

Post by Zethfox »

protean hulk is a total of 6 or less, meaning one of 5 one of 1, 6 of 1, 2 of 3...you get the point. this allows you to put 60 creatures of 6 or less mana.

show and tell is already in
[card]
name=Show and Tell
auto=moveto(ownerbattlefield) notatarget(*[creature;artifact;enchantment;land]|myhand)
auto=ability$! moveto(ownerbattlefield) notatarget(*[creature;artifact;enchantment;land]|myhand) !$ opponent
text=Each player may put an artifact, creature, enchantment, or land card from his or her hand onto the battlefield.
mana={2}{U}
type=Sorcery
[/card]
Post Reply