It is currently 24 May 2025, 21:47
   
Text Size

Card Development Questions

Post MTG Forge Related Programming Questions Here

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

Re: Card Development Questions

Postby 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?
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

Postby 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

Postby Grampsa2 » 31 Jan 2012, 01:59

friarsol wrote:
Iran wrote:I see these ones too Infused Arrows, Hex Parasite
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.
You guys any further along with this? Would love to see Hex Parasite in game at some point.

Thanks.
Grampsa2
 
Posts: 21
Joined: 20 Jan 2012, 00:44
Has thanked: 4 times
Been thanked: 0 time

Re: Card Development Questions

Postby 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

Postby squee1968 » 02 Feb 2012, 02:15

ArsenalNut wrote:
squee1968 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
I tried this and it seems to work
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
Is there some reason your working version of the card (plus Pulse of the Forge, with the changes made), haven't been added?
squee1968
 
Posts: 254
Joined: 18 Nov 2011, 03:28
Has thanked: 110 times
Been thanked: 45 times

Re: Card Development Questions

Postby 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
SoulStorm
 
Posts: 423
Joined: 24 Jun 2010, 22:48
Has thanked: 16 times
Been thanked: 11 times

Re: Card Development Questions

Postby jeffwadsworth » 02 Feb 2012, 13:14

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
Perhaps you missed Sol's answer a few posts up.
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

Postby SoulStorm » 02 Feb 2012, 13:22

I did miss that post, thanks for pointing it out Jeff.
SoulStorm
 
Posts: 423
Joined: 24 Jun 2010, 22:48
Has thanked: 16 times
Been thanked: 11 times

Re: Card Development Questions

Postby 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. :mrgreen:

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
SoulStorm
 
Posts: 423
Joined: 24 Jun 2010, 22:48
Has thanked: 16 times
Been thanked: 11 times

Re: Card Development Questions

Postby Sloth » 02 Feb 2012, 15:44

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. :mrgreen:

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
Did you try "SpellDescription$ " instead of "Spell Description$ "?
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: Card Development Questions

Postby SoulStorm » 02 Feb 2012, 16:11

Sloth wrote:Did you try "SpellDescription$ " instead of "Spell Description$ "?
:oops: I'll be over here in this corner if anybody needs me. Thanks Sloth!
SoulStorm
 
Posts: 423
Joined: 24 Jun 2010, 22:48
Has thanked: 16 times
Been thanked: 11 times

Re: Card Development Questions

Postby 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
squee1968
 
Posts: 254
Joined: 18 Nov 2011, 03:28
Has thanked: 110 times
Been thanked: 45 times

Re: Card Development Questions

Postby Sloth » 02 Feb 2012, 21:14

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
Added! Thanks squee1968.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: Card Development Questions

Postby 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
squee1968
 
Posts: 254
Joined: 18 Nov 2011, 03:28
Has thanked: 110 times
Been thanked: 45 times

Re: Card Development Questions

Postby Sloth » 03 Feb 2012, 13:26

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
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).
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

PreviousNext

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 59 guests


Who is online

In total there are 59 users online :: 0 registered, 0 hidden and 59 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 59 guests

Login Form