Card Contributions
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
Re: Card Contributions
by Sloth » 04 May 2011, 06:51
Too late, it was already added.ZzzzSleep wrote:Looks like Priest of Urabrask is just a recoloured Priest of Gix, so I've added it to the wiki and here too.
- Code: Select all
Name:Priest of Urabrask
ManaCost:2 R
Types:Creature Human Cleric
Text:no text
PT:2/1
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigMana | TriggerDescription$ When CARDNAME enters the battlefield, add R R R to your mana pool.
SVar:TrigMana:AB$Mana | Cost$ 0 | Produced$ R | Amount$ 3
SVar:RemAIDeck:True
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/priest_of_urabrask.jpg
End
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: Card Contributions
by ZzzzSleep » 05 May 2011, 13:00
So much better than Necrite!
- Code: Select all
Name:Blind Zealot
ManaCost:1 B B
Types:Creature Human Cleric
Text:no text
PT:2/2
K:Intimidate
T:Mode$ DamageDone | ValidSource$ Card.Self | ValidTarget$ Opponent | CombatDamage$ True | OptionalDecider$ You | Execute$ TrigDestroy | TriggerZones$ Battlefield | TriggerDescription$ Whenever CARDNAME deals combat damage to a player, you may sacrifice it. If you do, destroy target creature that player controls.
SVar:TrigDestroy:AB$Destroy | Cost$ Sac<1/CARDNAME> | ValidTgts$ Creature.YouDontCtrl | TgtPrompt$ Select target creature defending player controls | NoRegen$ False
SVar:RemAIDeck:True
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/blind_zealot.jpg
End
Re: Card Contributions
by Sloth » 05 May 2011, 13:08
Added! Thanks ZzzzSleep.ZzzzSleep wrote:So much better than Necrite!
- Code: Select all
Name:Blind Zealot
ManaCost:1 B B
Types:Creature Human Cleric
Text:no text
PT:2/2
K:Intimidate
T:Mode$ DamageDone | ValidSource$ Card.Self | ValidTarget$ Opponent | CombatDamage$ True | OptionalDecider$ You | Execute$ TrigDestroy | TriggerZones$ Battlefield | TriggerDescription$ Whenever CARDNAME deals combat damage to a player, you may sacrifice it. If you do, destroy target creature that player controls.
SVar:TrigDestroy:AB$Destroy | Cost$ Sac<1/CARDNAME> | ValidTgts$ Creature.YouDontCtrl | TgtPrompt$ Select target creature defending player controls | NoRegen$ False
SVar:RemAIDeck:True
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/blind_zealot.jpg
End
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: Card Contributions
by ZzzzSleep » 05 May 2011, 13:50
Slowly combing through more New Phyrexia cards and grabbing the low hanging fruit.
- Code: Select all
Name:Despise
ManaCost:B
Types:Sorcery
Text:no text
A:SP$Discard | Cost$ B | ValidTgts$ Opponent | NumCards$ 1 | DiscardValid$ Creature,Planeswalker | Mode$ RevealYouChoose | SpellDescription$ Target opponent reveals his or her hand. You choose a creature or planeswalker card from it. That player discards that card.
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/despise.jpg
End
Re: Card Contributions
by ZzzzSleep » 09 May 2011, 12:16
It's like Bloodshot Trainee, but greener!
- Code: Select all
Name:Greenhilt Trainee
ManaCost:3 G
Types:Creature Elf Warrior
Text:no text
PT:2/3
A:AB$ Pump | Cost$ T | ValidTgts$ Creature | TgtPrompt$ Select target creature | IsPresent$ Card.powerGE4+Self | NumAtt$ +4 | NumDef$ +4 | SpellDescription$ Target creature gets +4/+4 until end of turn. Activate this ability only if CARDNAME's power is 4 or greater.
SVar:RemAIDeck:True
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/greenhilt_trainee.jpg
End
Re: Card Contributions
by Sloth » 09 May 2011, 14:26
Added! Thanks ZzzzSleep.ZzzzSleep wrote:It's like Bloodshot Trainee, but greener!
- Code: Select all
Name:Greenhilt Trainee
ManaCost:3 G
Types:Creature Elf Warrior
Text:no text
PT:2/3
A:AB$ Pump | Cost$ T | ValidTgts$ Creature | TgtPrompt$ Select target creature | IsPresent$ Card.powerGE4+Self | NumAtt$ +4 | NumDef$ +4 | SpellDescription$ Target creature gets +4/+4 until end of turn. Activate this ability only if CARDNAME's power is 4 or greater.
SVar:RemAIDeck:True
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/greenhilt_trainee.jpg
End
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: Card Contributions
by Chris H. » 09 May 2011, 15:13
We have added the following 118 NPH cards to the SVN so far:
- These NPH cards are in the SVN | Open
- Act of Aggression
Alloy Myr
Apostle's Blessing
Argent Mutation
Artillerize
Batterskull
Beast Within
Blade Splicer
Blighted Agent
Blind Zealot
Blinding Souleater
Caress of Phyrexia
Conversion Chamber
Corrosive Gale
Darksteel Relic
Death-Hood Cobra
Defensive Stance
Dementia Bat
Despise
Dismember
Elesh Norn, Grand Cenobite
Etched Monstrosity
Fallen Ferromancer
Flameborn Viron
Forced Worship
Fresh Meat
Furnace Scamp
Geth's Verdict
Gitaxian Probe
Glissa's Scorn
Glistener Elf
Glistening Oil
Greenhilt Trainee
Gremlin Mine
Grim Affliction
Gut Shot
Hovermyr
Ichor Explosion
Immolating Souleater
Impaler Shrike
Insatiable Souleater
Jin-Gitaxias, Core Augur
Jor Kadeen, the Prevailer
Kiln Walker
Lashwrithe
Life's Finale
Lost Leonin
Loxodon Convert
Marrow Shards
Master Splicer
Maul Splicer
Mental Misstep
Mindcrank
Mindculling
Moltensteel Dragon
Mortis Dogs
Mutagenic Growth
Mycosynth Fiend
Mycosynth Wellspring
Necropouncer
Noxious Revival
Ogre Menial
Parasitic Implant
Pestilent Souleater
Phyrexia's Core
Phyrexian Ingester
Phyrexian Obliterator
Pyhrexian Swarmlord
Pith Driller
Porcelain Legionnaire
Postmortem Lunge
Priest of Urabrask
Pristine Talisman
Psychic Barrier
Psychic Surgery
Rage Extractor
Razor Swine
Reaper of Sheoldred
Rotted Hystrix
Ruthless Invasion
Scrapyard Salvo
Sensor Splicer
Shattered Angel
Sheoldred, Whispering One
Shriek Raptor
Shrine of Boundless Growth
Shrine of Burning Rage
Shrine of Limitless Power
Shrine of Loyal Legions
Shrine of Piercing Vision
Sickleslicer
Slag Fiend
Slash Panther
Spined Thopter
Spire Monitor
Surge Node
Suture Priest
Sword of War and Peace
Tezzeret's Gambit
Thundering Tanadon
Toxic Nim
Trespassing Souleater
Triumph of the Hordes
Unwinding Clock
Urabrask the Hidden
Vapor Snag
Vault Skirge
Victorious Destruction
Viral Drake
Viridian Harvest
Vital Splicer
Volt Charge
Vulshok Refugee
War Report
Whipflare
Whispering Specter
Wing Splicer
Xenograft
Last edited by Chris H. on 15 May 2011, 10:51, edited 5 times in total.
Reason: updated the listing with Psychic Surgery & Phyrexian Ingester
Reason: updated the listing with Psychic Surgery & Phyrexian Ingester
-
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 ZzzzSleep » 10 May 2011, 10:44
It's an even hundred if you include Greenhilt Trainee (above) and Apostle's Blessing (below)Chris H. wrote:We have added the following 98 NPH cards to the SVN so far:
<SNIP!>

- | Open
- Name:Apostle's Blessing
ManaCost:1 PW
Types:Instant
Text:no text
A:SP$Pump | Cost$ 1 PW | ValidTgts$ Creature,Artifact | TgtPrompt$ Select target creature or artifact | KW$ Protection from white | SpellDescription$ Target creature or artifact you control gains protection from white until end of turn.
A:SP$Pump | Cost$ 1 PW | ValidTgts$ Creature,Artifact | TgtPrompt$ Select target creature or artifact | KW$ Protection from black | SpellDescription$ Target creature or artifact you control gains protection from black until end of turn.
A:SP$Pump | Cost$ 1 PW | ValidTgts$ Creature,Artifact | TgtPrompt$ Select target creature or artifact | KW$ Protection from blue | SpellDescription$ Target creature or artifact you control gains protection from blue until end of turn.
A:SP$Pump | Cost$ 1 PW | ValidTgts$ Creature,Artifact | TgtPrompt$ Select target creature or artifact | KW$ Protection from red | SpellDescription$ Target creature or artifact you control gains protection from red until end of turn.
A:SP$Pump | Cost$ 1 PW | ValidTgts$ Creature,Artifact | TgtPrompt$ Select target creature or artifact | KW$ Protection from green | SpellDescription$ Target creature or artifact you control gains protection from green until end of turn.
A:SP$Pump | Cost$ 1 PW | ValidTgts$ Creature,Artifact | TgtPrompt$ Select target creature or artifact | KW$ Protection from artifacts | SpellDescription$ Target creature or artifact you control gains protection from artifacts until end of turn.
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/apostles_blessing.jpg
End
Re: Card Contributions
by Chris H. » 10 May 2011, 13:03
`ZzzzSleep wrote:It's a little wordy, but not that much worse than Mother of Runes.
- | Open
Name:Apostle's Blessing
ManaCost:1 PW
Types:Instant
Text:no text
A:SP$Pump | Cost$ 1 PW | ValidTgts$ Creature,Artifact | TgtPrompt$ Select target creature or artifact | KW$ Protection from white | SpellDescription$ Target creature or artifact you control gains protection from white until end of turn.
A:SP$Pump | Cost$ 1 PW | ValidTgts$ Creature,Artifact | TgtPrompt$ Select target creature or artifact | KW$ Protection from black | SpellDescription$ Target creature or artifact you control gains protection from black until end of turn.
A:SP$Pump | Cost$ 1 PW | ValidTgts$ Creature,Artifact | TgtPrompt$ Select target creature or artifact | KW$ Protection from blue | SpellDescription$ Target creature or artifact you control gains protection from blue until end of turn.
A:SP$Pump | Cost$ 1 PW | ValidTgts$ Creature,Artifact | TgtPrompt$ Select target creature or artifact | KW$ Protection from red | SpellDescription$ Target creature or artifact you control gains protection from red until end of turn.
A:SP$Pump | Cost$ 1 PW | ValidTgts$ Creature,Artifact | TgtPrompt$ Select target creature or artifact | KW$ Protection from green | SpellDescription$ Target creature or artifact you control gains protection from green until end of turn.
A:SP$Pump | Cost$ 1 PW | ValidTgts$ Creature,Artifact | TgtPrompt$ Select target creature or artifact | KW$ Protection from artifacts | SpellDescription$ Target creature or artifact you control gains protection from artifacts until end of turn.
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/apostles_blessing.jpg
End
Thank you ZzzzSleep.
-
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 Jaedayr » 11 May 2011, 18:25
I am not sure if this is the best place for this, but hopefully it is.
This card as coded almost works but I think it will require a coding change to make it completely work. The problem is that if you have exactly six cards in your graveyard when it goes to the graveyard, the Threshold condition is activated before the card trigger is resolved. From a discussion in another thread several days ago it seems that Threshold should not be active until the card (and all it's actions) is actually resolved and in the graveyard. If this is true then hopefully it is an easy change and then this card can be added.
This card as coded almost works but I think it will require a coding change to make it completely work. The problem is that if you have exactly six cards in your graveyard when it goes to the graveyard, the Threshold condition is activated before the card trigger is resolved. From a discussion in another thread several days ago it seems that Threshold should not be active until the card (and all it's actions) is actually resolved and in the graveyard. If this is true then hopefully it is an easy change and then this card can be added.
- Code: Select all
Name:Treacherous Werewolf
ManaCost:2 B
Types:Creature Human Wolf Minion
Text:no text
PT:2/2
K:stPumpSelf:Creature:2/2:Threshold:Threshold - As long as seven or more cards are in your graveyard, CARDNAME gets +2/+2 and has "When CARDNAME is put into a graveyard from the battlefield, you lose 4 life."
T:Mode$ ChangesZone | Origin$ Battlefield | Destination$ Graveyard | ValidCard$ Card.Self | Threshold$ True | Execute$ YouLoseLife | TriggerDescription$ When CARDNAME is put into a graveyard from the battlefield, you lose 4 life.
SVar:YouLoseLife:DB$LoseLife | Defined$ You | LifeAmount$ 4
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/treacherous_werewolf.jpg
SetInfo:JUD|Common|http://magiccards.info/scans/en/ju/76.jpg
End
Re: Card Contributions
by Kiruban » 12 May 2011, 10:40
Hi, i´m new here, i´m trying to create some cards (Cabal Therapy, Kor Outfitter, Quest for the Holy Relic) and i have some problems, i don´t understand why some cards works only with the Text line, like Pithing Needle or Meddling Mage.
For Cabal Therapy i want to name a nonland card, but it doesn´t work in Text line, and is a sorcery card and not goes to graveyard, it remains in battlefield.
For Quest for the Holy Relic and Kor Outffiter i need some information about attach, i read all the wiki and i don´t find anything about attach or equip or name cards.
Is there some way to do that? Thanks and sorry my english, i´m from Spain.
For Cabal Therapy i want to name a nonland card, but it doesn´t work in Text line, and is a sorcery card and not goes to graveyard, it remains in battlefield.
For Quest for the Holy Relic and Kor Outffiter i need some information about attach, i read all the wiki and i don´t find anything about attach or equip or name cards.
Is there some way to do that? Thanks and sorry my english, i´m from Spain.
- Kiruban
- Posts: 2
- Joined: 12 May 2011, 09:59
- Has thanked: 0 time
- Been thanked: 0 time
Re: Card Contributions
by Sloth » 12 May 2011, 11:56
Welcome Kiruban. The cards you mention are not possible to be scripted with text only at the moment. Pithing Needle and Meddling Mage are hardcoded in the java classes. It's not so easy to find cards that are scriptable but haven't been added.Kiruban wrote:Hi, i´m new here, i´m trying to create some cards (Cabal Therapy, Kor Outfitter, Quest for the Holy Relic) and i have some problems, i don´t understand why some cards works only with the Text line, like Pithing Needle or Meddling Mage.
For Cabal Therapy i want to name a nonland card, but it doesn´t work in Text line, and is a sorcery card and not goes to graveyard, it remains in battlefield.
For Quest for the Holy Relic and Kor Outffiter i need some information about attach, i read all the wiki and i don´t find anything about attach or equip or name cards.
Is there some way to do that? Thanks and sorry my english, i´m from Spain.
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: Card Contributions
by friarsol » 12 May 2011, 12:05
We currently don't have an Attach AbilityFactory. It is on the list of things to do, but hasn't occurred yet. Also, we don't have a way to "Name a card" that Cabal Therapy within Scripting. Once that happens that card should be pretty easy to write.Kiruban wrote:Hi, i´m new here, i´m trying to create some cards (Cabal Therapy, Kor Outfitter, Quest for the Holy Relic) and i have some problems, i don´t understand why some cards works only with the Text line, like Pithing Needle or Meddling Mage.
For Cabal Therapy i want to name a nonland card, but it doesn´t work in Text line, and is a sorcery card and not goes to graveyard, it remains in battlefield.
For Quest for the Holy Relic and Kor Outffiter i need some information about attach, i read all the wiki and i don´t find anything about attach or equip or name cards.
Is there some way to do that? Thanks and sorry my english, i´m from Spain.
Cards that only have Descriptions in their text line have hardcoded abilities which is something Forge used to do a lot of. At this time, we have moved away from this practice and most of the Devs will not code up cards in hardcoded blocks, instead improving consistently through the AbilityFactory structure and scripting.
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: Card Contributions
by Kiruban » 12 May 2011, 18:31
Hi i made the Suture Priest card, and its fully working.
- Code: Select all
Name:Suture Priest
ManaCost:1 W
Types:Creature Cleric
Text:no text
PT:1/1
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Creature.Other+YouCtrl | TriggerZones$ Battlefield | OptionalDecider$ You | Execute$ TrigGainLife | TriggerDescription$ Whenever another creature enters the battlefield under your control, you may gain 1 life.
SVar:TrigGainLife:AB$GainLife | Cost$ 0 | Defined$ You | LifeAmount$ 1
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Creature.YouDontCtrl | TriggerZones$ Battlefield | OptionalDecider$ You | Execute$ TrigLoseLife | TriggerDescription$ Whenever another creature enters the battlefield under an opponent´s control, you may have that player lose 1 life.
SVar:TrigLoseLife:AB$LoseLife | Cost$ 0 | Defined$ Opponent | LifeAmount$ 1
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/suture_priest.jpg
SetInfo:NPH|Common|http://magiccards.info/scans/en/nph/25.jpg
End
- Kiruban
- Posts: 2
- Joined: 12 May 2011, 09:59
- Has thanked: 0 time
- Been thanked: 0 time
Re: Card Contributions
by Sloth » 12 May 2011, 19:33
The implementation is correct. But we already have the card on the SVNKiruban wrote:Hi i made the Suture Priest card, and its fully working.
- Code: Select all
Name:Suture Priest
ManaCost:1 W
Types:Creature Cleric
Text:no text
PT:1/1
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Creature.Other+YouCtrl | TriggerZones$ Battlefield | OptionalDecider$ You | Execute$ TrigGainLife | TriggerDescription$ Whenever another creature enters the battlefield under your control, you may gain 1 life.
SVar:TrigGainLife:AB$GainLife | Cost$ 0 | Defined$ You | LifeAmount$ 1
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Creature.YouDontCtrl | TriggerZones$ Battlefield | OptionalDecider$ You | Execute$ TrigLoseLife | TriggerDescription$ Whenever another creature enters the battlefield under an opponent´s control, you may have that player lose 1 life.
SVar:TrigLoseLife:AB$LoseLife | Cost$ 0 | Defined$ Opponent | LifeAmount$ 1
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/suture_priest.jpg
SetInfo:NPH|Common|http://magiccards.info/scans/en/nph/25.jpg
End

EDIT: You can also test the newest version by using these scripts: viewtopic.php?f=26&t=2767&start=75#p55947
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Who is online
Users browsing this forum: No registered users and 43 guests