Card Contributions
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
Re: Card Contributions
by Sloth » 16 Dec 2011, 10:52
Both added to the SVN. Thanks squee1968.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.
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: Card Contributions
by 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.
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
by 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
-
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
by mark » 01 Jan 2012, 20:55
please add
- Code: Select all
SetInfo:10E|Common|http://magiccards.info/scans/en/10e/76.jpg
Re: Card Contributions
by slapshot5 » 01 Jan 2012, 21:25
done.mark wrote:please addto Counsel of the Soratami
- Code: Select all
SetInfo:10E|Common|http://magiccards.info/scans/en/10e/76.jpg
-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
by 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.
Fixed.
- 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
Fixed.
Last edited by squee1968 on 02 Jan 2012, 19:58, edited 2 times in total.
Re: Card Contributions
by moomarc » 02 Jan 2012, 18:31
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$ ..."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
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
-
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
by 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.

-
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
by 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
- 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
Re: Card Contributions
by 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.
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
by squee1968 » 03 Jan 2012, 01:18
You're absolutely right about this. Does this fix it?friarsol wrote:Does using a Cost with Coalition Relic 's trigger make it optional? Because it shouldn't be.
- 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
AFAICT, Gerrard's ability doesn't target a player, just a target creature. Same ability as Master Decoy.Gerrard doesn't seem to target, which is required since Player's can have Shroud now.
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.
Re: Card Contributions
by timmermac » 03 Jan 2012, 01:52
I think the question is about Gerrard's upkeep ability, which might be affected if an opponent gains shroud.squee1968 wrote:You're absolutely right about this. Does this fix it?friarsol wrote:Does using a Cost with Coalition Relic 's trigger make it optional? Because it shouldn't be.
- 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.
EndAFAICT, Gerrard's ability doesn't target a player, just a target creature. Same ability as Master Decoy.Gerrard doesn't seem to target, which is required since Player's can have Shroud now.
"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
Re: Card Contributions
by 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?

So what happens now? Should I edit my post and delete that card out?
Re: Card Contributions
by ArsenalNut » 03 Jan 2012, 04:01
The remove counters line should besquee1968 wrote:You're absolutely right about this. Does this fix it?friarsol wrote:Does using a Cost with Coalition Relic 's trigger make it optional? Because it shouldn't be.
- 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
- Code: Select all
SVar:TrigRemove:AB$ RemoveCounterAll | Cost$ 0 | CounterType$ CHARGE | SubAbility$ TrigGetMana
"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
-
ArsenalNut - Posts: 512
- Joined: 08 Jul 2011, 03:49
- Has thanked: 27 times
- Been thanked: 121 times
Re: Card Contributions
by squee1968 » 07 Jan 2012, 23:33
Harmonic Sliver
Edit: Added 2 more slivers.
Sedge 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
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
- 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.
Who is online
Users browsing this forum: No registered users and 36 guests