It is currently 17 Sep 2025, 19:39
   
Text Size

Card Contributions

Post MTG Forge Related Programming Questions Here

Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins

Re: Card Contributions

Postby Chris H. » 03 Mar 2011, 14:14

Zirbert wrote:
ZzzzSleep wrote:More ancient cards...
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
My first attempt at Gangrenous Zombie used isNotPresent instead of IsPresent with PresentCompare of EQ0.
I love ancient cards. Bring 'em on, the ancienter the better!

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. #-o
User avatar
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

Postby slapshot5 » 03 Mar 2011, 15:25

ZzzzSleep wrote:p.s. Was Eater of the Dead missed, or is it not fitting the card's functionality properly?
I don't think your Eater of the Dead works quite right because of this ruling:
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.
If you can confirm this works correctly, I'll add it.

-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

Postby 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. :wink:
User avatar
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

Postby 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. :wink:
`
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
User avatar
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

Postby 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
Programmer
 
Posts: 1391
Joined: 03 Jan 2010, 17:47
Location: Mac OS X
Has thanked: 25 times
Been thanked: 68 times

Re: Card Contributions

Postby 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. #-o
User avatar
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

Postby 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

Postby ZzzzSleep » 04 Mar 2011, 06:13

Argh! Ninjas!
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
I've tested these, but I'd appreciate it if somebody else could give them a try.

Cheers,
ZzzzSleep.
ZzzzSleep
 
Posts: 182
Joined: 29 Oct 2010, 02:19
Has thanked: 18 times
Been thanked: 18 times

Re: Card Contributions

Postby 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
More cards that trigger at unusual times to come ASAP (but not tonight)....
Zirbert
 
Posts: 512
Joined: 13 Oct 2010, 16:04
Has thanked: 104 times
Been thanked: 19 times

Re: Card Contributions

Postby 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
Zirbert
 
Posts: 512
Joined: 13 Oct 2010, 16:04
Has thanked: 104 times
Been thanked: 19 times

Re: Card Contributions

Postby 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
and
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
Replika
 
Posts: 115
Joined: 30 Jan 2011, 21:15
Has thanked: 2 times
Been thanked: 3 times

Re: Card Contributions

Postby 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
User avatar
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

Postby 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...
Attachments
Zombie Pack 1.zip
(3.07 KiB) Downloaded 373 times
Zirbert
 
Posts: 512
Joined: 13 Oct 2010, 16:04
Has thanked: 104 times
Been thanked: 19 times

Re: Card Contributions

Postby 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
User avatar
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

Postby slapshot5 » 07 Mar 2011, 13:21

I added Altar of Shadows and Black Market.

-slapshot5
slapshot5
Programmer
 
Posts: 1391
Joined: 03 Jan 2010, 17:47
Location: Mac OS X
Has thanked: 25 times
Been thanked: 68 times

PreviousNext

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 47 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 47 users online :: 0 registered, 0 hidden and 47 guests (based on users active over the past 10 minutes)
Most users ever online was 7967 on 09 Sep 2025, 23:08

Users browsing this forum: No registered users and 47 guests

Login Form