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

Card Contributions

Post MTG Forge Related Programming Questions Here

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

Re: Card Contributions

Postby Sloth » 16 Dec 2011, 10:52

squee1968 wrote:Here's Benalish Lancer. I've playtested it, and it works.

When I was trying to script Benalish Lancer, I noticed that Kavu Titan was hardcorded. So I used the same methods to script it. Didn't playtest, but I dont see why it wouldn't work. I'm pretty sure I got all the little boxes correct.
Both added to the SVN. Thanks squee1968.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: Card Contributions

Postby friarsol » 24 Dec 2011, 05:01

For those looking to Contribute, converting hardcoded cards to scriptables is just as important as adding new cards. I've added some new leads about the Sorceries that are hardcoded http://www.slightlymagic.net/wiki/Forge_Hardcoded

I'll try to gather all of the hardcoded cards of other types and make a list of what might be convertible.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Card Contributions

Postby moomarc » 31 Dec 2011, 13:19

I've scripted Copperhoof Vorrac, but I'm not sure how fair it is on the AI opponent. Should I commit?

Copperhoof Vorrac | Open
Code: Select all
Name:Copperhoof Vorrac
ManaCost:3 G G
Types:Creature Boar Beast
Text:no text
PT:2/2
S:Mode$ Continuous | Affected$ Card.Self | AddPower$ X | AddToughness$ X | Description$ CARDNAME gets +1/+1 for each untapped permanent your opponents control.
SVar:X:Count$Valid Permanent.untapped+YouDontCtrl
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/copperhoof_vorrac.jpg
SetInfo:MRD|Rare|http://magiccards.info/scans/en/mi/116.jpg
Oracle:Copperhoof Vorrac gets +1/+1 for each untapped permanent your opponents control.
End
-Marc
User avatar
moomarc
Pixel Commander
 
Posts: 2091
Joined: 04 Jun 2010, 15:22
Location: Johannesburg, South Africa
Has thanked: 371 times
Been thanked: 372 times

Re: Card Contributions

Postby mark » 01 Jan 2012, 20:55

please add
Code: Select all
SetInfo:10E|Common|http://magiccards.info/scans/en/10e/76.jpg
to Counsel of the Soratami
mark
 
Posts: 138
Joined: 28 Dec 2011, 11:32
Has thanked: 6 times
Been thanked: 11 times

Re: Card Contributions

Postby slapshot5 » 01 Jan 2012, 21:25

mark wrote:please add
Code: Select all
SetInfo:10E|Common|http://magiccards.info/scans/en/10e/76.jpg
to Counsel of the Soratami
done.

-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 squee1968 » 02 Jan 2012, 18:00

Here's Dead Reckoning. I've playtested, and it works perfectly AFAICT, but for some reason probably obvious to everyone but me, the card text doesn't show up. Please fix and add. I know I'm going to feel like a complete moron when the error is pointed out to me, but it's the only way I'm going to learn.

Code: Select all
Name:Dead Reckoning
ManaCost:1 B B
Types:Sorcery
Text:no text
A:SP$ChangeZone | Cost$ 1 B B | ValidTgts$ Creature.YouCtrl | Origin$ Graveyard | Destination$ Library | TgtPrompt$ Choose target creature card in your graveyard. | SubAbility$ DBDamage | SpellDescription$ You may put target creature card from your graveyard on top of your library. If you do, Dead Reckoning deals damage equal to that card's power to target creature.
SVar:DBDamage:DB$DealDamage | Cost$ 0 | ValidTgts$ Creature | TgtPrompt$ Select target creature | NumDmg$ X
SVar:X:Targeted$CardPower
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/dead_reckoning.jpg
SetInfo:WWK|Common|http://magiccards.info/scans/wwk/en/56.jpg
Oracle:You may put target creature card from your graveyard on top of your library. If you do, Dead Reckoning deals damage equal to that card's power to target creature.
End
EDIT: Yep, I knew it was something simple. DOH!!!
Fixed.
Last edited by squee1968 on 02 Jan 2012, 19:58, edited 2 times in total.
squee1968
 
Posts: 254
Joined: 18 Nov 2011, 03:28
Has thanked: 110 times
Been thanked: 45 times

Re: Card Contributions

Postby moomarc » 02 Jan 2012, 18:31

squee1968 wrote:Here's Dead Reckoning. I've playtested, and it works perfectly AFAICT, but for some reason probably obvious to everyone but me, the card text doesn't show up. Please fix and add. I know I'm going to feel like a complete moron when the error is pointed out to me, but it's the only way I'm going to learn.

Code: Select all
Name:Dead Reckoning
ManaCost:1 B B
Types:Sorcery
Text:no text
A:SP$ChangeZone | Cost$ 1 B B | ValidTgts$ Creature.YouCtrl | Origin$ Graveyard | Destination$ Library | TgtPrompt$ Choose target creature card in your graveyard. | SubAbility$ DBDamage
SVar:DBDamage:DB$DealDamage | Cost$ 0 | ValidTgts$ Creature | TgtPrompt$ Select target creature | NumDmg$ X
SVar:X:Targeted$CardPower
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/dead_reckoning.jpg
SetInfo:WWK|Common|http://magiccards.info/scans/wwk/en/56.jpg
Oracle:You may put target creature card from your graveyard on top of your library. If you do, Dead Reckoning deals damage equal to that card's power to target creature.
End
I'm not near my pc at the moment so can't commit for you, but I can tell you why the description isn't showing. Any spell or ability line should end with "| SpellDescription$ ..."
Similarly static ability lines end with "| Description$ ..." And triggers get "| TriggerDescription$ ..."
These are the bits that get parsed for the card details panel, not the Oracle text (that's used for the deck editor search to make the deck editors load faster)
-Marc
User avatar
moomarc
Pixel Commander
 
Posts: 2091
Joined: 04 Jun 2010, 15:22
Location: Johannesburg, South Africa
Has thanked: 371 times
Been thanked: 372 times

Re: Card Contributions

Postby Chris H. » 02 Jan 2012, 18:36

squee1968 wrote:Here's Dead Reckoning. I've playtested, and it works perfectly AFAICT, but for some reason probably obvious to everyone but me, the card text doesn't show up. Please fix and add. I know I'm going to feel like a complete moron when the error is pointed out to me, but it's the only way I'm going to learn.

Code: Select all
Name:Dead Reckoning
ManaCost:1 B B
Types:Sorcery
Text:no text
A:SP$ChangeZone | Cost$ 1 B B | ValidTgts$ Creature.YouCtrl | Origin$ Graveyard | Destination$ Library | TgtPrompt$ Choose target creature card in your graveyard. | SubAbility$ DBDamage
SVar:DBDamage:DB$DealDamage | Cost$ 0 | ValidTgts$ Creature | TgtPrompt$ Select target creature | NumDmg$ X
SVar:X:Targeted$CardPower
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/dead_reckoning.jpg
SetInfo:WWK|Common|http://magiccards.info/scans/wwk/en/56.jpg
Oracle:You may put target creature card from your graveyard on top of your library. If you do, Dead Reckoning deals damage equal to that card's power to target creature.
End
`
I hope that you do not mind a hint. :)

Look at the script for the card Hua Tuo, Honored Physician and look for the SpellDescription$. I do not believe that the Oracle field has been hooked up to the code base at this time. :)
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 squee1968 » 03 Jan 2012, 00:05

Coalition Relic, using the new "Produced$ Any" method
Code: Select all
Name:Coalition Relic
ManaCost:3
Types:Artifact
Text:no text
A:AB$ Mana | Cost$ T | Produced$ Any | Amount$ 1 | SpellDescription$ Add one mana of any color to your mana pool.
A:AB$ PutCounter | Cost$ T | CounterType$ CHARGE | CounterNum$ 1 | SpellDescription$ Put a charge counter on CARDNAME.
T:Mode$ Phase | Phase$ Main1 | ValidPlayer$ You | TriggerZones$ Battlefield | Execute$ TrigGetMana | TriggerDescription$ At the beginning of your precombat main phase, remove all charge counters from CARDNAME. Add one mana of any color to your mana pool for each charge counter removed this way.
SVar:TrigGetMana:AB$ Mana | Cost$ SubCounter<All/CHARGE> | Produced$ Any | Amount$ X| SpellDescription$ Add one mana of any color to your mana pool for each charge counter removed this way.
SVar:X:SVar$CostCountersRemoved
SVar:RemAIDeck:True
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/coalition_relic.jpg
SetInfo:FUT|Rare|http://magiccards.info/scans/fut/en/161.jpg
Oracle:{T}: Add one mana of any color to your mana pool.\n{T}: Put a charge counter on Coalition Relic.\nAt the beginning of your precombat main phase, remove all charge counters from Coalition Relic. Add one mana of any color to your mana pool for each charge counter removed this way.
End
Gerrard Capashen
Code: Select all
Name:Gerrard Capashen
ManaCost:3 W W
Types:Legendary Creature Human Soldier
Text:no text
PT:3/4
T:Mode$ Phase | Phase$ Upkeep | ValidPlayer$ You | TriggerZones$ Battlefield | Execute$ TrigGainLife | TriggerDescription$ At the beginning of your upkeep, you gain 1 life for each card in target opponent’s hand.
SVar:TrigGainLife:AB$GainLife | Cost$ 0 | LifeAmount$ X
SVar:X:Count$InOppHand
A:AB$ Tap | Cost$ 3 W | ValidTgts$ Creature | TgtPrompt$ Select target creature | IsPresent$ Card.Self+attacking | SpellDescription$ Tap target creature. Activate this ability only if CARDNAME is attacking.
SVar:RemAIDeck:True
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/gerrard_capashen.jpg
SetInfo:APC|Rare|http://magiccards.info/scans/ap/en/11.jpg
Oracle:At the beginning of your upkeep, you gain 1 life for each card in target opponent’s hand.\n{3}{W}: Tap target creature. Activate this ability only if Gerrard Capashen is attacking.
End
squee1968
 
Posts: 254
Joined: 18 Nov 2011, 03:28
Has thanked: 110 times
Been thanked: 45 times

Re: Card Contributions

Postby friarsol » 03 Jan 2012, 00:16

Does using a Cost with Coalition Relic 's trigger make it optional? Because it shouldn't be.

Gerrard doesn't seem to target, which is required since Player's can have Shroud now.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Card Contributions

Postby squee1968 » 03 Jan 2012, 01:18

friarsol wrote:Does using a Cost with Coalition Relic 's trigger make it optional? Because it shouldn't be.
You're absolutely right about this. Does this fix it?
Code: Select all
Name:Coalition Relic
ManaCost:3
Types:Artifact
Text:no text
A:AB$ Mana | Cost$ T | Produced$ Any | Amount$ 1 | SpellDescription$ Add one mana of any color to your mana pool.
A:AB$ PutCounter | Cost$ T | CounterType$ CHARGE | CounterNum$ 1 | SpellDescription$ Put a charge counter on CARDNAME.
T:Mode$ Phase | Phase$ Main1 | ValidPlayer$ You | TriggerZones$ Battlefield | Execute$ TrigRemove | TriggerDescription$ At the beginning of your precombat main phase, remove all charge counters from CARDNAME. Add one mana of any color to your mana pool for each charge counter removed this way.
SVar:TrigRemove:AB$ RemoveCounterAll | Cost$ 0 | CounterType$ CHARGE | SubAbility$ TrigGetMana
SVar:TrigGetMana:AB$ Mana | Cost$ 0 | Produced$ Any | Amount$ X | SpellDescription$ Add one mana of any color to your mana pool for each charge counter removed this way.
SVar:X:SVar$CountersRemoved
SVar:RemAIDeck:True
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/coalition_relic.jpg
SetInfo:FUT|Rare|http://magiccards.info/scans/fut/en/161.jpg
Oracle:{T}: Add one mana of any color to your mana pool.\n{T}: Put a charge counter on Coalition Relic.\nAt the beginning of your precombat main phase, remove all charge counters from Coalition Relic. Add one mana of any color to your mana pool for each charge counter removed this way.
End
Gerrard doesn't seem to target, which is required since Player's can have Shroud now.
AFAICT, Gerrard's ability doesn't target a player, just a target creature. Same ability as Master Decoy.

Edited for ArsenalNut's corrections. Thanks for the explanation as well.
Last edited by squee1968 on 03 Jan 2012, 04:31, edited 1 time in total.
squee1968
 
Posts: 254
Joined: 18 Nov 2011, 03:28
Has thanked: 110 times
Been thanked: 45 times

Re: Card Contributions

Postby timmermac » 03 Jan 2012, 01:52

squee1968 wrote:
friarsol wrote:Does using a Cost with Coalition Relic 's trigger make it optional? Because it shouldn't be.
You're absolutely right about this. Does this fix it?
Code: Select all
Name:Coalition Relic
ManaCost:3
Types:Artifact
Text:no text
A:AB$ Mana | Cost$ T | Produced$ Any | Amount$ 1 | SpellDescription$ Add one mana of any color to your mana pool.
A:AB$ PutCounter | Cost$ T | CounterType$ CHARGE | CounterNum$ 1 | SpellDescription$ Put a charge counter on CARDNAME.
T:Mode$ Phase | Phase$ Main1 | ValidPlayer$ You | TriggerZones$ Battlefield | Execute$ TrigRemove | TriggerDescription$ At the beginning of your precombat main phase, remove all charge counters from CARDNAME. Add one mana of any color to your mana pool for each charge counter removed this way.
SVar:TrigRemove:AB$ RemoveCounterAll | Cost$ 0 | ValidCards$ Creature | CounterType$ CHARGE | AllCounters$ True | SubAbility$ TrigGetMana
SVar:TrigGetMana:AB$ Mana | Cost$ 0 | Produced$ Any | Amount$ X | SpellDescription$ Add one mana of any color to your mana pool for each charge counter removed this way.
SVar:X:SVar$CountersRemoved
SVar:RemAIDeck:True
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/coalition_relic.jpg
SetInfo:FUT|Rare|http://magiccards.info/scans/fut/en/161.jpg
Oracle:{T}: Add one mana of any color to your mana pool.\n{T}: Put a charge counter on Coalition Relic.\nAt the beginning of your precombat main phase, remove all charge counters from Coalition Relic. Add one mana of any color to your mana pool for each charge counter removed this way.
End
Gerrard doesn't seem to target, which is required since Player's can have Shroud now.
AFAICT, Gerrard's ability doesn't target a player, just a target creature. Same ability as Master Decoy.
I think the question is about Gerrard's upkeep ability, which might be affected if an opponent gains shroud.
"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: 1512
Joined: 17 May 2010, 20:36
Has thanked: 18 times
Been thanked: 95 times

Re: Card Contributions

Postby squee1968 » 03 Jan 2012, 03:42

Now that I can't figure out how to fix. :(
So what happens now? Should I edit my post and delete that card out?
squee1968
 
Posts: 254
Joined: 18 Nov 2011, 03:28
Has thanked: 110 times
Been thanked: 45 times

Re: Card Contributions

Postby ArsenalNut » 03 Jan 2012, 04:01

squee1968 wrote:
friarsol wrote:Does using a Cost with Coalition Relic 's trigger make it optional? Because it shouldn't be.
You're absolutely right about this. Does this fix it?
Code: Select all
Name:Coalition Relic
ManaCost:3
Types:Artifact
Text:no text
A:AB$ Mana | Cost$ T | Produced$ Any | Amount$ 1 | SpellDescription$ Add one mana of any color to your mana pool.
A:AB$ PutCounter | Cost$ T | CounterType$ CHARGE | CounterNum$ 1 | SpellDescription$ Put a charge counter on CARDNAME.
T:Mode$ Phase | Phase$ Main1 | ValidPlayer$ You | TriggerZones$ Battlefield | Execute$ TrigRemove | TriggerDescription$ At the beginning of your precombat main phase, remove all charge counters from CARDNAME. Add one mana of any color to your mana pool for each charge counter removed this way.
SVar:TrigRemove:AB$ RemoveCounterAll | Cost$ 0 | ValidCards$ Creature | CounterType$ CHARGE | AllCounters$ True | SubAbility$ TrigGetMana
SVar:TrigGetMana:AB$ Mana | Cost$ 0 | Produced$ Any | Amount$ X | SpellDescription$ Add one mana of any color to your mana pool for each charge counter removed this way.
SVar:X:SVar$CountersRemoved
SVar:RemAIDeck:True
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/coalition_relic.jpg
SetInfo:FUT|Rare|http://magiccards.info/scans/fut/en/161.jpg
Oracle:{T}: Add one mana of any color to your mana pool.\n{T}: Put a charge counter on Coalition Relic.\nAt the beginning of your precombat main phase, remove all charge counters from Coalition Relic. Add one mana of any color to your mana pool for each charge counter removed this way.
End
The remove counters line should be
Code: Select all
SVar:TrigRemove:AB$ RemoveCounterAll | Cost$ 0 | CounterType$ CHARGE | SubAbility$ TrigGetMana
If no "ValidCards" is specified, the counters are removed from the card itself by default.
"AllCounters" removes all counters created by the card when it leaves the battlefield but it is not necessary since Coalition Relic only puts counters on itself.
So many cards, so little time
User avatar
ArsenalNut
 
Posts: 512
Joined: 08 Jul 2011, 03:49
Has thanked: 27 times
Been thanked: 121 times

Re: Card Contributions

Postby squee1968 » 07 Jan 2012, 23:33

Harmonic Sliver

Code: Select all
Name:Harmonic Sliver
ManaCost:1 G W
Types:Creature Sliver
Text:no text
PT:1/1
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Sliver | TriggerZones$ Battlefield | Execute$ TrigDestroy | TriggerDescription$ All Slivers have "When this permanent enters the battlefield, destroy target artifact or enchantment."
SVar:TrigDestroy:DB$Destroy | Cost$ 0 | ValidTgts$ Artifact,Enchantment | TgtPrompt$ Select target artifact or enchantment.
SVar:RemAIDeck:True
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/harmonic_sliver.jpg
SetInfo:TSP|Uncommon|http://magiccards.info/scans/ts/en/240.jpg
Oracle:All Slivers have "When this permanent enters the battlefield, destroy target artifact or enchantment."
End
I used Dormant Sliver as a template, so it should work. As always, please let me know what, if any, mistakes are made, so I can learn from them.

Edit: Added 2 more slivers.

Sedge Sliver
Code: Select all
Name:Sedge Sliver
ManaCost:2 R
Types:Creature Sliver
Text:no text
PT:2/2
S:Mode$ Continuous | Affected$ Creature.Sliver | AddPower$ 1 | AddToughness$ 1 | CheckSVar$ X | SVarCompare$ GE1 | Description$ All Sliver creatures have "This creature gets +1/+1 as long as you control a Swamp."
S:Mode$ Continuous | Affected$ Sliver | AddAbility$ Pump | Description$ All Slivers have "B: Regenerate this permanent."
SVar:X:Count$Valid Swamp.YouCtrl
SVar:Pump:AB$Regenerate | Cost$ B | SpellDescription$ Regenerate CARDNAME.
SVar:BuffedBy:Sliver
SVar:PlayMain1:TRUE
SVar:RemAIDeck:True
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/sedge_sliver.jpg
SetInfo:TSP|Rare|http://magiccards.info/scans/ts/en/177.jpg
Oracle:All Sliver creatures have "This creature gets +1/+1 as long as you control a Swamp."\nAll Slivers have "{B}: Regenerate this permanent."
End
Mesmeric Sliver
Code: Select all
Name:Mesmeric Sliver
ManaCost:3 U
Types:Creature Sliver
Text:no text
PT:2/2
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Sliver | TriggerZones$ Battlefield | Execute$ TrigDig | TriggerDescription$ All Slivers have "When this permanent enters the battlefield, you may fateseal 1."
SVar:TrigDig:AB$Dig | Cost$ 0 | Defined$ Opponent | DigNum$ 1 | AnyNumber$ True | DestinationZone$ Library | LibraryPosition$ -1 | LibraryPosition2$ 0
SVar:RemAIDeck:True
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/mesmeric_sliver.jpg
SetInfo:FUT|Common|http://magiccards.info/scans/fut/en/53.jpg
Oracle:All Slivers have "When this permanent enters the battlefield, you may fateseal 1." (To fateseal 1, its controller looks at the top card of an opponent’s library, then he or she may put that card on the bottom of that library.)
End
Last edited by squee1968 on 08 Jan 2012, 09:00, edited 1 time in total.
squee1968
 
Posts: 254
Joined: 18 Nov 2011, 03:28
Has thanked: 110 times
Been thanked: 45 times

PreviousNext

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 37 guests

Main Menu

User Menu

Our Partners


Who is online

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

Login Form