It is currently 22 May 2025, 14:43
   
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 RumbleBBU » 11 Dec 2012, 07:40

Answering to myself...

10/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.
So the correct answer would be {0} (also if the opponent's lands can only produce colorless mana).
User avatar
RumbleBBU
 
Posts: 394
Joined: 18 Aug 2012, 04:24
Has thanked: 29 times
Been thanked: 66 times

Re: Card Development Questions

Postby 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
However, you cannot choose the order of repeatcards. Is it possible to add a list of repeatcards to choose the order of resolving?
swordshine
 
Posts: 682
Joined: 11 Jul 2010, 02:37
Has thanked: 116 times
Been thanked: 87 times

Re: Card Development Questions

Postby ArsenalNut » 22 Dec 2012, 17:38

swordshine wrote: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
However, you cannot choose the order of repeatcards. Is it possible to add a list of repeatcards to choose the order of resolving?
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.

Edit: I checked in the code that adds the ChooseOrder switch.
So many cards, so little time
User avatar
ArsenalNut
 
Posts: 512
Joined: 08 Jul 2011, 03:49
Has thanked: 27 times
Been thanked: 121 times

Re: Card Development Questions

Postby ArsenalNut » 23 Dec 2012, 05:18

swordshine wrote: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
However, you cannot choose the order of repeatcards. Is it possible to add a list of repeatcards to choose the order of resolving?
Rules question about Eye of the Storm
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."
Does this include Sorcery restrictions?
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
User avatar
ArsenalNut
 
Posts: 512
Joined: 08 Jul 2011, 03:49
Has thanked: 27 times
Been thanked: 121 times

Re: Card Development Questions

Postby 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
User avatar
timmermac
Tester
 
Posts: 1512
Joined: 17 May 2010, 20:36
Has thanked: 18 times
Been thanked: 95 times

Re: Card Development Questions

Postby swordshine » 23 Dec 2012, 06:24

ArsenalNut wrote:
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."
Does this include Sorcery restrictions?
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?
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.
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:
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.
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.
swordshine
 
Posts: 682
Joined: 11 Jul 2010, 02:37
Has thanked: 116 times
Been thanked: 87 times

Re: Card Development Questions

Postby friarsol » 23 Dec 2012, 14:56

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.
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.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Card Development Questions

Postby ArsenalNut » 23 Dec 2012, 15:22

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.
I swear I did a web search for rulings on Eye of the Storm before I asked #-o I definitely agree that the card would be pretty useless if you couldn't cast the copied sorceries on your opponents turn.
So many cards, so little time
User avatar
ArsenalNut
 
Posts: 512
Joined: 08 Jul 2011, 03:49
Has thanked: 27 times
Been thanked: 121 times

Re: Card Development Questions

Postby swordshine » 24 Dec 2012, 00:18

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.
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.
swordshine
 
Posts: 682
Joined: 11 Jul 2010, 02:37
Has thanked: 116 times
Been thanked: 87 times

Re: Card Development Questions

Postby 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?
So many cards, so little time
User avatar
ArsenalNut
 
Posts: 512
Joined: 08 Jul 2011, 03:49
Has thanked: 27 times
Been thanked: 121 times

Re: Card Development Questions

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

Postby 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
User avatar
timmermac
Tester
 
Posts: 1512
Joined: 17 May 2010, 20:36
Has thanked: 18 times
Been thanked: 95 times

Re: Card Development Questions

Postby moomarc » 08 Jan 2013, 07:15

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.
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.
-Marc
User avatar
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

Postby moomarc » 08 Jan 2013, 12:09

moomarc wrote:
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.
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.
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.

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
User avatar
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

Postby 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.
pufthemajicdragon
 
Posts: 23
Joined: 08 Jan 2013, 04:17
Has thanked: 7 times
Been thanked: 2 times

PreviousNext

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 23 guests


Who is online

In total there are 23 users online :: 0 registered, 0 hidden and 23 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 23 guests

Login Form