Card Development Questions
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
Re: Card Development Questions
by jeffwadsworth » 30 Jan 2012, 19:48
Looking at Ion Storm. Is it possible to remove counters from a permanent as a cost?
Cost$ SubCounter<1/P1P1 from Permanent.YouCtrl> for example?
Cost$ SubCounter<1/P1P1 from Permanent.YouCtrl> for example?
- jeffwadsworth
- Super Tester Elite
- Posts: 1172
- Joined: 20 Oct 2010, 04:47
- Location: USA
- Has thanked: 287 times
- Been thanked: 70 times
Re: Card Development Questions
by friarsol » 30 Jan 2012, 20:09
It's not available yet, and you wouldn't need .YouCtrl once it is available. It's a bit more complex since the card that the counter is being removed from needs to actually have that Counter.
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: Card Development Questions
by Grampsa2 » 31 Jan 2012, 01:59
You guys any further along with this? Would love to see Hex Parasite in game at some point.friarsol wrote:Infused Arrows is already supported, as it removes counters from itself. Hex Parasite isn't removing Counters as a cost. The issue with this card is it is removing "any" counters which I don't believe is supported in AF_RemoveCounter yet.Iran wrote:I see these ones too Infused Arrows, Hex Parasite
Thanks.
Re: Card Development Questions
by jeffwadsworth » 01 Feb 2012, 21:40
Looking at Droning Bureaucrats. Apparently this script is not feasible. Does anyone see an alternative?
- | Open
- Name:Droning Bureaucrats
ManaCost:3 W
Types:Creature Human Advisor
Text:no text
PT:1/4
A:AB$ Effect | Cost$ X T | Name$ Droning Bureaucrats Effect | StaticAbilities$ KWPump | SVars$ X
SVar:KWPump:Mode$ Continuous | Affected$ Creature.cmcEQX | AddHiddenKeyword$ HIDDEN CARDNAME can't attack or block. | Description$ Each creature with converted mana cost X can't attack or block this turn.
SVar:X:Count$xPaid
SVar:RemAIDeck:True
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/droning_bureaucrats.jpg
End
- jeffwadsworth
- Super Tester Elite
- Posts: 1172
- Joined: 20 Oct 2010, 04:47
- Location: USA
- Has thanked: 287 times
- Been thanked: 70 times
Re: Card Development Questions
by squee1968 » 02 Feb 2012, 02:15
Is there some reason your working version of the card (plus Pulse of the Forge, with the changes made), haven't been added?ArsenalNut wrote:I tried this and it seems to worksquee1968 wrote:I tried to do Pulse of the Grid, but although I tried a dozen different ways, including Check SVar's and different ConditionCompares and such, I couldn't for the life of me get the card to return reliably under all conditions. I'll post what I've got here, and maybe (please?) someone will fix it.
- Code: Select all
Name:Pulse of the Grid
ManaCost:1 U U
Types:Instant
Text:no text
A:SP$ Draw | Cost$ 1 U U | NumCards$ 2 | SubAbility$ DBDiscard | SpellDescription$ Draw two cards, then discard a card. Then if an opponent has more cards in hand than you, return CARDNAME to its owner's hand.
SVar:DBDiscard:DB$Discard | NumCards$ 1 | Mode$ TgtChoose | SubAbility$ TrigReturn
SVar:TrigReturn:DB$ ChangeZone | Defined$ Self | Origin$ Stack | Destination$ Hand | ConditionPresent$ Card.YouDontCtrl | ConditionZone$ Hand | ConditionSVarCompare$ GTX | ConditionDescription$ If an opponent has more cards in hand than you, return CARDNAME to its owner's hand.
SVar:X:Count$CardsInYourHand
SVar:RemAIDeck:True
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/pulse_of_the_grid.jpg
SetInfo:DST|Rare|http://magiccards.info/scans/ds/en/29.jpg
Oracle:Draw two cards, then discard a card. Then if an opponent has more cards in hand than you, return Pulse of the Grid to its owner's hand.
End
- Pulse of the Grid | Open
- Name:Pulse of the Grid
ManaCost:1 U U
Types:Instant
Text:no text
A:SP$ Draw | Cost$ 1 U U | NumCards$ 2 | SubAbility$ DBDiscard | SpellDescription$ Draw two cards, then discard a card. Then if an opponent has more cards in hand than you, return CARDNAME to its owner's hand.
SVar:DBDiscard:DB$Discard | NumCards$ 1 | Mode$ TgtChoose | SubAbility$ TrigReturn
SVar:TrigReturn:DB$ ChangeZone | Defined$ Self | Origin$ Stack | Destination$ Hand | ConditionCheckSVar$ X | ConditionSVarCompare$ GE1
SVar:Y:Count$CardsInYourHand
SVar:X:Count$CardsInOppHand/Minus.Y
SVar:RemAIDeck:True
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/pulse_of_the_grid.jpg
SetInfo:DST|Rare|http://magiccards.info/scans/ds/en/29.jpg
Oracle:Draw two cards, then discard a card. Then if an opponent has more cards in hand than you, return Pulse of the Grid to its owner's hand.
End
Re: Card Development Questions
by SoulStorm » 02 Feb 2012, 09:07
How difficult would it be to add, "Remove a counter from an X you control" as a cost? It would enable the following cards to be added:
Ghave, Guru of Spores
Ion Storm
Novijen Sages
Power Conduit
Quillspike
Rift Elemental
Sage of Fables
Spike Rogue
Ghave, Guru of Spores
Ion Storm
Novijen Sages
Power Conduit
Quillspike
Rift Elemental
Sage of Fables
Spike Rogue
Re: Card Development Questions
by jeffwadsworth » 02 Feb 2012, 13:14
Perhaps you missed Sol's answer a few posts up.SoulStorm wrote:How difficult would it be to add, "Remove a counter from an X you control" as a cost? It would enable the following cards to be added:
Ghave, Guru of Spores
Ion Storm
Novijen Sages
Power Conduit
Quillspike
Rift Elemental
Sage of Fables
Spike Rogue
- jeffwadsworth
- Super Tester Elite
- Posts: 1172
- Joined: 20 Oct 2010, 04:47
- Location: USA
- Has thanked: 287 times
- Been thanked: 70 times
Re: Card Development Questions
by SoulStorm » 02 Feb 2012, 13:22
I did miss that post, thanks for pointing it out Jeff.
Re: Card Development Questions
by SoulStorm » 02 Feb 2012, 15:03
This may not be the most appropriate place to ask this question, since this card is a rules incorrect hack job, but the problem I'm having with this card is bugging the crap out of me. 
Everything works as I intended it to, except the SVar:Draw description isn't displayed. If I use the ability to draw a card from a creature that doesn't have any other activated abilities, I'm simply prompted to pay 2 mana, which isn't too much of a problem. However, if I try to draw a card from a creature with other activated abilities, I have to choose the "invisible" activated ability below the other activated abilities. If I'm not simply doing something wrong, then other cards such as Sachi, Daughter of Seshiro presumably have the same problem.
Thanks!
Sage of Fables

Everything works as I intended it to, except the SVar:Draw description isn't displayed. If I use the ability to draw a card from a creature that doesn't have any other activated abilities, I'm simply prompted to pay 2 mana, which isn't too much of a problem. However, if I try to draw a card from a creature with other activated abilities, I have to choose the "invisible" activated ability below the other activated abilities. If I'm not simply doing something wrong, then other cards such as Sachi, Daughter of Seshiro presumably have the same problem.
Thanks!
Sage of Fables
- Code: Select all
Name:Sage of Fables
ManaCost:2 U
Types:Creature Merfolk Wizard
Text:no text
PT:2/2
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Creature.Wizard+Other+YouCtrl |TriggerZones$ Battlefield | Execute$ TrigPutCounter | Static$ True | TriggerDescription$ Each other Wizard creature you control enters the battlefield with an additional +1/+1 counter on it.
S:Mode$ Continuous | Affected$ Creature.YouCtrl | AddAbility$ Draw | Description$ Remove a +1/+1 counter from a creature you control:
SVar:TrigPutCounter:AB$PutCounter | Cost$ 0 | Defined$ TriggeredCard | CounterType$ P1P1 | CounterNum$ 1
SVar:Draw:AB$Draw | Cost$ 2 SubCounter<1/P1P1> | NumCards$ 1 | Spell Description$ Draw a card.
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/sage_of_fables.jpg
End
Re: Card Development Questions
by Sloth » 02 Feb 2012, 15:44
Did you try "SpellDescription$ " instead of "Spell Description$ "?SoulStorm wrote:This may not be the most appropriate place to ask this question, since this card is a rules incorrect hack job, but the problem I'm having with this card is bugging the crap out of me.
Everything works as I intended it to, except the SVar:Draw description isn't displayed. If I use the ability to draw a card from a creature that doesn't have any other activated abilities, I'm simply prompted to pay 2 mana, which isn't too much of a problem. However, if I try to draw a card from a creature with other activated abilities, I have to choose the "invisible" activated ability below the other activated abilities. If I'm not simply doing something wrong, then other cards such as Sachi, Daughter of Seshiro presumably have the same problem.
Thanks!
Sage of Fables
- Code: Select all
Name:Sage of Fables
ManaCost:2 U
Types:Creature Merfolk Wizard
Text:no text
PT:2/2
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Creature.Wizard+Other+YouCtrl |TriggerZones$ Battlefield | Execute$ TrigPutCounter | Static$ True | TriggerDescription$ Each other Wizard creature you control enters the battlefield with an additional +1/+1 counter on it.
S:Mode$ Continuous | Affected$ Creature.YouCtrl | AddAbility$ Draw | Description$ Remove a +1/+1 counter from a creature you control:
SVar:TrigPutCounter:AB$PutCounter | Cost$ 0 | Defined$ TriggeredCard | CounterType$ P1P1 | CounterNum$ 1
SVar:Draw:AB$Draw | Cost$ 2 SubCounter<1/P1P1> | NumCards$ 1 | Spell Description$ Draw a card.
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/sage_of_fables.jpg
End
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: Card Development Questions
by SoulStorm » 02 Feb 2012, 16:11
Sloth wrote:Did you try "SpellDescription$ " instead of "Spell Description$ "?

Re: Card Development Questions
by squee1968 » 02 Feb 2012, 20:43
Here's Saprazzan Outrigger. I believe this work work correctly.
- Code: Select all
Name:Saprazzan Outrigger
ManaCost:3 U
Types:Creature Merfolk
Text:no text
PT:5/5
T:Mode$ Attacks | ValidCard$ Card.Self | DelayedTrigger$
DelTrig | TriggerDescription$ Whenever CARDNAME attacks or
blocks, put it on top of its owner’s library at end of
combat.
T:Mode$ Blocks | ValidCard$ Card.Self | DelayedTrigger$
DelTrig | Secondary$ True | TriggerDescription$ Whenever
CARDNAME attacks or blocks, put it on top of its owner’s
library at end of combat.
SVar:DelTrig:Mode$ Phase | Phase$ EndCombat | Execute$
TrigChange | TriggerDescription$ Put CARDNAME on top of its
owner’s library.
SVar:TrigChange:AB$ChangeZone | Cost$ 0 | Origin$ Battlefield
| Destination$ Library | LibraryPosition$ 0 | Defined$ Self
SVar:RemAIDeck:True
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/gener
al/saprazzan_outrigger.jpg
SetInfo:MMQ|Common|http://magiccards.info/scans/mm/en/101.jpg
Oracle:When Saprazzan Outrigger attacks or blocks, put it on
top of its owner’s library at end of combat.
End
Re: Card Development Questions
by Sloth » 02 Feb 2012, 21:14
Added! Thanks squee1968.squee1968 wrote:Here's Saprazzan Outrigger. I believe this work work correctly.
- Code: Select all
Name:Saprazzan Outrigger
ManaCost:3 U
Types:Creature Merfolk
Text:no text
PT:5/5
T:Mode$ Attacks | ValidCard$ Card.Self | DelayedTrigger$
DelTrig | TriggerDescription$ Whenever CARDNAME attacks or
blocks, put it on top of its owner’s library at end of
combat.
T:Mode$ Blocks | ValidCard$ Card.Self | DelayedTrigger$
DelTrig | Secondary$ True | TriggerDescription$ Whenever
CARDNAME attacks or blocks, put it on top of its owner’s
library at end of combat.
SVar:DelTrig:Mode$ Phase | Phase$ EndCombat | Execute$
TrigChange | TriggerDescription$ Put CARDNAME on top of its
owner’s library.
SVar:TrigChange:AB$ChangeZone | Cost$ 0 | Origin$ Battlefield
| Destination$ Library | LibraryPosition$ 0 | Defined$ Self
SVar:RemAIDeck:True
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/gener
al/saprazzan_outrigger.jpg
SetInfo:MMQ|Common|http://magiccards.info/scans/mm/en/101.jpg
Oracle:When Saprazzan Outrigger attacks or blocks, put it on
top of its owner’s library at end of combat.
End
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: Card Development Questions
by squee1968 » 03 Feb 2012, 05:11
Not sure if this card works like I think it will.
- Code: Select all
Name:Demoralize
ManaCost:2 R
Types:Instant
Text:no text
A:SP$ PumpAll | Cost$ 2 R | ValidCards$ Creature |
AddHiddenKeyword$ HIDDEN CARDNAME can't be blocked except by
two or more creatures. | AILogic$ Evasion | SubAbility$
KWPump | SpellDescription$ Each creature can’t be blocked
this turn except by two or more creatures. Threshold — If
seven or more cards are in your graveyard, creatures can’t
block this turn.
SVar:KWPump:Mode$ Continuous | Affected$ Creature |
AddKeyword$ CARDNAME can't block. | IsCurse$ True |
Condition$ Threshold | Description$ Creatures can’t block
this turn.
SVar:RemAIDeck:True
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/gener
al/demoralize.jpg
SetInfo:ODY|Common|http://magiccards.info/scans/od/en/184.jpg
Oracle:Each creature can’t be blocked this turn except by two
or more creatures.\nThreshold — If seven or more cards are in
your graveyard, creatures can’t block this turn.
End
Re: Card Development Questions
by Sloth » 03 Feb 2012, 13:26
The oracle decks reads "this turn" and not "until end of turn". So it has to be an effect and not pumpAll (see the scripting attempt of Droning Bureaucrats by Jeff above).squee1968 wrote:Not sure if this card works like I think it will.
- Code: Select all
Name:Demoralize
ManaCost:2 R
Types:Instant
Text:no text
A:SP$ PumpAll | Cost$ 2 R | ValidCards$ Creature |
AddHiddenKeyword$ HIDDEN CARDNAME can't be blocked except by
two or more creatures. | AILogic$ Evasion | SubAbility$
KWPump | SpellDescription$ Each creature can’t be blocked
this turn except by two or more creatures. Threshold — If
seven or more cards are in your graveyard, creatures can’t
block this turn.
SVar:KWPump:Mode$ Continuous | Affected$ Creature |
AddKeyword$ CARDNAME can't block. | IsCurse$ True |
Condition$ Threshold | Description$ Creatures can’t block
this turn.
SVar:RemAIDeck:True
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/gener
al/demoralize.jpg
SetInfo:ODY|Common|http://magiccards.info/scans/od/en/184.jpg
Oracle:Each creature can’t be blocked this turn except by two
or more creatures.\nThreshold — If seven or more cards are in
your graveyard, creatures can’t block this turn.
End
-
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 34 guests