For my first card I decided to pick a doozy:
Clone Shell. It actually requires a minor addition to the code in order to work (in AbilityFactory_Reveal.digResolve(...),
- Code: Select all
if (params.containsKey("Imprint"))
host.addImprinted(chosen);
needs to be added somewhere.
I have it located in somewhere (the wrong place as far as organization goes) right now, and it adds the imprinted card properly so it shows up as Imprinted when you hover over the creature. However, when I destroy it, the list of imprinted cards is now suddenly empty.
Here is my code for the card:
- | Open
- Name:Clone Shell
ManaCost:5
Types:Artifact Creature Shapeshifter
Text:no text
PT:2/2
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigDig | TriggerDescription$ Imprint - When CARDNAME enters the battlefield, look at the top four cards of your library, exile one face down, then put the rest on the bottom of your library in any order.
T:Mode$ ChangesZone | Origin$ Battlefield | Destination$ Graveyard | ValidCard$ Card.Self | Execute$ TrigReturn | TriggerDescription$ When CARDNAME dies, turn the exiled card face up. If it's a creature card, put it onto the battlefield under your control.
SVar:TrigDig:DB$Dig | DigNum$ 4 | DestinationZone$ Exile | Imprint$ True | DestinationZone2$ Library
SVar:TrigReturn:DB$ChangeZone | Defined$ Imprinted | Origin$ Exile | Destination$ Battlefield
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/clone_shell.jpg
End
Can anyone provide some help? I would love to get this card completed, it is complicated but I believe it can be a good example of the versatility of the card scripting.
Thanks!