It is currently 07 Jul 2021, 23:42
   
Text Size

Card Contributions

Post MTG Forge Related Programming Questions Here

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

Re: Card Contributions

Postby ZzzzSleep » 18 Feb 2011, 02:57

Name:Electric Eel
ManaCost:U
Types:Creature Fish
Text:no text
PT:1/1
A:AB$Pump | Cost$ R R | NumAtt$ +2 | SubAbility$ DamageYou/1 | SpellDescription$ CARDNAME gets +2/+0 until end of turn and deals 1 damage to you.
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigDealDamage | TriggerDescription$ When CARDNAME enters the battlefield, it deals 1 damage to you.
SVar:TrigDealDamage:AB$DealDamage | Cost$ 0 | Defined$ You | NumDmg$ 1
SVar:Rarity:Uncommon
End
Name:Balduvian Dead
ManaCost:3 B
Types:Creature Zombie
Text:no text
PT:2/2
A:AB$ChangeZone | Cost$ 2 R | Origin$ Graveyard | Destination$ Exile | TgtPrompt$ Choose target card in a graveyard | ValidTgts$ Creature.YouCtrl | SubAbility$ SVar=MakeGraveborn | SpellDescription$ Exile a creature card from your graveyard: Put a 3/1 black and red Graveborn creature token with haste onto the battlefield. Sacrifice it at the beginning of the next end step.
SVar:MakeGraveborn:DB$Token | Cost$ 0 | TokenAmount$ 1 | TokenName$ Graveborn | TokenTypes$ Creature,Graveborn | TokenOwner$ Controller | TokenColors$ Red,Black | TokenPower$ 3 | TokenToughness$ 1 | TokenKeywords$ Haste<>At the beginning of the end step, sacrifice CARDNAME. | SpellDescription$ Put a 3/1 black and red Graveborn creature token with haste onto the battlefield. Sacrifice it at the beginning of the next end step.
SVar:Rarity:Uncommon
End
Balduvian Dead isn't perfect, because it's not removing the creature as a cost. I'll leave it up to you guys whether it get committed in its current state or not.
ZzzzSleep
 
Posts: 182
Joined: 29 Oct 2010, 02:19
Has thanked: 18 times
Been thanked: 18 times

Re: Card Contributions

Postby Zirbert » 18 Feb 2011, 03:42

. Balduvian Dead is actually easier to code with the exile as a cost - I think this will do it, but I'm not sure, because I'm not running the SVN and exile from grave as a cost isn't implemented yet in the 2-14 Beta. I'm working my way through the "exile as a cost" cards, but don't want to post them, for the most part, until I can test them first:

Code: Select all
Name:Balduvian Dead
ManaCost:3 B
Types:Creature Zombie
Text:no text
PT:2/3
A:AB$ Token | Cost$ 2 R ExileFromGrave<1/Creature> | TokenAmount$ 1 | TokenName$ Graveborn | TokenTypes$ Creature,Graveborn | TokenOwner$ Controller | TokenColors$ Black,Red | TokenPower$ 3 | TokenToughness$ 1 | TokenKeywords$ Haste<>At the beginning of the end step, sacrifice CARDNAME. | SpellDescription$ Put a 3/1 black and red Graveborn creature token with haste onto the battlefield. Sacrifice it at the beginning of the next end step.
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/balduvian_dead.jpg
SetInfo:ALL|Uncommon|http://magiccards.info/scans/en/ai/93.jpg
End
Zirbert
 
Posts: 511
Joined: 13 Oct 2010, 16:04
Has thanked: 104 times
Been thanked: 19 times

Re: Card Contributions

Postby slapshot5 » 18 Feb 2011, 04:04

I think the token keywords are separated by a & in AFs.
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. » 18 Feb 2011, 13:51

Zirbert wrote:I'm not running the SVN and exile from grave as a cost isn't implemented yet in the 2-14 Beta. I'm working my way through the "exile as a cost" cards, but don't want to post them, for the most part, until I can test them first
`
The forge 02-14-2011 topic now has a link to a newer archive using rev 6469. New cards, code, bug fixes, launchers, archive compression format. Check it out. :)
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 Zirbert » 18 Feb 2011, 22:39

Chris H. wrote:
Zirbert wrote:I'm not running the SVN and exile from grave as a cost isn't implemented yet in the 2-14 Beta. I'm working my way through the "exile as a cost" cards, but don't want to post them, for the most part, until I can test them first
`
The forge 02-14-2011 topic now has a link to a newer archive using rev 6469. New cards, code, bug fixes, launchers, archive compression format. Check it out. :)
Yup, and Exile from Grave was implemented in... r6470. To quote Maxwell Smart, "Missed it - by that much!" :-)
Zirbert
 
Posts: 511
Joined: 13 Oct 2010, 16:04
Has thanked: 104 times
Been thanked: 19 times

Re: Card Contributions

Postby Chris H. » 19 Feb 2011, 00:01

Zirbert wrote:Yup, and Exile from Grave was implemented in... r6470. To quote Maxwell Smart, "Missed it - by that much!" :-)
`
"Sorry about that chief."

: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 lazylockie » 19 Feb 2011, 02:04

Attachments
PCY.zip
(7.83 KiB) Downloaded 106 times
lazylockie
 
Posts: 508
Joined: 13 Jul 2010, 22:44
Has thanked: 74 times
Been thanked: 15 times

Re: Card Contributions

Postby jhhh » 19 Feb 2011, 09:53

Name:Grim Lavamancer
ManaCost:R
Types:Creature Human Wizard
Text:no text
PT:1/1
A:AB$DealDamage | Cost$ R T ExileFromGrave<2/card> | Tgt$ TgtCP | NumDmg$ 2 | SpellDescription$ CARDNAME deals 2 damage to target creature or player.
SVar:Rarity:Rare
SVar:Picture:http://magiccards.info/scans/en/tr/100.jpg
End
jhhh
 
Posts: 58
Joined: 15 Oct 2010, 23:40
Has thanked: 0 time
Been thanked: 0 time

Re: Card Contributions

Postby Sloth » 19 Feb 2011, 12:37

jhhh wrote:
Name:Grim Lavamancer
ManaCost:R
Types:Creature Human Wizard
Text:no text
PT:1/1
A:AB$DealDamage | Cost$ R T ExileFromGrave<2/card> | Tgt$ TgtCP | NumDmg$ 2 | SpellDescription$ CARDNAME deals 2 damage to target creature or player.
SVar:Rarity:Rare
SVar:Picture:http://magiccards.info/scans/en/tr/100.jpg
End
Grim Lavamancer was the very first card with ExileFromGrave I added as an example.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: Card Contributions

Postby slapshot5 » 19 Feb 2011, 17:11

These are all added now. Thanks!

-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 Zirbert » 20 Feb 2011, 03:18

Woohoo! As of the new Beta, my Homarid Spawning Bed code works!

Code: Select all
Name:Homarid Spawning Bed
ManaCost:U U
Types:Enchantment
Text:no text
A:AB$Token | Cost$ 1 U U Sac<1/Creature.Blue> | TokenImage$ U 1 1 Camarid | TokenAmount$ X | TokenName$ Camarid | TokenTypes$ Creature,Camarid | TokenOwner$ Controller | TokenColors$ Blue | TokenPower$ 1 | TokenToughness$ 1 | SpellDescription$ Put X 1/1 blue Camarid creature tokens onto the battlefield, where X is the sacrificed creature's converted mana cost.
SVar:X:Sacrificed$CardManaCost
SVar:RemAIDeck:True
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/homarid_spawning_bed.jpg
SetInfo:FEM|Uncommon|http://magiccards.info/scans/en/fe/106.jpg
End
I'm currently working on "exile from grave as a cost" cards. I'll post either a zip or some of them separately (depends how many I get done tonight) ASAP after testing.
Zirbert
 
Posts: 511
Joined: 13 Oct 2010, 16:04
Has thanked: 104 times
Been thanked: 19 times

Re: Card Contributions

Postby Chris H. » 20 Feb 2011, 14:11

Your Homarid Spawning Bed was added to the SVN, thank you.

I almost added the new beta as a bug-fix + new code release to the previous beta version. But that would have made things more difficult for some members of the user base. The list of links were starting to get too long.
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 Zirbert » 20 Feb 2011, 20:39

Here's the Grave-Cost Gang, all tested and seem to be working fine. The AI uses most of them quite capably. It's especially aggressive with Bearscape. This pack contains these cards:

Bearscape
Cabal Patriarch
Cabal Surgeon
Cryptwailing
Organ Grinder
Salvage Titan
Scarred Vinebreeder
Screams of the Damned
Soul Shepherd
Woodwraith Strangler

I'm still planning on trying Cabal Inquisitor and Drudge Spell - I think they'll just take a little more research on syntax (I need to look at some cards with Threshold and that make tokens with abilities, respectively). I'll also try converting Scarblade Elite to script.

I tried but failed on these ones. If anyone else can script them, please do:
Necropolis (don't know how to record the CMC of the exiled card - "SVar:X:Exiled$CardManaCost" doesn't do it)
Molten-Tail Masticore (don't know how to do the upkeep cost)
Painbringer (that darn "any number" clause)

-Zirbert
Attachments
Grave-Cost Gang.zip
(4.14 KiB) Downloaded 95 times
Zirbert
 
Posts: 511
Joined: 13 Oct 2010, 16:04
Has thanked: 104 times
Been thanked: 19 times

PreviousNext

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 8 guests


Who is online

In total there are 8 users online :: 0 registered, 0 hidden and 8 guests (based on users active over the past 10 minutes)
Most users ever online was 1922 on 07 Jun 2021, 06:01

Users browsing this forum: No registered users and 8 guests

Login Form