It is currently 17 Sep 2025, 21:17
   
Text Size

Card Contributions

Post MTG Forge Related Programming Questions Here

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

Re: Card Contributions

Postby Replika » 10 Apr 2011, 16:29

No, it's not. You must not be able to "evoke" Azorius Herald if you control two Islands and one Plains for example. That's why alternative casting costs do not do the trick here.
Last edited by Replika on 10 Apr 2011, 19:06, edited 1 time in total.
Replika
 
Posts: 115
Joined: 30 Jan 2011, 21:15
Has thanked: 2 times
Been thanked: 3 times

Re: Card Contributions

Postby eidolon » 10 Apr 2011, 17:35

Damn, you are right. :-(

Just some minor formating:
Torch Slinger + Graveborn Muse have an unnecessary whitespace in their type.
"Types: Creature" instead of "Types:Creature"

New cards:
| Open
Code: Select all
Name:Backlash
ManaCost:1 B R
Types:Instant
Text:no text
A:SP$Tap | Cost$ 1 B R| ValidTgts$ Creature.untapped | TgtPrompt$ Select an untapped creature | SubAbility$ SVar=DBDamage | SpellDescription$ Tap target untapped creature. That creature deals damage equal to its power to its controller.
SVar:DBDamage:DB$DealDamage | Cost$ 0 | Defined$ TargetedController| NumDmg$ X
SVar:X:Targeted$CardPower
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/backlash.jpg
SetInfo:INV|Unommon|http://magiccards.info/scans/en/in/234.jpg
End
Code: Select all
Name:Bargain Table
ManaCost:5
Types:Artifact
Text:no text
#The ability is untargeted (see: http://magiccards.info/mm/en/288.html), so the opponent is automaticaly chosen. This has to be modified as soon as multiplayer formats get supported.
A:AB$Draw| Cost$ X T | NumCards$ 1 | SpellDescription$Draw a card. X is the number of cards in an opponent's hand.
SVar:X:Count$InOppHand
SVar:Picture:http://www.wizards.com/global/images/magic/general/bargain_table.jpg
SVar:Rarity:Rare
SetInfo:MMQ|Rare|http://magiccards.info/scans/en/mm/288.jpg
End
minor workaround | Open
Code: Select all
Name:Balshan Beguiler
ManaCost:2 U
Types:Creature Human Wizard
Text:no text
PT:1/1
T:Mode$ DamageDone | ValidSource$ Card.Self | ValidTarget$ Opponent | CombatDamage$ True | Execute$ TrigRearangeMill | TriggerDescription$ Whenever CARDNAME deals combat damage to a player, that player reveals the top two cards of his or her library. You choose one of those cards and put it into his or her graveyard.
SVar:TrigRearangeMill:AB$RearrangeTopOfLibrary | Cost$ 0 | Defined$ Opponent | NumCards$ 2 | SubAbility$SVar=DBMill
SVar:DBMill:DB$Mill | NumCards$ 1 | Defined$ Opponent
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/balshan_beguiler.jpg
SetInfo:ODY|Uncommon|http://magiccards.info/scans/en/od/66.jpg
End
Code: Select all
Name:Bamboozle
ManaCost:2 U
Types:Sorcery
Text:no text
SVar:TrigRearangeMill:AB$RearrangeTopOfLibrary | Cost$ 0 | ValidTgts$ Player | NumCards$ 4 | SubAbility$SVar=DBMill
SVar:DBMill:DB$Mill | NumCards$ 2 | Defined$ Targeted
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/bamboozle.jpg
SetInfo:ODY|Uncommon|http://magiccards.info/scans/en/od/68.jpg
End
eidolon
 
Posts: 56
Joined: 15 Sep 2009, 22:12
Location: Bavaria, Germany
Has thanked: 0 time
Been thanked: 0 time

Re: Card Contributions

Postby ZzzzSleep » 13 Apr 2011, 21:51

More minor random cards!
Code: Select all
Name:Far Wanderings
ManaCost:2 G
Types:Sorcery
Text:no text
A:SP$ChangeZone | Cost$ 2 G | Origin$ Library | Destination$ Battlefield | ChangeType$ Land.Basic | Tapped$ True | ChangeNum$ X | SpellDescription$ Search your library for a basic land card and put that card into play tapped. Then shuffle your library. Threshold - Instead search your library for three basic land cards and put them into play tapped. Then shuffle your library.
SVar:X:Count$Threshold.3.1
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/far_wanderings.jpg
End

Name:Explosive Growth
ManaCost:G
Types:Instant
Text:no text
A:SP$Pump | Cost$ G | ValidTgts$ Creature | TgtPrompt$ Select target creature | NumAtt$ +2 | NumDef$ +2 | SpellDescription$ Target creature gets +2/+2 until end of turn. If Explosive Growth was kicked, that creature gets +5/+5 until end of turn instead.
A:SP$Pump | Cost$ G 5 | ValidTgts$ Creature | TgtPrompt$ Select target creature | NumAtt$ +5 | NumDef$ +5 | SpellDescription$ Kicker 5 (You may pay an additional 5 as you cast this spell.)
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/explosive_growth.jpg
End

Name:Esperzoa
ManaCost:2 U
Types:Artifact Creature Jellyfish
Text:no text
PT:4/3
K:Flying
T:Mode$ Phase | Phase$ Upkeep | ValidPlayer$ You | TriggerZones$ Battlefield | Execute$ TrigBounce | TriggerDescription$ At the beginning of your upkeep, return an artifact you control to its owner's hand.
SVar:TrigBounce:AB$ChangeZone | Cost$ 0 | ChangeType$ Artifact.YouCtrl | ChangeNum$ 1 | Origin$ Battlefield | Destination$ Hand | Hidden$ True
SVar:RemAIDeck:True
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/esperzoa.jpg
End
ZzzzSleep
 
Posts: 182
Joined: 29 Oct 2010, 02:19
Has thanked: 18 times
Been thanked: 18 times

Re: Card Contributions

Postby eidolon » 13 Apr 2011, 22:46

more cards:
Code: Select all
Name:Battlefield Scrounger
ManaCost:3 G G
Types:Creature Centaur
Text:no text
PT:3/3
A:AB$ChangeZone | Cost$ 0 | Origin$ Graveyard | Destination$ Library | LibraryPosition$ -1 | TargetMin$ 3 | TargetMax$ 3 | ValidTgts$ Card.YouCtrl | ActivationLimit$ 1 | Threshold$ True | SubAbility$ SVar=DBPump  | PrecostDesc$ Threshold - | SpellDescription$ Put three cards from your graveyard on the bottom of your library: Battlefield Scrounger gets +3/+3 until end of turn. Activate this ability only once each turn, and only if seven or more cards are in your graveyard.
SVar:DBPump:DB$Pump | Cost$ 0 | NumAtt$ +3 | NumDef$ +3
SVar:Picture:http://www.wizards.com/global/images/magic/general/battlefield_scrounger.jpg
SetInfo:JUD|Common|http://magiccards.info/scans/en/ju/106.jpg
End
Code: Select all
Name:Belltower Sphinx
ManaCost:4 U
Types:Creature Sphinx
Text:no text
PT:2/5
K:Flying
T:Mode$ DamageDone | ValidTarget$ Card.Self | Execute$ TrigMill | TriggerDescription$ Whenever a source deals damage to CARDNAME, that source's controller puts that many cards from the top of his or her library into his or her graveyard.
SVar:TrigMill:AB$Mill | Cost$ 0 | Defined$ TriggeredSourceController | NumCards$ X
SVar:X:Count$TriggeredDamageAmount
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/belltower_sphinx.jpg
SetInfo:RAV|Uncommon|http://magiccards.info/scans/en/rav/38.jpg
End
Kavu Titan (hardcoded) could also be scripted that way.
Code: Select all
Name:Benalish Lancer
ManaCost:2 W
Types:Creature Human Knight
Text:no text
PT:2/2
K:Kicker:2 W
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self+kicked | Execute$ TrigKicker | TriggerDescription$ If CARDNAME was kicked, it enters the battlefield with two +1/+1 counters on it and with first strike.
SVar:TrigKicker:AB$PutCounter | Cost$ 0 | Defined$ Self | CounterType$ P1P1 | CounterNum$ 2 | SubAbility$ SVar=Animate
SVar:Animate:DB$Animate | Defined$ Self | Permanent$ True | Keywords$ First Strike
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/benalish_lancer.jpg
SetInfo:INV|Common|http://magiccards.info/scans/en/in/7.jpg
End
Code: Select all
Name:Benevolent Bodyguard
ManaCost:W
Types:Creature Human Cleric
Text:no text
PT:1/1
A:AB$Pump | Cost$ Sac<1/CARDNAME> | ValidTgts$ Creature | TgtPrompt$ Select target creature | KW$ Protection from white | SpellDescription$ Target creature you control gains protection from white until end of turn.
A:AB$Pump | Cost$ Sac<1/CARDNAME> | ValidTgts$ Creature | TgtPrompt$ Select target creature | KW$ Protection from black | SpellDescription$ Target creature you control gains protection from black until end of turn.
A:AB$Pump | Cost$ Sac<1/CARDNAME> | ValidTgts$ Creature | TgtPrompt$ Select target creature | KW$ Protection from blue | SpellDescription$ Target creature you control gains protection from blue until end of turn.
A:AB$Pump | Cost$ Sac<1/CARDNAME> | ValidTgts$ Creature | TgtPrompt$ Select target creature | KW$ Protection from red | SpellDescription$ Target creature you control gains protection from red until end of turn.
A:AB$Pump | Cost$ Sac<1/CARDNAME> | ValidTgts$ Creature | TgtPrompt$ Select target creature | KW$ Protection from green | SpellDescription$ Target creature you control gains protection from green until end of turn.
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/benevolent_bodyguard.jpg
SetInfo:JUD|Common|http://magiccards.info/scans/en/ju/5.jpg
End
eidolon
 
Posts: 56
Joined: 15 Sep 2009, 22:12
Location: Bavaria, Germany
Has thanked: 0 time
Been thanked: 0 time

Re: Card Contributions

Postby Replika » 14 Apr 2011, 06:37

Battlefield Scrounger has the ChangeZone as a cost, not as an effect.

Benalish Lancer is not really correct. It enters with the counters and doesn't get them after entering.
Replika
 
Posts: 115
Joined: 30 Jan 2011, 21:15
Has thanked: 2 times
Been thanked: 3 times

Re: Card Contributions

Postby eidolon » 14 Apr 2011, 08:40

Llanowar Elite, Ardent Soldier and AEther Figment also use the same code for the counters, if that is too much of a difference for you.

Also you can check with a card like Angelic Chorus, that Kavu Titan also enters the battlefield as a 2/2 and gets the counters afterwards, even if somebody tried to directly code the ability.

more cards:
Code: Select all
Name:Betrayal of Flesh
ManaCost:5 B
Types:Instant
Text:no text
A:SP$ Destroy | Cost$ 5 B | ValidTgts$ Creature | TgtPrompt$ Select target creature | PrecostDesc$ Choose one - | SpellDescription$ Destroy target creature;
A:SP$ ChangeZone | Cost$ 5 B | Origin$ Graveyard | Destination$ Battlefield | TgtPrompt$ Choose target creature card in your graveyard | ValidTgts$ Creature.YouCtrl | SpellDescription$ or return target creature card from your graveyard to the battlefield.
A:SP$ Destroy | Cost$ 5 B Sac<3/Land>  | ValidTgts$ Creature | TgtPrompt$ Select target creature | SubAbility$ SVar=DBChange | PrecostDesc$ Entwine Sacrifice three lands | SpellDescription$ (Choose both if you pay the entwine cost.)
SVar:DBChange:DB$ ChangeZone | Cost$ 0 | Origin$ Graveyard | Destination$ Battlefield | TgtPrompt$ Choose target creature card in your graveyard | ValidTgts$ Creature.YouCtrl
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/betrayal_of_flesh.jpg
SetInfo:MRD|Uncommon|http://magiccards.info/scans/en/mi/58.jpg
End
Code: Select all
Name:Binding Agony
ManaCost:1 B
Types:Enchantment Aura
Text:no text
K:Enchant Creature Curse
T:Mode$ DamageDone | ValidTarget$ Card.AttachedBy | TriggerZones$ Battlefield | Execute$ TrigDealDamage | TriggerDescription$ Whenever enchanted creature is dealt damage, Binding Agony deals that much damage to that creature's controller.
SVar:TrigDealDamage:AB$ DealDamage | Cost$ 0 | Defined$ EnchantedController | NumDmg$ X
SVar:X:Count$TriggeredDamageAmount
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/binding_agony.jpg
SetInfo:MIR|Common|http://magiccards.info/scans/en/mr/4.jpg
End
eidolon
 
Posts: 56
Joined: 15 Sep 2009, 22:12
Location: Bavaria, Germany
Has thanked: 0 time
Been thanked: 0 time

Re: Card Contributions

Postby Sloth » 15 Apr 2011, 09:14

Added AEther Burst, AEther Charge and Alarum for eidolon and Ancient Hellkite, Angelic Protector and Arcane Spyglass for Replika. Thanks a lot!
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: Card Contributions

Postby jhhh » 15 Apr 2011, 20:17

Name:Ichorid
ManaCost:3 B
Types:Creature Horror
Text:no text
PT:3/1
K:Haste
K:At the beginning of the end step, sacrifice CARDNAME.
T:Mode$ Phase | Phase$ Upkeep | ValidPlayer$ You | OptionalDecider$ You | TriggerZones$ Graveyard | Execute$ TrigReturn | TriggerDescription$ At the beginning of your upkeep, if CARDNAME is in your graveyard, you may exile a black creature card other than CARDNAME from your graveyard. If you do, return CARDNAME to the battlefield.
SVar:TrigReturn:AB$ChangeZone | Cost$ ExileFromGrave<1/Creature.Black+Other> | Origin$ Graveyard | Destination$ Battlefield
SVar:Rarity:Rare
SVar:Picture:http://magiccards.info/scans/en/tr/65.jpg
End
jhhh
 
Posts: 58
Joined: 15 Oct 2010, 23:40
Has thanked: 0 time
Been thanked: 0 time

Re: Card Contributions

Postby Chris H. » 15 Apr 2011, 23:23

jhhh wrote:
Name:Ichorid
ManaCost:3 B
Types:Creature Horror
Text:no text
PT:3/1
K:Haste
K:At the beginning of the end step, sacrifice CARDNAME.
T:Mode$ Phase | Phase$ Upkeep | ValidPlayer$ You | OptionalDecider$ You | TriggerZones$ Graveyard | Execute$ TrigReturn | TriggerDescription$ At the beginning of your upkeep, if CARDNAME is in your graveyard, you may exile a black creature card other than CARDNAME from your graveyard. If you do, return CARDNAME to the battlefield.
SVar:TrigReturn:AB$ChangeZone | Cost$ ExileFromGrave<1/Creature.Black+Other> | Origin$ Graveyard | Destination$ Battlefield
SVar:Rarity:Rare
SVar:Picture:http://magiccards.info/scans/en/tr/65.jpg
End
`
Thank you jhhh.
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 eidolon » 16 Apr 2011, 16:01

Another new card and unless I am missing something, the 3 other nonwhite Shoals (which are currently missing) would look very similar to this.

Code: Select all
Name:Blazing Shoal
ManaCost:X R R
Types:Instant Arcane
Text:no text
A:SP$ Pump | Cost$ X R R | ValidTgts$ Creature | TgtPrompt$ Select target creature | NumAtt$ +X | SpellDescription$ Target creature gets +X/+0 until end of turn.
A:SP$ Pump | Cost$ ExileFromHand<1/Card.Red> | CostDesc$ You may exile a red card from your hand rather than pay Blazing Shoal's mana cost. | ValidTgts$ Creature | NumAtt$ +Y | SpellDescription$ Target creature gets +X/+0 until end of turn, where X is the exiled card's converted mana cost.
SVar:X:Count$xPaid
SVar:Y:Exiled$CardManaCost
SVar:RemAIDeck:True
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/blazing_shoal.jpg
SetInfo:BOK|Rare|http://magiccards.info/scans/en/bok/96.jpg
End
Edit: fixed the cost
Last edited by eidolon on 16 Apr 2011, 16:58, edited 1 time in total.
eidolon
 
Posts: 56
Joined: 15 Sep 2009, 22:12
Location: Bavaria, Germany
Has thanked: 0 time
Been thanked: 0 time

Re: Card Contributions

Postby Replika » 16 Apr 2011, 16:28

You forgot one red mana in the mana cost and the Cost$.
Replika
 
Posts: 115
Joined: 30 Jan 2011, 21:15
Has thanked: 2 times
Been thanked: 3 times

Re: Card Contributions

Postby eidolon » 16 Apr 2011, 16:59

@Replika: Oh man, this card is even worse than I had in mind, but nobody ever played it for the regular mana cost anyway...
remaining 3 shoals | Open
Code: Select all
Name:Sickening Shoal
ManaCost:X B B
Types:Instant Arcane
Text:no text
A:SP$ Pump | Cost$ X B B | ValidTgts$ Creature | TgtPrompt$ Select target creature | NumAtt$ -X | NumDef$ -X | IsCurse$ True | SpellDescription$ Target creature gets -X/-X until end of turn.
A:SP$ Pump | Cost$ ExileFromHand<1/Card.Black> | CostDesc$ You may exile a black card from your hand rather than pay Sickening Shoal's mana cost. | ValidTgts$ Creature | TgtPrompt$ Select target creature | NumAtt$ -Y | NumDef$ -Y | IsCurse$ True | SpellDescription$ Target creature gets -X/-X until end of turn, where X is the exiled card's converted mana cost.
SVar:X:Count$xPaid
SVar:Y:Exiled$CardManaCost
SVar:RemAIDeck:True
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/sickening_shoal.jpg
SetInfo:BOK|Rare|http://magiccards.info/scans/en/bok/82.jpg
End
Code: Select all
Name:Nourishing Shoal
ManaCost:X G G
Types:Instant Arcane
Text:no text
A:SP$ GainLife | Cost$ X G G | LifeAmount$ X | SpellDescription$ You gain X life.
A:SP$ GainLife | Cost$ ExileFromHand<1/Card.Green> | CostDesc$ You may exile a black card from your hand rather than pay Nourishing Shoal's mana cost. | LifeAmount$ Y | SpellDescription$ You gain X life, where X is the exiled card's converted mana cost.
SVar:X:Count$xPaid
SVar:Y:Exiled$CardManaCost
SVar:RemAIDeck:True
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/nourishing_shoal.jpg
SetInfo:BOK|Rare|http://magiccards.info/scans/en/bok/137.jpg
End
Edit: fixed Y instead of X
added set info

The blue one throws exceptions though
Code: Select all
Name:Disrupting Shoal
ManaCost:X U U
Types:Instant Arcane
Text:no text
A:SP$ Counter | Cost$ X U U | Type$ Spell | CounterValid$ Card.cmcEQX | SpellDescription$ Counter target spell with converted mana cost X.
A:SP$ Counter | Cost$ ExileFromHand<1/Card.Blue> | CostDesc$ You may exile a blue card from your hand rather than pay Disrupting Shoal's mana cost. | CounterValid$ Card.cmcEQY | SpellDescription$ Counter target spell with converted mana cost X, where X is the exiled card's converted mana cost.
SVar:X:Count$xPaid
SVar:Y:Exiled$CardManaCost
SVar:RemAIDeck:True
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/disrupting_shoal.jpg
SetInfo:BOK|Rare|http://magiccards.info/scans/en/bok/33.jpg
End
Last edited by eidolon on 17 Apr 2011, 21:22, edited 4 times in total.
eidolon
 
Posts: 56
Joined: 15 Sep 2009, 22:12
Location: Bavaria, Germany
Has thanked: 0 time
Been thanked: 0 time

Re: Card Contributions

Postby jhhh » 17 Apr 2011, 08:50

Name:Golgari Grave Troll
ManaCost:4 G
Types:Creature Skeleton Troll
Text:no text
PT:0/0
K:etbCounter:P1P1:X
A:AB$Regenerate | Cost$ 1 SubCounter<1/P1P1> | SpellDescription$ Regenerate CARDNAME.
K:Dredge 6
SVar:X:Count$TypeInYourYard.Creature
SVar:Rarity:Rare
SVar:http://magiccards.info/scans/en/rav/167.jpg
End
Name:Idle Thoughts
ManaCost:3 U
Types:Enchantment
Text:no text
A:AB$ Draw | Cost$ 2 | NumCards$ 1 | ActivatingCardsInHand$ 0 | SpellDescription$ Draw a card if you have no cards in hand.
SVar:Rarity:Uncommon
SVar:Picture:http://magiccards.info/scans/en/eve/23.jpg
End
jhhh
 
Posts: 58
Joined: 15 Oct 2010, 23:40
Has thanked: 0 time
Been thanked: 0 time

Re: Card Contributions

Postby Replika » 17 Apr 2011, 09:50

eidolon:
Nourishing Shoal has "X" as LifeAmount where it should be "Y".

Did you test Disrupting Shoal? I'd be pretty surprised if it worked correctly.

jhhh:
Golgari Grave-Troll needs a dash in its name.
Replika
 
Posts: 115
Joined: 30 Jan 2011, 21:15
Has thanked: 2 times
Been thanked: 3 times

Re: Card Contributions

Postby Sloth » 17 Apr 2011, 10:02

Added Far Wanderings and Esperzoa for ZzzzSleep and Backlash and Bargaining Table for eidolon. Thanks again.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

PreviousNext

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 36 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 36 users online :: 0 registered, 0 hidden and 36 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 36 guests

Login Form