Card Development Questions
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
Re: Card Development Questions
by RumbleBBU » 11 Dec 2012, 07:40
Answering to myself...
(also if the opponent's lands can only produce colorless mana).
So the correct answer would be10/4/2004 The ability can be activated if the opponent has no lands that produce mana, but the effect will not be able to generate any mana.
10/1/2009 The colors of mana are white, blue, black, red, and green. Fellwar Stone can't be tapped for colorless mana, even if a land an opponent controls could produce colorless mana.

Re: Card Development Questions
by swordshine » 22 Dec 2012, 01:52
Here is the script of Eye of the Storm
- Eye of the Storm | Open
- Code: Select all
Name:Eye of the Storm
ManaCost:5 U U
Types:Enchantment
Text:no text
T:Mode$ SpellCast | ValidCard$ Card.Instant,Card.Sorcery | Execute$ TrigExileSpell | TriggerZones$ Battlefield | TriggerDescription$ Whenever a player casts an instant or sorcery card, exile it. Then that player copies each instant or sorcery card exiled with CARDNAME. For each copy, the player may cast the copy without paying its mana cost.
SVar:TrigExileSpell:AB$ ChangeZone | Cost$ 0 | Defined$ TriggeredCard | Origin$ Stack | Destination$ Exile | Fizzle$ True | RememberChanged$ True | SubAbility$ DBPlaySpell
SVar:DBPlaySpell:DB$ RepeatEach | UseImprinted$ True | RepeatCards$ Card.IsRemembered | Zone$ Exile | RepeatSubAbility$ DBPlay
SVar:DBPlay:DB$ Play | Defined$ Imprinted | Controller$ TriggeredCardController | WithoutManaCost$ True | CopyCard$ True | Optional$ True
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/eye_of_the_storm.jpg
End
- swordshine
- Posts: 682
- Joined: 11 Jul 2010, 02:37
- Has thanked: 116 times
- Been thanked: 87 times
Re: Card Development Questions
by ArsenalNut » 22 Dec 2012, 17:38
I'll look at adding a switch named "ChooseOrder$ True" to the RepeatEach AF that will pop up a dual list box to choose the order.swordshine wrote:Here is the script of Eye of the StormHowever, you cannot choose the order of repeatcards. Is it possible to add a list of repeatcards to choose the order of resolving?
- Eye of the Storm | Open
- Code: Select all
Name:Eye of the Storm
ManaCost:5 U U
Types:Enchantment
Text:no text
T:Mode$ SpellCast | ValidCard$ Card.Instant,Card.Sorcery | Execute$ TrigExileSpell | TriggerZones$ Battlefield | TriggerDescription$ Whenever a player casts an instant or sorcery card, exile it. Then that player copies each instant or sorcery card exiled with CARDNAME. For each copy, the player may cast the copy without paying its mana cost.
SVar:TrigExileSpell:AB$ ChangeZone | Cost$ 0 | Defined$ TriggeredCard | Origin$ Stack | Destination$ Exile | Fizzle$ True | RememberChanged$ True | SubAbility$ DBPlaySpell
SVar:DBPlaySpell:DB$ RepeatEach | UseImprinted$ True | RepeatCards$ Card.IsRemembered | Zone$ Exile | RepeatSubAbility$ DBPlay
SVar:DBPlay:DB$ Play | Defined$ Imprinted | Controller$ TriggeredCardController | WithoutManaCost$ True | CopyCard$ True | Optional$ True
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/eye_of_the_storm.jpg
End
Edit: I checked in the code that adds the ChooseOrder switch.
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 Development Questions
by ArsenalNut » 23 Dec 2012, 05:18
Rules question about Eye of the Stormswordshine wrote:Here is the script of Eye of the StormHowever, you cannot choose the order of repeatcards. Is it possible to add a list of repeatcards to choose the order of resolving?
- Eye of the Storm | Open
- Code: Select all
Name:Eye of the Storm
ManaCost:5 U U
Types:Enchantment
Text:no text
T:Mode$ SpellCast | ValidCard$ Card.Instant,Card.Sorcery | Execute$ TrigExileSpell | TriggerZones$ Battlefield | TriggerDescription$ Whenever a player casts an instant or sorcery card, exile it. Then that player copies each instant or sorcery card exiled with CARDNAME. For each copy, the player may cast the copy without paying its mana cost.
SVar:TrigExileSpell:AB$ ChangeZone | Cost$ 0 | Defined$ TriggeredCard | Origin$ Stack | Destination$ Exile | Fizzle$ True | RememberChanged$ True | SubAbility$ DBPlaySpell
SVar:DBPlaySpell:DB$ RepeatEach | UseImprinted$ True | RepeatCards$ Card.IsRemembered | Zone$ Exile | RepeatSubAbility$ DBPlay
SVar:DBPlay:DB$ Play | Defined$ Imprinted | Controller$ TriggeredCardController | WithoutManaCost$ True | CopyCard$ True | Optional$ True
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/eye_of_the_storm.jpg
End
Does this include Sorcery restrictions?Eye of the Storm Ruling wrote:You must still follow any restrictions on when you can cast the spell, such as "cast only during combat" or "cast only on your own turn."
For example, with an Eye of the Storm in play, I cast a Lingering Souls on my turn. On my opponents turn, I cast a Lightning Bolt. Can I cast the Lingering Souls copied by Eye of the Storm on my opponents turn?
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 Development Questions
by timmermac » 23 Dec 2012, 05:25
I would think that the copy would still be a sorcery, so you'd only be able to cast it during one of your main phases.
"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 Development Questions
by swordshine » 23 Dec 2012, 06:24
ArsenalNut wrote:Does this include Sorcery restrictions?Eye of the Storm Ruling wrote:You must still follow any restrictions on when you can cast the spell, such as "cast only during combat" or "cast only on your own turn."
For example, with an Eye of the Storm in play, I cast a Lingering Souls on my turn. On my opponents turn, I cast a Lightning Bolt. Can I cast the Lingering Souls copied by Eye of the Storm on my opponents turn?
Didn't notice the rule text. This card is quite tricky. "You must follow any restrictions" is quite different from other cards with similar ability. For exmaple, I checked the rule text about the ultimate of Jace, Architect of Thought, and it has this:timmermac wrote:I would think that the copy would still be a sorcery, so you'd only be able to cast it during one of your main phases.
It seems some recent cards with "cast without paying its mana cost" ability ignore the timing restrictions, but Eye of the Storm does not. According to its rule text, sorcery cards you own could only be cast during the main phase and you must choose one of them on the bottom of the stack and other sorceries cannot be cast since the stack is not empty. OMG, soooo complicated.When casting a card this way, ignore timing restrictions based on the card’s type. Other timing restrictions, such as “Cast [this card] only during combat,” must be followed.
- swordshine
- Posts: 682
- Joined: 11 Jul 2010, 02:37
- Has thanked: 116 times
- Been thanked: 87 times
Re: Card Development Questions
by friarsol » 23 Dec 2012, 14:56
I'm pretty sure this works the same as the rest of the "Cast without paying its mana cost" cards. You aren't allowed to cast any spells during the resolution of another spell normally, so you wouldn't be able to cast Instants during that time either.swordshine wrote:It seems some recent cards with "cast without paying its mana cost" ability ignore the timing restrictions, but Eye of the Storm does not. According to its rule text, sorcery cards you own could only be cast during the main phase and you must choose one of them on the bottom of the stack and other sorceries cannot be cast since the stack is not empty. OMG, soooo complicated.
http://community.wizards.com/go/thread/ ... cery_speed
I think the rules text is just reminding you that if a certain card says it needs to be cast during combat, and it isn't combat, you aren't allowed to cast it in this way. But you are allowed to cast sorceries this way (otherwise sorceries would never be allowed by Eye of the Storm at all, since the stack would never be empty when the trigger was resolving) and that would make the card pretty pointless to work for sorceries.
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: Card Development Questions
by ArsenalNut » 23 Dec 2012, 15:22
I swear I did a web search for rulings on Eye of the Storm before I askedfriarsol wrote:I'm pretty sure this works the same as the rest of the "Cast without paying its mana cost" cards. You aren't allowed to cast any spells during the resolution of another spell normally, so you wouldn't be able to cast Instants during that time either.
http://community.wizards.com/go/thread/ ... cery_speed
I think the rules text is just reminding you that if a certain card says it needs to be cast during combat, and it isn't combat, you aren't allowed to cast it in this way. But you are allowed to cast sorceries this way (otherwise sorceries would never be allowed by Eye of the Storm at all, since the stack would never be empty when the trigger was resolving) and that would make the card pretty pointless to work for sorceries.

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 Development Questions
by swordshine » 24 Dec 2012, 00:18
I've asked a mtg pro and he told me they are the same. My previous comment is not correct. I'll readd this card.friarsol wrote:I'm pretty sure this works the same as the rest of the "Cast without paying its mana cost" cards. You aren't allowed to cast any spells during the resolution of another spell normally, so you wouldn't be able to cast Instants during that time either.
http://community.wizards.com/go/thread/ ... cery_speed
I think the rules text is just reminding you that if a certain card says it needs to be cast during combat, and it isn't combat, you aren't allowed to cast it in this way. But you are allowed to cast sorceries this way (otherwise sorceries would never be allowed by Eye of the Storm at all, since the stack would never be empty when the trigger was resolving) and that would make the card pretty pointless to work for sorceries.
- swordshine
- Posts: 682
- Joined: 11 Jul 2010, 02:37
- Has thanked: 116 times
- Been thanked: 87 times
Re: Card Development Questions
by ArsenalNut » 29 Dec 2012, 08:06
Working on another coin flip card, Amulet of Quoz, and I have some questions. First, I assume the opponent does not get to look at the top card of their library before having to decide about adding it the ante or not. Correct?
Contract from Below is currently scripted using the ChangeZone effect to move a card for the top of your library to the ante. The Mill effect could also be used with the Destination set to Ante. Neither ChangeZone (hidden zone origin) nor Mill effects currently support an Optional parameter. Which would effect would be the better one to use and add the Optional parameter to?
Contract from Below is currently scripted using the ChangeZone effect to move a card for the top of your library to the ante. The Mill effect could also be used with the Destination set to Ante. Neither ChangeZone (hidden zone origin) nor Mill effects currently support an Optional parameter. Which would effect would be the better one to use and add the Optional parameter to?
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 Development Questions
by swordshine » 08 Jan 2013, 01:12
I found this half-implemented card in Forge: Spectral Searchlight.
I tried to script it, however, it would get a crash when AI used it.
I tried to script it, however, it would get a crash when AI used it.
- Spectral Searchlight | Open
- Code: Select all
Name:Spectral Searchlight
ManaCost:3
Types:Artifact
Text:no text
A:AB$ ChoosePlayer | Cost$ T | Defined$ You | Choices$ Player | ChoiceTitle$ Choose an player | SubAbility$ DBMana | SpellDescription$ Choose a player. That player adds one mana of any color he or she chooses to his or her mana pool.
SVar:DBMana:DB$ Mana | Produced$ Any | Defined$ ChosenPlayer
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/spectral_searchlight.jpg
SetInfo:RAV|Uncommon|http://magiccards.info/scans/en/rav/271.jpg
Oracle:{T}: Choose a player. That player adds one mana of any color he or she chooses to his or her mana pool.
End
- swordshine
- Posts: 682
- Joined: 11 Jul 2010, 02:37
- Has thanked: 116 times
- Been thanked: 87 times
Re: Card Development Questions
by timmermac » 08 Jan 2013, 05:22
Okay... So the last remaining Sliver that has yet to appear in Forge is Pulmonic Sliver. I was having thoughts of trying to script this myself, but since I'm not particularly good at scripting to this point, I'm going to need a bit of help. The only part of the Pulmonic's ability that I'm having an issue with is the if a Sliver would go to the graveyard, put it on top of the library instead. Now I'm thinking that the ability of Avenging Angel would be the one to use for that, but I have absolutely no idea how to script it so that all Slivers would get the ability.
"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 Development Questions
by moomarc » 08 Jan 2013, 07:15
You would use a static ability that grants the appropriate replacement effect and svars. I'll look into it in about an hour if you want.timmermac wrote:Okay... So the last remaining Sliver that has yet to appear in Forge is Pulmonic Sliver. I was having thoughts of trying to script this myself, but since I'm not particularly good at scripting to this point, I'm going to need a bit of help. The only part of the Pulmonic's ability that I'm having an issue with is the if a Sliver would go to the graveyard, put it on top of the library instead. Now I'm thinking that the ability of Avenging Angel would be the one to use for that, but I have absolutely no idea how to script it so that all Slivers would get the ability.
-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 Development Questions
by moomarc » 08 Jan 2013, 12:09
Yep, just looked at it and the reason it hasn't been implemented already is that continuous static abilities can't grant replacement effects. Just giving a trigger such as is used for Avenging Angel wouldn't work because it is meant to be a replacement effect, not a triggered ability. So the affected sliver would never actually hit the graveyard unlike with the 'dies' trigger.moomarc wrote:You would use a static ability that grants the appropriate replacement effect and svars. I'll look into it in about an hour if you want.timmermac wrote:Okay... So the last remaining Sliver that has yet to appear in Forge is Pulmonic Sliver. I was having thoughts of trying to script this myself, but since I'm not particularly good at scripting to this point, I'm going to need a bit of help. The only part of the Pulmonic's ability that I'm having an issue with is the if a Sliver would go to the graveyard, put it on top of the library instead. Now I'm thinking that the ability of Avenging Angel would be the one to use for that, but I have absolutely no idea how to script it so that all Slivers would get the ability.
There's also problems with each hacked solution I can think of, so as far as I can tell, this one will have to wait.
-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 Development Questions
by pufthemajicdragon » 09 Jan 2013, 08:02
:Insert term expressing astonishment here, since apparently w-o-w is not a word: lots of pages on this thread... But this seems like the best place to post this.
So I've been playing around with making custom pets etc, learning my way around the card system. I think the keyword and ability factory scripting method that I've interacted with so far (using version 1.3.4-r18926) are pretty simple and intuitive.
Here's my question. I've created a custom Planeswalker pet (more or less to see if I could) for quest mode. When I start a duel, the Planeswalker works fine in every respect except that he starts out with 0 loyalty counters. He is not removed from the battlefield at the end of any phase or turn for starting out with 0 loyalty counters. I'm assuming starting the game with a Planeswalker on the battlefield is an unanticipated (and therefore unprogrammed) scenario.
:edit:
I found a typo in my script that kept him from being recognized as a planeswalker type and fixed it. Now he appropriately dies instantly at the start of the game (even before I have the option of declaring mulligan) presumably for having 0 loyalty counters.
So I've been playing around with making custom pets etc, learning my way around the card system. I think the keyword and ability factory scripting method that I've interacted with so far (using version 1.3.4-r18926) are pretty simple and intuitive.
Here's my question. I've created a custom Planeswalker pet (more or less to see if I could) for quest mode. When I start a duel, the Planeswalker works fine in every respect except that he starts out with 0 loyalty counters. He is not removed from the battlefield at the end of any phase or turn for starting out with 0 loyalty counters. I'm assuming starting the game with a Planeswalker on the battlefield is an unanticipated (and therefore unprogrammed) scenario.
:edit:
I found a typo in my script that kept him from being recognized as a planeswalker type and fixed it. Now he appropriately dies instantly at the start of the game (even before I have the option of declaring mulligan) presumably for having 0 loyalty counters.
- pufthemajicdragon
- Posts: 23
- Joined: 08 Jan 2013, 04:17
- Has thanked: 7 times
- Been thanked: 2 times
Who is online
Users browsing this forum: No registered users and 14 guests