Card Contributions
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
Re: Card Contributions
by Chris H. » 03 Mar 2011, 14:14
`Zirbert wrote:I love ancient cards. Bring 'em on, the ancienter the better!ZzzzSleep wrote:More ancient cards...My first attempt at Gangrenous Zombie used isNotPresent instead of IsPresent with PresentCompare of EQ0.
- Code: Select all
Name:Gangrenous Zombie
ManaCost:1 B B
Types:Creature Zombie
Text:no text
PT:2/2
A:AB$ DamageAll | Cost$ T Sac<1/CARDNAME> | IsPresent$ Swamp.Snow+YouCtrl | PresentCompare$ EQ0 | ValidCards$ Creature | ValidPlayers$ Each | NumDmg$ 1 | ValidDescription$ each creature and each player. | SpellDescription$ CARDNAME deals 1 damage to each creature and each player. If you control a snow Swamp, Gangrenous Zombies deals 2 damage to each creature and each player instead.
A:AB$ DamageAll | Cost$ T Sac<1/CARDNAME> | IsPresent$ Swamp.Snow+YouCtrl | ValidCards$ Creature | ValidPlayers$ Each | NumDmg$ 2 | ValidDescription$ each creature and each player.
SVar:Rarity:Common
End
Watch out for the name of Gangrenous Zombies - it needs the S on the end. Sometimes you put it there, sometimes you didn't. It's missing from the first line of the card script.
Added and renamed the card name.

-
Chris H. - Forge Moderator
- Posts: 6320
- Joined: 04 Nov 2008, 12:11
- Location: Mac OS X Yosemite
- Has thanked: 644 times
- Been thanked: 643 times
Re: Card Contributions
by slapshot5 » 03 Mar 2011, 15:25
I don't think your Eater of the Dead works quite right because of this ruling:ZzzzSleep wrote:p.s. Was Eater of the Dead missed, or is it not fitting the card's functionality properly?
If you can confirm this works correctly, I'll add it.You can activate the ability whether or not Eater of the Dead is tapped. However, if Eater of the Dead is untapped when the ability resolves, the ability won't do anything.
-slapshot5
- slapshot5
- Programmer
- Posts: 1391
- Joined: 03 Jan 2010, 17:47
- Location: Mac OS X
- Has thanked: 25 times
- Been thanked: 68 times
Re: Card Contributions
by Chris H. » 03 Mar 2011, 15:53
`ZzzzSleep wrote:p.s. Was Eater of the Dead missed, or is it not fitting the card's functionality properly?
I looked at it for awhile and there were a couple of things that concerned me. The Untap is not part of the cost. I do not know if a " IsPresent$ Self.tapped" will handle the necessary test. If it does, then maybe the Untap can be added as a DB$ drawback?
Granted, I am just trying to think of a way to implement this card. I am not sure if it can be done at this time. This one is tricky.

-
Chris H. - Forge Moderator
- Posts: 6320
- Joined: 04 Nov 2008, 12:11
- Location: Mac OS X Yosemite
- Has thanked: 644 times
- Been thanked: 643 times
Re: Card Contributions
by Chris H. » 03 Mar 2011, 16:24
`Chris H. wrote:`ZzzzSleep wrote:p.s. Was Eater of the Dead missed, or is it not fitting the card's functionality properly?
I looked at it for awhile and there were a couple of things that concerned me. The Untap is not part of the cost. I do not know if a " IsPresent$ Self.tapped" will handle the necessary test. If it does, then maybe the Untap can be added as a DB$ drawback?
Granted, I am just trying to think of a way to implement this card. I am not sure if it can be done at this time. This one is tricky.
I think that this revision will do it:
- Eater of the Dead card | Open
- Name:Eater of the Dead
ManaCost:4 B
Types:Creature Horror
Text:no text
PT:3/4
A:AB$ ChangeZone | Cost$ 0 | Origin$ Graveyard | Destination$ Exile | IsPresent$ Card.Self+tapped | TgtPrompt$ Select target creature in a graveyard | ValidTgts$ Card.Creature | SubAbility$ SVar=DBUntap | SpellDescription$ If CARDNAME is tapped, exile target creature card from a graveyard and untap Eater of the Dead.
SVar:DBUntap:DB$Untap | Defined$ Self
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/eater_of_the_dead.jpg
End
-
Chris H. - Forge Moderator
- Posts: 6320
- Joined: 04 Nov 2008, 12:11
- Location: Mac OS X Yosemite
- Has thanked: 644 times
- Been thanked: 643 times
Re: Card Contributions
by slapshot5 » 03 Mar 2011, 17:08
It (Eater of the Dead) is still not 100% correct. Tapped is not an activation restriction. It only matters during resolution.
-slapshot5
-slapshot5
- slapshot5
- Programmer
- Posts: 1391
- Joined: 03 Jan 2010, 17:47
- Location: Mac OS X
- Has thanked: 25 times
- Been thanked: 68 times
Re: Card Contributions
by Chris H. » 03 Mar 2011, 17:16
`slapshot5 wrote:It (Eater of the Dead) is still not 100% correct. Tapped is not an activation restriction. It only matters during resolution.
Ugh, that is one tricky card. I will remove it from the SVN.

-
Chris H. - Forge Moderator
- Posts: 6320
- Joined: 04 Nov 2008, 12:11
- Location: Mac OS X Yosemite
- Has thanked: 644 times
- Been thanked: 643 times
Re: Card Contributions
by friarsol » 03 Mar 2011, 19:13
We need an AF for conditions for this to work properly. At some point I was considering doing one (for things like Flipping Coins anyway) but it seems that all of my free time has disappeared.
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: Card Contributions
by ZzzzSleep » 04 Mar 2011, 06:13
Argh! Ninjas!
Cheers,
ZzzzSleep.
- Code: Select all
Name:Higure, the Still Wind
ManaCost:3 U U
Types:Legendary Creature Human Ninja
Text:no text
PT:3/4
A:AB$ChangeZone | Cost$ 2 U U Return<1/Creature.attacking+unblocked+YouCtrl> | CostDesc$ Ninjutsu 2 U U | ActivatingZone$ Hand | Origin$ Hand | Ninjutsu$ True | Destination$ Battlefield | Defined$ Self | SpellDescription$ (2 U U, Return an unblocked attacker you control to hand: Put this card onto the battlefield from your hand tapped and attacking.)
T:Mode$ DamageDone | ValidSource$ Card.Self | ValidTarget$ Opponent | Execute$ TrigSearch | Optional$ True | CombatDamage$ True | TriggerDescription$ Whenever CARDNAME deals combat damage to a player, you may search your library for a Ninja card, reveal it, and put it into your hand. If you do, shuffle your library.
SVar:TrigSearch:AB$ChangeZone | Cost$ 0 | Origin$ Library | Destination$ Hand | ChangeType$ Ninja | ChangeNum$ 1
A:AB$Pump | Cost$ 2 | ValidTgts$ Creature.Ninja | KW$ HIDDEN Unblockable | SpellDescription$ Target Ninja creature is unblockable this turn. | TgtPrompt$ Select target Ninja creature.
SVar:RemAIDeck:True
SVar:Rarity:Rare
End
Name:Ink-Eyes, Servant of Oni
ManaCost:4 B B
Types:Legendary Creature Rat Ninja
Text:no text
PT:5/4
A:AB$ChangeZone | Cost$ 3 B B Return<1/Creature.attacking+unblocked+YouCtrl> | CostDesc$ Ninjutsu 3 B B | ActivatingZone$ Hand | Origin$ Hand | Ninjutsu$ True | Destination$ Battlefield | Defined$ Self | SpellDescription$ (3 B B, Return an unblocked attacker you control to hand: Put this card onto the battlefield from your hand tapped and attacking.)
T:Mode$ DamageDone | ValidSource$ Card.Self | ValidTarget$ Opponent | Execute$ TrigAnimate | Optional$ True | CombatDamage$ True | TriggerDescription$ Whenever CARDNAME deals combat damage to a player, you may put target creature card from that player's graveyard onto the battlefield under your control.
SVar:TrigAnimate:AB$ChangeZone | Cost$ 0 | Origin$ Graveyard | Destination$ Battlefield | GainControl$ True | TgtPrompt$ Choose target creature card in an opponent's graveyard | ValidTgts$ Creature.YouDontCtrl | SpellDescription$ Put target creature card from an opponent's graveyard onto the battlefield under your control.
A:AB$Regenerate | Cost$ 1 B | SpellDescription$ Regenerate CARDNAME.
SVar:RemAIDeck:True
SVar:Rarity:Rare
End
Name:Mistblade Shinobi
ManaCost:2 U
Types:Creature Human Ninja
Text:no text
PT:1/1
A:AB$ChangeZone | Cost$ U Return<1/Creature.attacking+unblocked+YouCtrl> | CostDesc$ Ninjutsu U | ActivatingZone$ Hand | Origin$ Hand | Ninjutsu$ True | Destination$ Battlefield | Defined$ Self | SpellDescription$ (U, Return an unblocked attacker you control to hand: Put this card onto the battlefield from your hand tapped and attacking.)
T:Mode$ DamageDone | ValidSource$ Card.Self | ValidTarget$ Opponent | Execute$ TrigBounce | Optional$ True | CombatDamage$ True | TriggerDescription$ Whenever CARDNAME deals combat damage to a player, you may return target creature that player controls to its owner's hand.
SVar:TrigBounce:AB$ChangeZone | Cost$ 0 | ValidTgts$ Creature.YouDontCtrl | TgtPrompt$ Choose target creature your opponent controls. | Origin$ Battlefield | Destination$ Hand
SVar:RemAIDeck:True
SVar:Rarity:Common
End
Name:Okiba-Gang Shinobi
ManaCost:3 B B
Types:Creature Rat Ninja
Text:no text
PT:3/2
A:AB$ChangeZone | Cost$ 3 B Return<1/Creature.attacking+unblocked+YouCtrl> | CostDesc$ Ninjutsu 3 B | ActivatingZone$ Hand | Origin$ Hand | Ninjutsu$ True | Destination$ Battlefield | Defined$ Self | SpellDescription$ (3 B, Return an unblocked attacker you control to hand: Put this card onto the battlefield from your hand tapped and attacking.)
T:Mode$ DamageDone | ValidSource$ Card.Self | ValidTarget$ Opponent | Execute$ TrigDiscard | Optional$ False | CombatDamage$ True | TriggerDescription$ Whenever CARDNAME deals combat damage to a player, that player discards two cards.
SVar:TrigDiscard:AB$Discard | Cost$ 0 | Defined$ Opponent | NumCards$ 2 | Mode$ TgtChoose
SVar:RemAIDeck:True
SVar:Rarity:Common
End
Cheers,
ZzzzSleep.
Re: Card Contributions
by Zirbert » 05 Mar 2011, 05:27
This is a lot of fun. I especially enjoy it in decks with Plaguebearer and Geth, Lord of the Vault. And it works perfectly, thanks to the new phase triggers!
- Code: Select all
Name:Black Market
ManaCost:3 B B
Types:Enchantment
Text:no text
T:Mode$ ChangesZone | Origin$ Battlefield | Destination$ Graveyard | ValidCard$ Creature | TriggerZones$ Battlefield | Execute$ TrigPutCounter | TriggerDescription$ Whenever a creature is put into a graveyard from the battlefield, put a charge counter on CARDNAME.
SVar:TrigPutCounter:AB$PutCounter | Cost$ 0 | Defined$ Self | CounterType$ CHARGE | CounterNum$ 1
T:Mode$ Phase | Phase$ Main1 | ValidPlayer$ You | TriggerZones$ Battlefield | Execute$ TrigGetMana | TriggerDescription$ At the beginning of your precombat main phase, add B to your mana pool for each charge counter on CARDNAME.
SVar:TrigGetMana:AB$ Mana | Cost$ 0 | Produced$ B | Amount$ X | SpellDescription$ Add X B to your mana pool
SVar:X:Count$CardCounters.CHARGE
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/black_market.jpg
SetInfo:MMQ|Rare|http://magiccards.info/scans/en/mm/116.jpg
End
Re: Card Contributions
by Zirbert » 05 Mar 2011, 22:16
This one was easy once I'd done Black Market, and whaddaya know, they work pretty well together.
- Code: Select all
Name:Altar of Shadows
ManaCost:7
Types:Artifact
Text:no text
T:Mode$ Phase | Phase$ Main1 | ValidPlayer$ You | TriggerZones$ Battlefield | Execute$ TrigGetMana | TriggerDescription$ At the beginning of your precombat main phase, add B to your mana pool for each charge counter on CARDNAME.
SVar:TrigGetMana:AB$ Mana | Cost$ 0 | Produced$ B | Amount$ X | SpellDescription$ Add X B to your mana pool
A:AB$Destroy | Cost$ 7 T | ValidTgts$ Creature | TgtPrompt$ Select target creature | SubAbility$ SVar=DBPutCounter | SpellDescription$ Destroy target creature. Then put a charge counter on CARDNAME.
SVar:DBPutCounter:DB$PutCounter | Cost$ 0 | Defined$ Self | CounterType$ CHARGE | CounterNum$ 1
SVar:X:Count$CardCounters.CHARGE
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/altar_of_shadows.jpg
SetInfo:MRD|Rare|http://magiccards.info/scans/en/mi/143.jpg
End
Re: Card Contributions
by Replika » 06 Mar 2011, 17:51
I did two more cards for my pauper decks. Again, both are based on already scripted cards and are tested successfully.
- Code: Select all
Name:Cenn's Heir
ManaCost:1 W
Types:Creature Kithkin Soldier
Text:no text
PT:1/1
T:Mode$ Attacks | ValidCard$ Card.Self | Execute$ TrigPump | TriggerDescription$ Whenever CARDNAME attacks, it gets +1/+1 until end of turn for each other attacking Kithkin.
SVar:TrigPump:AB$Pump | Cost$ 0 | Defined$ Self | NumAtt$ X | NumDef$ X
SVar:X:Count$Valid Kithkin.attacking+Other
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/cenns_heir.jpg
SetInfo:LRW|Common|http://magiccards.info/lw/en/8.html
End
- Code: Select all
Name:Kinsbaile Balloonist
ManaCost:3 W
Types:Creature Kithkin Soldier
Text:no text
PT:2/2
K:Flying
T:Mode$ Attacks | ValidCard$ Card.Self | Execute$ TrigPump | Optional$ True | TriggerDescription$ Whenever CARDNAME attacks, you may have target creature gain flying until end of turn.
SVar:TrigPump:AB$Pump | Cost$ 0 | ValidTgts$ Creature | KW$ Flying
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/kinsbaile_balloonist.jpg
SetInfo:LRW|Common|http://magiccards.info/lw/en/23.html
End
Re: Card Contributions
by Hellfish » 06 Mar 2011, 18:27
Added! Thanks, Replika!
So now you're
Screaming for the blood of the cookie monster
Evil puppet demon of obesity
Time to change the tune of his fearful ballad
C is for "Lettuce," that's good enough for me
Screaming for the blood of the cookie monster
Evil puppet demon of obesity
Time to change the tune of his fearful ballad
C is for "Lettuce," that's good enough for me
-
Hellfish - Programmer
- Posts: 1297
- Joined: 07 Jun 2009, 10:41
- Location: South of the Pumphouse
- Has thanked: 110 times
- Been thanked: 169 times
Re: Card Contributions
by Zirbert » 06 Mar 2011, 19:59
I just don't have enough zombies for my mega-zombie deck - it's stuck around 425 cards. So, toward rectifying that, here's Zombie Pack 1: "They're Dead, They're All Messed up."
This pack contains:
Aphetto Vulture
Graveborn Muse
Haunted Cadaver
Nefashu
Nightscape Apprentice
Rank and File
All tested and seem to work fine, although I remain fallible as ever.
Note that you'd have to be crazy, reckless, or just not too bright to run Graveborn Muse in a dedicated zombie deck. Fortunately, that works out pretty well for me.
More to come (but not today) - I've found over a dozen more that we don't have yet that look scriptable...
This pack contains:
Aphetto Vulture
Graveborn Muse
Haunted Cadaver
Nefashu
Nightscape Apprentice
Rank and File
All tested and seem to work fine, although I remain fallible as ever.
Note that you'd have to be crazy, reckless, or just not too bright to run Graveborn Muse in a dedicated zombie deck. Fortunately, that works out pretty well for me.
More to come (but not today) - I've found over a dozen more that we don't have yet that look scriptable...
- Attachments
-
Zombie Pack 1.zip
- (3.07 KiB) Downloaded 373 times
Re: Card Contributions
by Hellfish » 07 Mar 2011, 10:07
I'm getting House of The Dead: Overkill flashbacks... Added, Thanks!
So now you're
Screaming for the blood of the cookie monster
Evil puppet demon of obesity
Time to change the tune of his fearful ballad
C is for "Lettuce," that's good enough for me
Screaming for the blood of the cookie monster
Evil puppet demon of obesity
Time to change the tune of his fearful ballad
C is for "Lettuce," that's good enough for me
-
Hellfish - Programmer
- Posts: 1297
- Joined: 07 Jun 2009, 10:41
- Location: South of the Pumphouse
- Has thanked: 110 times
- Been thanked: 169 times
Re: Card Contributions
by slapshot5 » 07 Mar 2011, 13:21
- slapshot5
- Programmer
- Posts: 1391
- Joined: 03 Jan 2010, 17:47
- Location: Mac OS X
- Has thanked: 25 times
- Been thanked: 68 times
Who is online
Users browsing this forum: No registered users and 47 guests