It is currently 23 Aug 2019, 20:36
   
Text Size

Card Contributions

Post MTG Forge Related Programming Questions Here

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

Re: Card Contributions

Postby timmermac » 25 Jan 2011, 19:30

jhhh wrote:
Name:Lions Eye Diamond
ManaCost:0
Types:Artifact
Text:no text
A:AB$Mana|Cost$ Sac<1/CARDNAME> Discard<0/Hand> |Produced$W|Amount$3|SpellDescription$Add W W W to your mana pool.
A:AB$Mana|Cost$ Sac<1/CARDNAME> Discard<0/Hand> |Produced$U|Amount$3|SpellDescription$Add U U U to your mana pool.
A:AB$Mana|Cost$ Sac<1/CARDNAME> Discard<0/Hand> |Produced$B|Amount$3|SpellDescription$Add B B B to your mana pool.
A:AB$Mana|Cost$ Sac<1/CARDNAME> Discard<0/Hand> |Produced$R|Amount$3|SpellDescription$Add R R R to your mana pool.
A:AB$Mana|Cost$ Sac<1/CARDNAME> Discard<0/Hand> |Produced$G|Amount$3|SpellDescription$Add G G G to your mana pool.
SVar:RemAIDeck:True
SVar:Rarity:Rare
SVar:Picture:http://magiccards.info/scans/en/mr/272.jpg
End
Name:Ghost Quarter
ManaCost:no cost
Types:Land
Text:no text
A:AB$Mana|Cost$T|Produced$1|SpellDescription$Add 1 to your mana pool.
A:AB$Destroy | Cost$ T Sac<1/CARDNAME> | ValidTgts$ Land | TgtPrompt$ Select target land. | SubAbility$ SVar=DBChange | SpellDescription$ Destroy target land. Its controller may search his or her library for a basic land card, put it onto the battlefield, then shuffle his or her library.
SVar:DBChange:DB$ChangeZone | Origin$ Library | Destination$ Battlefield | Optional$ True | ChangeType$ Land.Basic | ChangeNum$ 1 | Defined$ TargetedController
SVar:Rarity:Uncommon
SVar:Picture:http://magiccards.info/scans/en/di/173.jpg
End
This should be Lion's Eye Diamond
"I just woke up, haven't had coffee, let alone a pee in 7 days, and I find out you stole my ass and made a ...mini-me! Carter, I should be irked currently, yes?" - Jack O'Neill
User avatar
timmermac
Tester
 
Posts: 1481
Joined: 17 May 2010, 20:36
Has thanked: 18 times
Been thanked: 89 times

Re: Card Contributions

Postby friarsol » 25 Jan 2011, 19:39

Lion's Eye Diamond needs some extra coding to work properly since it can only be activated as an Instant. (That is to say, if you are in the process of spending mana you can't activate it)
friarsol
Global Moderator
 
Posts: 7463
Joined: 15 May 2010, 04:20
Has thanked: 240 times
Been thanked: 933 times

Re: Card Contributions

Postby jhhh » 26 Jan 2011, 22:23

Name:Trygon Predator
ManaCost:1 G U
Types:Creature Beast
Text:
PT:2/3
K:Flying
T:Mode$ DamageDone | ValidSource$ Card.Self | ValidTarget$ Opponent | Optional$ True | Execute$ TrigDestroy | TriggerZones$ Battlefield | TriggerDescription$ Whenever Trygon Predator deals combat damage to a player, you may destroy target artifact or enchantment that player controls.
SVar:TrigDestroy:AB$Destroy | Cost$ 0 | ValidTgts$ Artifact.YouDontCtrl,Enchantment.YouDontCtrl | TgtPrompt$ Select target artifact or enchantment you don't control
SVar:Rarity:Uncommon
SVar:Picture:http://magiccards.info/scans/en/di/133.jpg
End
jhhh
 
Posts: 58
Joined: 15 Oct 2010, 23:40
Has thanked: 0 time
Been thanked: 0 time

Re: Card Contributions

Postby lazylockie » 27 Jan 2011, 04:39

Code: Select all
Name:Drana, Kalastria Bloodchief
ManaCost:3 B B
Types:Legendary Creature Vampire Shaman
Text:no text
PT:4/4
K:Flying
A:AB$Pump | Cost$ X | NumAtt$ 0 | NumDef$ -X | ValidTgts$ Creature | TgtPrompt$ Select target creature | SubAbility$ SVar=DBPump | SpellDescription$ Target creature gets -0/-X until end of turn.
SVar:DBPump:DB$Pump | NumAtt$ X | Defined$ Self
SVar:X:Count$xPaid
SVar:Picture:http://www.wizards.com/global/images/magic/general/drana_kalastria_bloodchief.jpg
SVar:RemAIDeck:True
SVar:Rarity:Rare
SetInfo:ROE|Rare|http://magiccards.info/scans/en/roe/107.jpg
End
Last edited by lazylockie on 27 Jan 2011, 05:11, edited 1 time in total.
lazylockie
 
Posts: 505
Joined: 13 Jul 2010, 22:44
Has thanked: 73 times
Been thanked: 15 times

Re: Card Contributions

Postby jeffwadsworth » 27 Jan 2011, 04:41

@jhhh Card is posted with a few fixes. Thanks!
Last edited by jeffwadsworth on 27 Jan 2011, 14:12, edited 2 times in total.
jeffwadsworth
Super Tester
 
Posts: 1164
Joined: 20 Oct 2010, 04:47
Location: USA
Has thanked: 286 times
Been thanked: 68 times

Re: Card Contributions

Postby jeffwadsworth » 27 Jan 2011, 05:13

@lazylockie, card was posted with a few tiny fixes. Thanks.
jeffwadsworth
Super Tester
 
Posts: 1164
Joined: 20 Oct 2010, 04:47
Location: USA
Has thanked: 286 times
Been thanked: 68 times

Re: Card Contributions

Postby lazylockie » 27 Jan 2011, 06:12

Code: Select all
Name:Lilting Refrain
ManaCost:1 U
Types:Enchantment
Text:no text
A:AB$Counter | Cost$ Sac<1/CARDNAME> | Type$ Spell | UnlessCost$ X | SpellDescription$ Counter target spell unless its controller pays X.
T:Mode$ Phase | Phase$ Upkeep | ValidPlayer$ You | TriggerZones$ Battlefield | Optional$ True | Execute$ TrigPutCounter | TriggerDescription$ At the beginning of your upkeep, you may put a verse counter on CARDNAME.
SVar:TrigPutCounter:AB$PutCounter | Cost$ 0 | Defined$ Self | CounterType$ VERSE | CounterNum$ 1
SVar:X:Count$CardCounters.VERSE
SVar:Picture:http://www.wizards.com/global/images/magic/general/lilting_refrain.jpg
SVar:Rarity:Uncommon
SetInfo:USG|Uncommon|http://magiccards.info/scans/en/us/83.jpg
Code: Select all
Name:Recantation
ManaCost:3 U U
Types:Enchantment
Text:no text
A:AB$ChangeZone | Cost$ U Sac<1/CARDNAME> | Origin$ Battlefield | Destination$ Hand | TargetMin$ 0 | TargetMax$ X | ValidTgts$ Permanent | TgtPrompt$ Select target permanent | SpellDescription$ Return X target permanents to their owners' hands.
T:Mode$ Phase | Phase$ Upkeep | ValidPlayer$ You | TriggerZones$ Battlefield | Optional$ True | Execute$ TrigPutCounter | TriggerDescription$ At the beginning of your upkeep, you may put a verse counter on CARDNAME.
SVar:TrigPutCounter:AB$PutCounter | Cost$ 0 | Defined$ Self | CounterType$ VERSE | CounterNum$ 1
SVar:X:Count$CardCounters.VERSE
SVar:Picture:http://www.wizards.com/global/images/magic/general/recantation.jpg
SVar:Rarity:Rare
SetInfo:USG|Rare|http://magiccards.info/scans/en/us/91.jpg
Code: Select all
Name:Rumbling Crescendo
ManaCost:3 R R
Types:Enchantment
Text:no text
A:AB$Destroy | Cost$ R Sac<1/CARDNAME> | TargetMin$ 0 | TargetMax$ X | ValidTgts$ Land | TgtPrompt$ Select target land | SpellDescription$ Destroy X target lands.
T:Mode$ Phase | Phase$ Upkeep | ValidPlayer$ You | TriggerZones$ Battlefield | Optional$ True | Execute$ TrigPutCounter | TriggerDescription$ At the beginning of your upkeep, you may put a verse counter on CARDNAME.
SVar:TrigPutCounter:AB$PutCounter | Cost$ 0 | Defined$ Self | CounterType$ VERSE | CounterNum$ 1
SVar:X:Count$CardCounters.VERSE
SVar:Picture:http://www.wizards.com/global/images/magic/general/rumbling_crescendo.jpg
SVar:Rarity:Rare
SetInfo:USG|Rare|http://magiccards.info/scans/en/us/210.jpg
Code: Select all
Name:Serra's Liturgy
ManaCost:2 W W
Types:Enchantment
Text:no text
A:AB$Destroy | Cost$ W Sac<1/CARDNAME> | TargetMin$ 0 | TargetMax$ X | ValidTgts$ Artifact,Enchantment | TgtPrompt$ Select target artifact or enchantment | SpellDescription$ Destroy X target artifacts and/or enchantments.
T:Mode$ Phase | Phase$ Upkeep | ValidPlayer$ You | TriggerZones$ Battlefield | Optional$ True | Execute$ TrigPutCounter | TriggerDescription$ At the beginning of your upkeep, you may put a verse counter on CARDNAME.
SVar:TrigPutCounter:AB$PutCounter | Cost$ 0 | Defined$ Self | CounterType$ VERSE | CounterNum$ 1
SVar:X:Count$CardCounters.VERSE
SVar:Picture:http://www.wizards.com/global/images/magic/general/serras_liturgy.jpg
SVar:Rarity:Rare
SetInfo:USG|Rare|http://magiccards.info/scans/en/us/49.jpg
Code: Select all
Name:Vile Requiem
ManaCost:2 B B
Types:Enchantment
Text:no text
A:AB$Destroy | Cost$ 1 B Sac<1/CARDNAME> | TargetMin$ 0 | TargetMax$ X | ValidTgts$ Creature.nonBlack | TgtPrompt$ Select target nonblack creature | SpellDescription$ Destroy X target nonblack creatures.
T:Mode$ Phase | Phase$ Upkeep | ValidPlayer$ You | TriggerZones$ Battlefield | Optional$ True | Execute$ TrigPutCounter | TriggerDescription$ At the beginning of your upkeep, you may put a verse counter on CARDNAME.
SVar:TrigPutCounter:AB$PutCounter | Cost$ 0 | Defined$ Self | CounterType$ VERSE | CounterNum$ 1
SVar:X:Count$CardCounters.VERSE
SVar:Picture:http://www.wizards.com/global/images/magic/general/vile_requiem.jpg
SVar:Rarity:Uncommon
SetInfo:USG|Uncommon|http://magiccards.info/scans/en/us/167.jpg
Code: Select all
Name:War Dance
ManaCost:G
Types:Enchantment
Text:no text
A:AB$Pump | Cost$ Sac<1/CARDNAME> | NumAtt$ +X | NumDef$ +X | ValidTgts$ Creature | TgtPrompt$ Select target creature | SpellDescription$ Target creature gets +X/+X until end of turn.
T:Mode$ Phase | Phase$ Upkeep | ValidPlayer$ You | TriggerZones$ Battlefield | Optional$ True | Execute$ TrigPutCounter | TriggerDescription$ At the beginning of your upkeep, you may put a verse counter on CARDNAME.
SVar:TrigPutCounter:AB$PutCounter | Cost$ 0 | Defined$ Self | CounterType$ VERSE | CounterNum$ 1
SVar:X:Count$CardCounters.VERSE
SVar:Picture:http://www.wizards.com/global/images/magic/general/war_dance.jpg
SVar:Rarity:Uncommon
SetInfo:USG|Uncommon|http://magiccards.info/scans/en/us/282.jpg
a few verse counters from Urza's Saga that were missing
lazylockie
 
Posts: 505
Joined: 13 Jul 2010, 22:44
Has thanked: 73 times
Been thanked: 15 times

Re: Card Contributions

Postby jeffwadsworth » 27 Jan 2011, 06:30

Great, I will test and post these on Thursday. Thanks!
jeffwadsworth
Super Tester
 
Posts: 1164
Joined: 20 Oct 2010, 04:47
Location: USA
Has thanked: 286 times
Been thanked: 68 times

Re: Card Contributions

Postby jhhh » 27 Jan 2011, 13:19

Name:Price of Progress
ManaCost:1 R
Types:Instant
Text:no text
A:SP$DealDamage | Cost$ 1 R | Defined$ Opponent | NumDmg$ XOpp | SubAbility$ SVar=DB | SpellDescription$ Price of Progress deals damage to each player equal to twice the number of nonbasic lands that player controls.
SVar:DB:DB$DealDamage | Defined$ You | NumDmg$ XYou
SVar:XOpp:Count$Valid Land.nonBasic+YouDontCtrl/Times.2
SVar:XYou:Count$Valid Land.nonBasic+YouCtrl/Times.2
SVar:RemAIDeck:True
SVar:Rarity:Uncommon
SVar:Picture:http://magiccards.info/scans/en/pd2/18.jpg
End
jhhh
 
Posts: 58
Joined: 15 Oct 2010, 23:40
Has thanked: 0 time
Been thanked: 0 time

Re: Card Contributions

Postby jeffwadsworth » 27 Jan 2011, 17:46

All cards posted. Please check for the few minor corrections made to them on the SVN.
jeffwadsworth
Super Tester
 
Posts: 1164
Joined: 20 Oct 2010, 04:47
Location: USA
Has thanked: 286 times
Been thanked: 68 times

Re: Card Contributions

Postby slapshot5 » 27 Jan 2011, 18:05

Does anyone know why my Whetwheel crashes when implemented as:
Code: Select all
Name:Whetwheel
ManaCost:4
Types:Artifact
Text:no text
K:Morph:3
A:AB$Mill | Cost$ X X T | NumCards$ X | ValidTgts$ Player | TgtPrompt$ Select target player | SpellDescription$ Target player puts the top X cards of his or her library into his or her graveyard.
SVar:X:Count$xPaid
SVar:RemAIDeck:True
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/whetwheel.jpg
End
It gives index out of range when parsing the X X T ability cost I believe. But other cards use X T for a cost and work fine, or at least used to. Two X's aren't supported?

-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 friarsol » 27 Jan 2011, 18:18

slapshot5 wrote:It gives index out of range when parsing the X X T ability cost I believe. But other cards use X T for a cost and work fine, or at least used to. Two X's aren't supported?
Some bad logic in ManaCost.java. Should be fixed now. It was just working for me.
friarsol
Global Moderator
 
Posts: 7463
Joined: 15 May 2010, 04:20
Has thanked: 240 times
Been thanked: 933 times


Re: Card Contributions

Postby lazylockie » 27 Jan 2011, 22:26

Name:Conquering Manticore
ManaCost:4 R R
Types:Creature Manticore
Text:no text
PT:5/5
K:Flying
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigThreaten | TriggerDescription$ When CARDNAME enters the battlefield, gain control of target creature an opponent controls until end of turn. Untap that creature. It gains haste until end of turn.
SVar:TrigThreaten:AB$GainControl | Cost$ 0 | TgtPrompt$ Choose target creature card you don't control | ValidTgts$ Creature.YouDontCtrl | LoseControl$ EOT | Untap$ True | AddKWs$ Haste | SpellDescription$ Gain control of target creature until end of turn. Untap that creature. It gains haste until end of turn.
SVar:Picture:http://www.wizards.com/global/images/magic/general/conquering_manticore.jpg
SVar:Rarity:Rare
SetInfo:ROE|Rare|http://magiccards.info/scans/en/roe/139.jpg
End
Seems to be working. The only problem is that I couldn't make it target a creature an opponent controls only.

Name:Escaped Null
ManaCost:3 B
Types:Creature Zombie Berserker
Text:no text
PT:1/2
K:Lifelink
T:Mode$ Blocks | ValidCard$ Card.Self | Execute$ TrigPump | TriggerDescription$ Whenever CARDNAME blocks or becomes blocked, it gets +5/+0 until end of turn.
T:Mode$ AttackerBlocked | ValidCard$ Card.Self | Execute$ TrigPump | TriggerDescription$ Whenever CARDNAME blocks or becomes blocked, it gets +5/+0 until end of turn.
SVar:TrigPump:AB$Pump | Cost$ 0 | Defined$ Self | NumAtt$ 5
SVar:Picture:http://www.wizards.com/global/images/magic/general/escaped_null.jpg
SVar:Rarity:Uncommon
SetInfo:ROE|Uncommon|http://magiccards.info/scans/en/roe/109.jpg
End
Name:Kiln Fiend
ManaCost:1 R
Types:Creature Elemental Beast
Text:no text
PT:1/2
T:Mode$ SpellCast | ValidCard$ Instant.YouCtrl,Sorcery.YouCtrl | TriggerZones$ Battlefield | Execute$ TrigPump | TriggerDescription$ Whenever you cast a instant or sorcery spell, CARDNAME gets +3/+0 until end of turn.
SVar:TrigPump:AB$Pump | Cost$ 0 | NumAtt$ +3 | NumDef$ +0 | Defined$ Self
SVar:Picture:http://www.wizards.com/global/images/magic/general/kiln_fiend.jpg
SVar:Rarity:Common
SetInfo:ROE|Common|http://magiccards.info/scans/en/roe/153.jpg
End
Name:Magmaw
ManaCost:3 R R
Types:Creature Elemental
Text:no text
PT:4/4
A:AB$DealDamage | Cost$ 1 Sac<1/Permanent.nonland> | Tgt$ TgtCP | NumDmg$ 1 | SpellDescription$ CARDNAME deals 1 damage to target creature or player.
SVar:Picture:http://www.wizards.com/global/images/magic/general/magmaw.jpg
SVar:Rarity:Rare
SetInfo:ROE|Rare|http://magiccards.info/scans/en/roe/158.jpg
End
Though when it prompts to sacrifice a nonland permanent it says: Sacrifice 1 Permanent.nonland

Name:Surrakar Spellblade
ManaCost:1 U U
Types:Creature Surrakar
Text:no text
PT:2/1
T:Mode$ SpellCast | ValidCard$ Instant.YouCtrl,Sorcery.YouCtrl | TriggerZones$ Battlefield | Optional$ True | Execute$ TrigPutCounter | TriggerDescription$ Whenever you cast a instant or sorcery spell, you may put a charge counter on CARDNAME.
T:Mode$ DamageDone | ValidSource$ Card.Self | ValidTarget$ Opponent | CombatDamage$ True | Optional$ True | Execute$ TrigDraw | TriggerDescription$ Whenever CARDNAME deals combat damage to a player, you may draw X cards, where X is the number of charge counters on CARDNAME.
SVar:TrigPutCounter:AB$PutCounter | Cost$ 0 | Defined$ Self | CounterType$ CHARGE | CounterNum$ 1
SVar:TrigDraw:AB$Draw | Cost$ 0 | Defined$ You | NumCards$ X
SVar:X:Count$CardCounters.CHARGE
SVar:Picture:http://www.wizards.com/global/images/magic/general/surrakar_spellblade.jpg
SVar:Rarity:Rare
SetInfo:ROE|Rare|http://magiccards.info/scans/en/roe/90.jpg
End
I'll edit this post as I make new cards.
Last edited by lazylockie on 27 Jan 2011, 23:21, edited 5 times in total.
lazylockie
 
Posts: 505
Joined: 13 Jul 2010, 22:44
Has thanked: 73 times
Been thanked: 15 times

Re: Card Contributions

Postby friarsol » 27 Jan 2011, 22:31

ValidTgts is much more flexible, and allows you to do things like that. Replace Tgt$ TgtC with:

Code: Select all
TgtPrompt$ Choose target creature card you don't control | ValidTgts$ Creature.YouDontCtrl
friarsol
Global Moderator
 
Posts: 7463
Joined: 15 May 2010, 04:20
Has thanked: 240 times
Been thanked: 933 times

PreviousNext

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 4 guests


Who is online

In total there are 4 users online :: 0 registered, 0 hidden and 4 guests (based on users active over the past 10 minutes)
Most users ever online was 287 on 31 Mar 2019, 04:11

Users browsing this forum: No registered users and 4 guests

Login Form